Skip to main content
Short module description
=========================

Module pd.lib content some simple modules
and fucntions for use in Zope.

Description of modules
----------------------

ng.lib.interface
................

The module to provide different small tools to deal with interfaces in Zope.

Function provided by module followed:

implements
Function implements must be issued with interfaces as arguments.
As original zope.interface.implements, our function make context
class provided this interfaces. In difference from original function,
our implementation added for each field of each interface name attribute
of FieldProperty type.

ng.lib.editannotationnotify
...........................

The module provided mix-in for use in editform directive. Mix-in send
object-modifyed notify despite using adapter to edit content. Some sample
followed::

<editform
schema="..interfaces.IDictAnnotation"
for="..interfaces.IDictAnnotationAble"
label="Dictionary"
class="ng.lib.editannotationnotify.EditAnnotationNotify"
name="dictannotation.html" permission="zope.ManageContent"
menu="zmi_views" title="Dictionary"
/>

In this case editform sent object-moodifyed notify on context when
annotation modufied thro adapter.

ng.lib.dynamicdefault
.....................

The module provide fields factory DynamicDefault. Thr factory allow use run-time computed default value
for fields, inherited from Field. Sample followed:

from zope.interface import Interface
from zope.schema import Datetime
from ng.lib.dynamicdefault.DynamicDefault

class IA(Interface) :
""" Sample Interface """

created = DynamicDefault(DateTime,title = u'Date/Time',
description = u'Date/Time',
default = datetime.datetime.today,
required = True)

ng.lib.simplevocabulary
.......................
The module provide SimpleVocabulary class. The class reimplement some
methods from zope.schema.vocabulary.SimpleVocabulary to avoid troubles
during treatment of unicode strings with national chars.

[name:недоделано]

* Sun Jul 12 2009 Andrey Orlov <dbdt@dreambot.ru> 0.0.8
- RegistryVocabulary added
- UtilityVocabulary added
- IndexVocabulary added

* Wed Feb 11 2009 Andrey Orlov <dbdt@dreambot.ru> 0.0.7
- The Order provider and viewlet base added
- The Content Constraint gear added

* Wed Oct 08 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.6
- The simplevocabulary module added.

* Tue Jul 01 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.5
- The dynamicdefault module added, Special thanks to Anatoly Bubenkov
<bubenkoff@gmail.com> to some discussions.

* Wed Jan 30 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.4
- The walk module added

* Mon Jan 21 2008 Andrey Orlov <dbdt@dreambot.ru> 0.0.3
- The editannotationnotify module added.
- The objectwidget module added.

* Fri Nov 30 2007 Andrey Orlov <dbdt@dreambot.ru> 0.0.2
- Field detection rules changed. Special thanks to Anatoly Bubenkov
<bubenkoff@gmail.com> to advice.

* Fri Nov 30 2007 Andrey Orlov <cray@neural.ru> 0.0.1
- first official release

Metadata

Release files for ng.lib 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ng.lib 0.0.8
File Size Uploaded
ng.lib-0.0.8.tar.gz 8.3 kB Details

Release files / ng.lib-0.0.8.tar.gz

Download URL ng.lib-0.0.8.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
34d77cb2fe56011113fcabea3b28b918607b7760fdefdda75811ffb0a99744f2
BLAKE2b-256 checksum
How to use checksums
6d750af36dbb44491d3c8c7766797d1784dad87335fe214cee99bd412ac96a00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.8 This release

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page