- '(?P<slug>[-a-z0-9]+)(/(?P<lang>[a-z]{3}))?/?$')
-
- def __init__(self, *args, **kw):
- super(WLPictureURI, self).__init__(*args, **kw)
+ '(?P<slug>[-a-z0-9]+)/?$')
Field(DCNS('subject.type'), 'kinds', salias='kind', multiple=True),
Field(DCNS('format.dimensions'), 'dimensions', required=False),
Field(DCNS('subject.type'), 'kinds', salias='kind', multiple=True),
Field(DCNS('format.dimensions'), 'dimensions', required=False),
Field(DCNS('description.medium'), 'medium', required=False),
Field(DCNS('description.dimensions'), 'original_dimensions', required=False),
Field(DCNS('format'), 'mime_type', required=False),
Field(DCNS('description.medium'), 'medium', required=False),
Field(DCNS('description.dimensions'), 'original_dimensions', required=False),
Field(DCNS('format'), 'mime_type', required=False),
- Field(DCNS('identifier.url'), 'url', WLPictureURI),
+ Field(DCNS('identifier.url'), 'url', WLPictureURI,
+ strict=as_wlpictureuri_strict),
class ImageStore(object):
EXT = ['gif', 'jpeg', 'png', 'swf', 'psd', 'bmp'
class ImageStore(object):
EXT = ['gif', 'jpeg', 'png', 'swf', 'psd', 'bmp'
if parent.tag == 'sem':
if parent.get('type') == 'theme':
pd['themes'] += map(unicode.strip, unicode(parent.get('theme')).split(','))
if parent.tag == 'sem':
if parent.get('type') == 'theme':
pd['themes'] += map(unicode.strip, unicode(parent.get('theme')).split(','))