Custom Query (2152 matches)
Results (256 - 258 of 2152)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #261 | fixed | License does not work through REST API | dread | rgrp |
| Description |
Presence of license_id field in JSON input show below breaks REST API (with weird error about int not being subscriptable as if license_id field is being subscripted). Using normal license field does not cause breakage but has no effect. (Also think we should remove license_id from the API since there is no guarantee this cross system compatible since locally generated on install). ourjson = '''{
"maintainer" : "Applications Division",
"version" : "1999-01-01",
"license_id" : 9,
"name" : "geogratiswaterfraction1km_v100",
"author_email" : "...",
"author" : "Dissemination Branch",
"tags" : [
"GeoGratis",
"Canada",
"GCMD",
"Hydrosphere",
"Ground Water",
"Surface Water",
"Hydropattern",
"Earth Science",
"Land Surface",
"Land Cover",
"Landscape"
],
"extras" : {
"License" : "http://geogratis.ca/geogratis/en/licence.jsp",
"Ministry" : "Natural Resources Canada",
"Level of Government" : "Federal"
},
"maintainer_email" : "[email protected]",
"notes" : "This product is a raster coverage",
"url" : "http://geogratis.cgdi.gc.ca/geogratis/en/collection/metadata.do?id=67",
"title" : "Geogratis - 1-km Water Fraction From National Topographic Data Base Maps, Canada"
}
'''
def test_15_random(self):
offset = '/api/rest/package'
import urllib
tmpjson = simplejson.dumps(simplejson.loads(self.ourjson))
postparams = urllib.urlencode({tmpjson: 1})
res = self.app.post(offset, params=postparams, status=[200],
extra_environ=self.extra_environ)
model.Session.remove()
|
|||
| #264 | fixed | Investigate why there are revisions with no associated packages | dread | rgrp |
| Description |
Revision.packages should not include all changes so why are we getting revisions with no associated changes? See e.g. http://ckan.net/revision/read/814e39e1-2540-4449-90d1-ac9a92ab40fb? Investigate and fix. NB: if this is bugfix this should go against stable or metastable branch if at all possible and then be merged into default. Cost: 1.5h (?) |
|||
| #275 | fixed | Add forms renderer for JsonType fixing bugs in admin interface | dread | rgrp |
| Description |
This will solve e.g. issues in formalchemy admin interface (which is due to lack of renderer for Json type) Cost: 0.5h from ckan.model.types import JsonType forms.FieldSet.default_renderers[JsonType] = formalchemy.fields.TextFieldRenderer |
|||
