Пример #1
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='male', title=_(u'male')),
         SimpleTerm(value='female', title=_(u'female')),
         SimpleTerm(value='unknown', title=_(u'unknown')),
     )
     return SimpleVocabulary(items)
Пример #2
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='temple', title=_(u'TemPle')),
         SimpleTerm(value='bixiewu', title=_(u'BiXieWu')),
         SimpleTerm(value='wuying', title=_(u'WyYing')),
     )
     return SimpleVocabulary(items)
Пример #3
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='exact', title=_(u'Exact')),
         SimpleTerm(value='fuzzy', title=_(u'Fuzzy')),
         SimpleTerm(value='unknown', title=_(u'Unknown')),
     )
     return SimpleVocabulary(items)
Пример #4
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='village', title=_(u'village')),
         SimpleTerm(value='wall', title=_(u'wall')),
         SimpleTerm(value='roof', title=_(u'roof')),
     )
     return SimpleVocabulary(items)
Пример #5
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='governmental', title=_(u'Governmental')),
         SimpleTerm(value='academic', title=_(u'Academic')),
         SimpleTerm(value='fieldwork', title=_(u'Fieldwork')),
         SimpleTerm(value='other', title=_(u'Other')),
     )
     return SimpleVocabulary(items)
Пример #6
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='raising', title=_(u'Raising')),
         SimpleTerm(value='private', title=_(u'Private')),
         SimpleTerm(value='public', title=_(u'Public')),
         SimpleTerm(value='other', title=_(u'Other')),
     )
     return SimpleVocabulary(items)
Пример #7
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='JuLuo', title=_(u'JuLuo')),
         SimpleTerm(value='LuKuo', title=_(u'LuKuo')),
         SimpleTerm(value='SiRen', title=_(u'SiRen')),
         SimpleTerm(value='other', title=_(u'other')),
     )
     return SimpleVocabulary(items)
Пример #8
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='standing', title=_(u'standing')),
         SimpleTerm(value='crouching', title=_(u'crouching')),
         SimpleTerm(value='lying', title=_(u'lying')),
         SimpleTerm(value='sitting', title=_(u'sitting')),
         SimpleTerm(value='reclining', title=_(u'reclining')),
     )
     return SimpleVocabulary(items)
Пример #9
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='history', title=_(u'Establishment History')),
         SimpleTerm(value='worship', title=_(u'Worship')),
         SimpleTerm(value='introduction', title=_(u'Introduction')),
         SimpleTerm(value='overview', title=_(u'Building Overview')),
         SimpleTerm(value='antiquity', title=_(u'Antiquities')),
         SimpleTerm(value='narrate', title=_(u'Narrate')),
         SimpleTerm(value='non_narrate', title=_(u'Non Narrate')),
         SimpleTerm(value='spatial', title=_(u'Spatial Attribute')),
     )
     return SimpleVocabulary(items)
Пример #10
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='JuLuoZhenSha', title=_(u'JuLuoZhenSha')),
         SimpleTerm(value='AnZhenLuKou', title=_(u'AnZhenLuKou')),
         SimpleTerm(value='LuChong', title=_(u'LuChong')),
         SimpleTerm(value='ZhenFeng', title=_(u'ZhenFeng')),
         SimpleTerm(value='ZhenShui', title=_(u'ZhenShui')),
         SimpleTerm(value='FenMu', title=_(u'FenMu')),
         SimpleTerm(value='HaiBian', title=_(u'HaiBian')),
         SimpleTerm(value='WuChong', title=_(u'WuChong')),
     )
     return SimpleVocabulary(items)
Пример #11
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='stone', title=_(u'stone')),
         SimpleTerm(value='mud', title=_(u'mud')),
         SimpleTerm(value='coment', title=_(u'coment')),
         SimpleTerm(value='brick', title=_(u'brick')),
         SimpleTerm(value='ceramics', title=_(u'ceramics')),
         SimpleTerm(value='wood', title=_(u'wood')),
         SimpleTerm(value='other', title=_(u'other')),
     )
     return SimpleVocabulary(items)
Пример #12
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='person', title=_(u'Person')),
         SimpleTerm(value='committee', title=_(u'Committee')),
         SimpleTerm(value='foundation', title=_(u'Foundation')),
         SimpleTerm(value='deacon', title=_(u'Deacon')),
         SimpleTerm(value='government', title=_(u'Government')),
         SimpleTerm(value='other', title=_(u'Other')),
     )
     return SimpleVocabulary(items)
Пример #13
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='address', title=_(u'GeoCoder')),
         SimpleTerm(value='gps', title=_(u'GPS')),
         SimpleTerm(value='gisref', title=_(u'GIS Reference')),
         SimpleTerm(value='map', title=_(u'Map')),
         SimpleTerm(value='notyet', title=_(u'Not Yet')),
         SimpleTerm(value='other', title=_(u'Other')),
     )
     return SimpleVocabulary(items)
Пример #14
0
class IBiXieWu(Interface):
    """BiXieWu ContentType"""

    # -*- schema definition goes here -*-
    data_src = schema.TextLine(
        title=_(u"Data Source"),
        required=False,
        description=_(u"Single Choice."),
    )
    #
    lct_cou = schema.TextLine(
        title=_(u"County"),
        required=False,
        description=_(u"Enter Text."),
    )
    #
    lct_tow = schema.TextLine(
        title=_(u"Town"),
        required=False,
        description=_(u"Enter Text."),
    )
    #
    lct_vil = schema.TextLine(
        title=_(u"Village"),
        required=False,
        description=_(u"Enter Text."),
    )
    #
    coordinate = schema.TextLine(
        title=_(u"Coordinate Type"),
        required=False,
        description=_(u"Single Choice."),
    )
    #
    type = schema.TextLine(
        title=_(u"BiXieWu Type"),
        required=False,
        description=_(u"Single Choice."),
    )
    #
    era = schema.TextLine(
        title=_(u"Common Era"),
        required=False,
        description=_(u"Enter Common Era."),
    )
    #
    era_ref = schema.SourceText(
        title=_(u"Era Reference"),
        required=False,
        description=_(u"Enter Era Reference."),
    )
    #
    facing = schema.TextLine(
        title=_(u"Facing"),
        required=False,
        description=_(u"Enter Facing."),
    )
    #
    material = schema.TextLine(
        title=_(u"Material"),
        required=False,
        description=_(u"Single Choice."),
    )
    #
    volume = schema.SourceText(
        title=_(u"Volume"),
        required=False,
        description=_(u"Enter Volume Description."),
    )
    #
    locational = schema.TextLine(
        title=_(u"Locational Attribute"),
        required=False,
        description=_(u"Single Choice."),
    )
    #
    purpose = schema.TextLine(
        title=_(u"Purpose"),
        required=False,
        description=_(u"Single Choice."),
    )
    #
    worship = schema.SourceText(
        title=_(u"Worship Description"),
        required=False,
        description=_(u"Enter Text."),
    )
    #
    establishment = schema.SourceText(
        title=_(u"Establishment Description"),
        required=False,
        description=_(u"Enter Text."),
    )
    #
    spatial = schema.SourceText(
        title=_(u"Spatial Attribute"),
        required=False,
        description=_(u"Enter Spatial Attributes."),
    )
    #
    environment = schema.SourceText(
        title=_(u"Environmental Description"),
        required=False,
        description=_(u"Enter Environmental Description."),
    )
    #
    reference = schema.SourceText(
        title=_(u"Reference"),
        required=False,
        description=_(u"Enter Text."),
    )
    #
    remark = schema.SourceText(
        title=_(u"Remark"),
        required=False,
        description=_(u"Enter Text."),
    )
    #
    village = schema.TextLine(
        title=_(u"Village Name"),
        required=False,
        description=_(u"Enter Village."),
    )
    #
    color = schema.TextLine(
        title=_(u"Color"),
        required=False,
        description=_(u"Single Choice."),
    )
    #
    genre = schema.TextLine(
        title=_(u"Genre"),
        required=False,
        description=_(u"Single Choice."),
    )
    #
    posture = schema.TextLine(
        title=_(u"Posture"),
        required=False,
        description=_(u"Single Choice."),
    )
    #
    gender = schema.TextLine(
        title=_(u"Gender"),
        required=False,
        description=_(u"Single Choice."),
    )
    #
    shi_d = schema.TextLine(
        title=_(u"ShiZi Depth"),
        required=False,
        description=_(u"In CentiMeter."),
    )
    #
    shi_w = schema.TextLine(
        title=_(u"ShiZi Width"),
        required=False,
        description=_(u"In CentiMeter."),
    )
    #
    shi_h = schema.TextLine(
        title=_(u"ShiZi Height"),
        required=False,
        description=_(u"In CentiMeter."),
    )
    #
    shi_t = schema.TextLine(
        title=_(u"ShiZi Head"),
        required=False,
        description=_(u"In CentiMeter."),
    )
    #
    base_l = schema.TextLine(
        title=_(u"Base Length"),
        required=False,
        description=_(u"In CentiMeter."),
    )
    #
    base_w = schema.TextLine(
        title=_(u"Base Width"),
        required=False,
        description=_(u"In CentiMeter."),
    )
    #
    base_h = schema.TextLine(
        title=_(u"Base Height"),
        required=False,
        description=_(u"In CentiMeter."),
    )
Пример #15
0
class IPhoto(Interface):
    """Photo for CRGIS Contents"""

    # -*- schema definition goes here -*-
    category = schema.List(
        title=_(u"Category"),
        required=False,
        description=_(u"Multiple Choices."),
    )
    #
    cou = schema.TextLine(
        title=_(u"County"),
        required=False,
        description=_(u"Enter Text."),
    )
    #
    tow = schema.TextLine(
        title=_(u"Town"),
        required=False,
        description=_(u"Enter Text."),
    )
    #
    vil = schema.TextLine(
        title=_(u"Village"),
        required=False,
        description=_(u"Enter Text."),
    )
    #
    lng = schema.TextLine(
        title=_(u"Longtitude"),
        required=False,
        description=_(u"Enter Longtitude."),
    )
    #
    lat = schema.TextLine(
        title=_(u"Latitude"),
        required=False,
        description=_(u"Enter Latitude."),
    )
    #
    year = schema.TextLine(
        title=_(u"Photo Year"),
        required=False,
        description=_(u"Enter Text."),
    )
    #
    month = schema.TextLine(
        title=_(u"Photo Month"),
        required=False,
        description=_(u"Enter Text."),
    )
    #
    day = schema.TextLine(
        title=_(u"Photo Day"),
        required=False,
        description=_(u"Enter Text."),
    )
    #
    owner_name = schema.TextLine(
        title=_(u"Owner Name"),
        required=False,
        description=_(u"Enter Owner Name."),
    )
    #
    owner_org = schema.TextLine(
        title=_(u"Owner Organization"),
        required=False,
        description=_(u"Enter Owner Organization."),
    )
    #
    owner_title = schema.TextLine(
        title=_(u"Owner Title"),
        required=False,
        description=_(u"Enter Owner Title."),
    )
    #
    reference = schema.SourceText(
        title=_(u"Reference"),
        required=False,
        description=_(u"Enter Text."),
    )
Пример #16
0
# -*- Message Factory Imported Here -*-
from crgis.atcontents import atcontentsMessageFactory as _

from crgis.atcontents.interfaces import IPhoto
from crgis.atcontents.config import PROJECTNAME

PhotoSchema = ATImage.schema.copy() + atapi.Schema(
    (

        # -*- Your Archetypes field definitions here ... -*-
        atapi.LinesField(
            'category',
            storage=atapi.AnnotationStorage(),
            widget=atapi.SelectionWidget(
                label=_(u"Category"),
                description=_(u"Multiple Choices."),
            ),
            vocabulary_factory='category',
        ),
        atapi.LinesField(
            'attachesTo',
            storage=atapi.AnnotationStorage(),
            widget=atapi.SelectionWidget(
                label=_(u"Attached To"),
                description=_(u"Attached To Which Fields."),
            ),
            vocabulary_factory='attachesTo',
        ),
        atapi.StringField(
            'cou',
Пример #17
0
from zope.component import getUtility
from zope.schema.interfaces import IVocabularyFactory

from crgis.atcontents import atcontentsMessageFactory as _

from crgis.atcontents.interfaces import ITemple
from crgis.atcontents.config import PROJECTNAME

TempleSchema = folder.ATFolderSchema.copy() + atapi.Schema((

    atapi.StringField(
        'data_src',
        storage=atapi.AnnotationStorage(),
        widget=atapi.SelectionWidget(
            label=_(u"Data Source"),
            description=_(u"Single Choice."),
            format='radio',
        ),
        vocabulary_factory='data_src',
    ),

    atapi.StringField(
        'coordinate',
        storage=atapi.AnnotationStorage(),
        widget=atapi.SelectionWidget(
            label=_(u"Coordinate Type"),
            description=_(u"Single Choice."),
            format='radio',
        ),
        vocabulary_factory='coordinate',
Пример #18
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='ShiGanDang', title=_(u'ShiGanDang')),
         SimpleTerm(value='FengShiYe', title=_(u'FengShiYe')),
         SimpleTerm(value='ShenXiang', title=_(u'ShenXiang')),
         SimpleTerm(value='BeiWenFuZhou', title=_(u'BeiWenFuZhou')),
         SimpleTerm(value='Ta', title=_(u'Ta')),
         SimpleTerm(value='JianShi', title=_(u'JianShi')),
         SimpleTerm(value='ShanHaiZhen', title=_(u'ShanHaiZhen')),
         SimpleTerm(value='BaGua', title=_(u'BaGua')),
         SimpleTerm(value='QiWu', title=_(u'QiWu')),
         SimpleTerm(value='ZhaoBi', title=_(u'ZhaoBi')),
         SimpleTerm(value='ShenShou', title=_(u'ShenShou')),
         SimpleTerm(value='ZhiWu', title=_(u'ZhiWu')),
         SimpleTerm(value='other', title=_(u'other')),
     )
     return SimpleVocabulary(items)
Пример #19
0
from Products.ATContentTypes.content import schemata
from archetypes.referencebrowserwidget import ReferenceBrowserWidget

from crgis.atcontents import atcontentsMessageFactory as _

from crgis.atcontents.interfaces import ISchedule
from crgis.atcontents.interfaces import ITemple
from crgis.atcontents.config import PROJECTNAME

ScheduleSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema((
    atapi.TextField(
        'body',
        storage=atapi.AnnotationStorage(),
        default_output_type='text/x-html-safe',
        widget=atapi.RichWidget(
            label=_(u"Body"),
            rows=20,
        ),
    ),
    atapi.ReferenceField(
        'temples',
        widget=ReferenceBrowserWidget(
            label=_(u"Related Temples"),
            allow_browse=1,
            allow_sorting=1,
            startup_directory='/temples',
        ),
        multiValued=1,
        relationship="temples_in_pilgrimage",
        index='KeywordIndex',
        referencesSortable=1,
Пример #20
0
 def __call__(self, context=None):
     items = (
         SimpleTerm(value='yes', title=_(u'yes')),
         SimpleTerm(value='no', title=_(u'no')),
     )
     return SimpleVocabulary(items)
Пример #21
0
from Products.Archetypes import atapi
from Products.ATContentTypes.content import folder
from Products.ATContentTypes.content import schemata

from crgis.atcontents import atcontentsMessageFactory as _

from crgis.atcontents.interfaces import IPilgrimage
from crgis.atcontents.config import PROJECTNAME

PilgrimageSchema = folder.ATFolderSchema.copy() + atapi.Schema(
    (atapi.TextField(
        'body',
        storage=atapi.AnnotationStorage(),
        default_output_type='text/x-html-safe',
        widget=atapi.RichWidget(
            label=_(u"Body"),
            rows=20,
        ),
    ), ))

# Set storage on fields copied from ATFolderSchema, making sure
# they work well with the python bridge properties.

PilgrimageSchema['title'].storage = atapi.AnnotationStorage()
PilgrimageSchema['description'].storage = atapi.AnnotationStorage()
PilgrimageSchema['title'].widget.label = _(u'Pilgrimage Title')
PilgrimageSchema['effectiveDate'].widget.label = _(u'Pilgrimage StartDate')
PilgrimageSchema['effectiveDate'].widget.description = _(
    u'Pilgrimage StartDate Description')
PilgrimageSchema['expirationDate'].widget.visible = {
    'edit': 'invisible',
Пример #22
0
from Products.Archetypes import atapi
from archetypes.referencebrowserwidget import ReferenceBrowserWidget
from Products.ATContentTypes.content import folder
from Products.ATContentTypes.content import schemata

from crgis.atcontents import atcontentsMessageFactory as _

from crgis.atcontents.interfaces import IBiXieWu
from crgis.atcontents.config import PROJECTNAME

BiXieWuSchema = folder.ATFolderSchema.copy() + atapi.Schema((
    atapi.StringField(
        'data_src',
        storage=atapi.AnnotationStorage(),
        widget=atapi.SelectionWidget(
            label=_(u"Data Source"),
            description=_(u"Single Choice."),
            format='radio',
        ),
        vocabulary_factory='data_src',
    ),
    atapi.StringField(
        'lct_cou',
        storage=atapi.AnnotationStorage(),
        widget=atapi.StringWidget(
            label=_(u"County"),
            description=_(u"Enter Text."),
        ),
    ),
    atapi.StringField(
        'lct_tow',