113 |
except Exception, ex: |
except Exception, ex: |
114 |
raise |
raise |
115 |
|
|
|
# cc stuff |
|
116 |
if idict.has_key('license'): |
if idict.has_key('license'): |
117 |
license, enc = unicode_field(idict, "license", enc=enc) |
# freshmeat |
118 |
item.license_urls.append(license) |
if parser.namespacemap.has_key('fm'): |
119 |
|
item.fm_license, enc = unicode_field(idict, 'license', enc=enc) |
120 |
|
item.fm_changes, enc = unicode_field(idict, 'changes', enc=enc) |
121 |
|
# assume it's creativeCommons oc other 'license' |
122 |
|
else: |
123 |
|
license, enc = unicode_field(idict, "license", enc=enc) |
124 |
|
item.license_urls.append(license) |
125 |
|
|
|
# fm stuff FIXME |
|
|
#item.fm_license, enc = unicode_field(idict, 'license', enc=enc) |
|
|
#item.fm_changes, enc = unicode_field(idict, 'changes', enc=enc) |
|
126 |
|
|
127 |
# prism |
# prism |
128 |
if idict.has_key('publicationName'): |
if idict.has_key('publicationName'): |
134 |
|
|
135 |
parsed.addItem(item) |
parsed.addItem(item) |
136 |
|
|
137 |
|
parser.reset() |
138 |
|
|
139 |
return parsed |
return parsed |
140 |
|
|