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
=====================
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ng.schema-0.0.3.tar.gz
(5.2 kB
view details)
File details
Details for the file ng.schema-0.0.3.tar.gz
.
File metadata
- Download URL: ng.schema-0.0.3.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04c4c33c94774de39ad6ee5d8b605f9e498bdf070ba2e457f586f7170c8927fa |
|
MD5 | 2b132560ecb59f43028d0c58da433e34 |
|
BLAKE2b-256 | 2609643904ddfbd8967ed7dab30bd5d074aed9ddb009e0dcf361a788b4e194a3 |