-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
being able to decode dates in custom payload of events
- Loading branch information
1 parent
d074045
commit 2cbaabb
Showing
5 changed files
with
75 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from guillotina import configure | ||
from guillotina.content import Resource | ||
from guillotina.interfaces import IContainer | ||
from guillotina.interfaces import IResource | ||
from guillotina.schema import Datetime | ||
from zope.interface import implementer | ||
|
||
|
||
class IFooContent(IResource): | ||
foo_datetime = Datetime(title="Foo Datetime") | ||
|
||
|
||
@implementer(IFooContent) | ||
class FooContent(Resource): | ||
pass | ||
|
||
|
||
configure.register_configuration( | ||
FooContent, | ||
dict( | ||
context=IContainer, | ||
schema=IFooContent, | ||
type_name="FooContent", | ||
behaviors=["guillotina.behaviors.dublincore.IDublinCore"], | ||
), | ||
"contenttype", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters