source: products/qPloneGoogleMaps/tags/0.1.0/tests/MapFieldTest.py @ 1591

Last change on this file since 1591 was 1, checked in by myroslav, 15 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 1009 bytes
Line 
1from AccessControl import ClassSecurityInfo
2from Products.Archetypes.atapi import *
3from Products.ATContentTypes.content.base import ATCTFolder
4
5from Products.qPloneGoogleMaps.field import MapField, MapWidget
6from Products.qPloneGoogleMaps.config import *
7
8schema = Schema((
9    MapField(
10        name='location',
11        widget=MapWidget(),
12    ),
13),)
14
15MapFieldTest_schema = BaseSchema.copy() + \
16    schema.copy()
17
18class 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
38registerType(MapFieldTest, PROJECTNAME)
Note: See TracBrowser for help on using the repository browser.