Skip to main content

Multipurpose widgets and fields for interfaces schema

Project description

The ng.schema product
=====================


The ng.schema is zope3 product developed to provide some interface (schema)
fields and widget. Current field and widget list are:

interfaceswitcher
Field can be used to dynamic switch subinterfaces of
some interface;

Sample of use ::

class IA(Interface) :
pass

class IA1(IA) :
pass

class IA2(IA) :
pass

class IOb(Interface) :

interface = InterfaceSwitcher(
title=u'Interface of IA',
interface = IA,
)

regexp
Product can be used to check input text line with some set of
regexp and customize text line with some rewrite rules before set.

Sample of use ::

class IOb(Interface) :

title = Regexp(title = u'Title',
description = u'Title',
default = u'',
required = True,
regexp = (
(False, u"^.*/.*$", u"Title do not content symbol '/'"),
),
rewrite = (
(u"^\s*(?P<name>\w+)\s*-\s*?(?P<number>[0-9]+)\s*$", u"%(name)s-%(number)s"),
(u"^\s*(?P<name>[^\s])\s*$", u"%(name)s"),
)
)



Sun Jan 11 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.3
- FloatDayTime field added
- InterfaceSet field added
- Initial interface of vocabulary changed

* Wed Nov 7 2007 Andrey Orlov <dbdt@dreambot.ru> 0.0.2
- first official release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ng.schema, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size ng.schema-0.0.3.tar.gz (5.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page