Re: supported browsers
Chad Whitacre <[email protected]> Wed, 17 Mar 2004 14:43:43 -0500
| Newsgroups | gmane.comp.web.zope.plone.design |
|---|---|
| Message-ID | <[email protected]> |
> Then we could make a list of browsers and list them in the different
> categories. I'm almost tempted to knock up a quick Archetype to have
> them being automatically listed. ;)
K, so this is definitely a cool idea. What would our fields be?
class Browser(BaseContent):
schema = BaseSchema + Schema((
StringField('browser',
required = 1,
vocabulary = ['IE','Mozilla','Opera','etc']),
FloatField('version_num', # e.g., 2.0.1
required = 1),
StringField('version_string'), # e.g., 1.2.5 RC4
required = 1),
IntegerField('support_level',
required = 1,
vocabulary = range(4)),
TextField('description',
widget=KupuWidget()),
))
def getTitle(self):
return '%s %s' % (self.browser, self.version_string)
Sorry for making the design list my personal code scrapbook, Michael. :p
chad
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click