|
Last change
on this file since 534 was
1,
checked in by myroslav, 21 years ago
|
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
|
File size:
1009 bytes
|
| Line | |
|---|
| 1 | from AccessControl import ClassSecurityInfo |
|---|
| 2 | from Products.Archetypes.atapi import * |
|---|
| 3 | from Products.ATContentTypes.content.base import ATCTFolder |
|---|
| 4 | |
|---|
| 5 | from Products.qPloneGoogleMaps.field import MapField, MapWidget |
|---|
| 6 | from Products.qPloneGoogleMaps.config import * |
|---|
| 7 | |
|---|
| 8 | schema = Schema(( |
|---|
| 9 | MapField( |
|---|
| 10 | name='location', |
|---|
| 11 | widget=MapWidget(), |
|---|
| 12 | ), |
|---|
| 13 | ),) |
|---|
| 14 | |
|---|
| 15 | MapFieldTest_schema = BaseSchema.copy() + \ |
|---|
| 16 | schema.copy() |
|---|
| 17 | |
|---|
| 18 | class MapFieldTest(ATCTFolder): |
|---|
| 19 | security = ClassSecurityInfo() |
|---|
| 20 | __implements__ = (getattr(ATCTFolder,'__implements__',()),) |
|---|
| 21 | |
|---|
| 22 | archetype_name = 'MapFieldTest' |
|---|
| 23 | |
|---|
| 24 | meta_type = 'MapFieldTest' |
|---|
| 25 | portal_type = 'MapFieldTest' |
|---|
| 26 | allowed_content_types = [] |
|---|
| 27 | filter_content_types = 0 |
|---|
| 28 | global_allow = 0 |
|---|
| 29 | allow_discussion = False |
|---|
| 30 | immediate_view = 'base_view' |
|---|
| 31 | default_view = 'base_view' |
|---|
| 32 | suppl_views = () |
|---|
| 33 | typeDescription = "MapFieldTest" |
|---|
| 34 | typeDescMsgId = 'description_edit_mapfieldtest' |
|---|
| 35 | |
|---|
| 36 | schema = MapFieldTest_schema |
|---|
| 37 | |
|---|
| 38 | registerType(MapFieldTest, PROJECTNAME) |
|---|
Note: See
TracBrowser
for help on using the repository browser.