Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
sysinfo
Commits
742a5e6649d6
Commit
451255dc
authored
Jul 19, 2007
by
Adrien Di Mascio
Browse files
Topic is now named Folder
parent
48319df33038
Changes
3
Hide whitespace changes
Inline
Side-by-side
data/external_resources
View file @
742a5e66
...
...
@@ -46,7 +46,7 @@ LINK_ICON = DATADIR/icon_link.gif
PERSON_ICON = DATADIR/icon_person.gif
STATE_ICON = DATADIR/icon_state.gif
TASK_ICON = DATADIR/icon_task.gif
TOPIC
_ICON = DATADIR/icon_
topic
.gif
FOLDER
_ICON = DATADIR/icon_
folder
.gif
DEVICE_ICON = DATADIR/icon_device.gif
...
...
mapping.py
deleted
100644 → 0
View file @
48319df3
'''map entities, relations and attributes real names to their
displayed name
* normal / plural forms for entities
* normal / reverse for relations
This file has been partially generated on 2006-03-29 15:17:30.
'''
__revision__
=
'$Id: mapping.py,v 1.6 2006-03-29 14:17:26 syt Exp $'
# <entity name> : (<singular form>, <plural form>)
ENTITIES_MAP
=
{
'Basket'
:
(
_
(
'basket'
),
_
(
'baskets'
)),
'Bookmark'
:
(
_
(
'bookmark'
),
_
(
'bookmarks'
)),
'Boolean'
:
(
_
(
'boolean'
),
_
(
'booleans'
)),
'Bytes'
:
(
_
(
'bytes'
),
_
(
'bytes'
)),
'Comment'
:
(
_
(
'comment'
),
_
(
'comments'
)),
'Date'
:
(
_
(
'date'
),
_
(
'dates'
)),
'Datetime'
:
(
_
(
'date time'
),
_
(
'date times'
)),
'Device'
:
(
_
(
'device'
),
_
(
'devices'
)),
'Econstraint'
:
(
_
(
'constraint'
),
_
(
'constraints'
)),
'Econstrainttype'
:
(
_
(
'constraint type'
),
_
(
'constraint types'
)),
'Eetype'
:
(
_
(
'entity type'
),
_
(
'entity types'
)),
'Efrdef'
:
(
_
(
'attribute relation'
),
_
(
'attribute relations'
)),
'Egroup'
:
(
_
(
'group'
),
_
(
'groups'
)),
'Enfrdef'
:
(
_
(
'relation'
),
_
(
'relations'
)),
'Ertype'
:
(
_
(
'relation type'
),
_
(
'relation types'
)),
'Euser'
:
(
_
(
'user'
),
_
(
'users'
)),
'Ewidget'
:
(
_
(
'widget'
),
_
(
'widgets'
)),
'File'
:
(
_
(
'file'
),
_
(
'files'
)),
'Float'
:
(
_
(
'float'
),
_
(
'floats'
)),
'Int'
:
(
_
(
'int'
),
_
(
'ints'
)),
'Part'
:
(
_
(
'part'
),
_
(
'parts'
)),
'Password'
:
(
_
(
'password'
),
_
(
'passwords'
)),
'State'
:
(
_
(
'state'
),
_
(
'states'
)),
'String'
:
(
_
(
'string'
),
_
(
'strings'
)),
'Time'
:
(
_
(
'time'
),
_
(
'time'
)),
'Topic'
:
(
_
(
'topic'
),
_
(
'topics'
)),
'Zone'
:
(
_
(
'zone'
),
_
(
'zones'
)),
}
# <attribute name> : <display attribute name>
ATTRIBUTES_MAP
=
{
'cardinality'
:
_
(
'cardinality'
),
'creation_date'
:
_
(
'creation date'
),
'data'
:
_
(
'data'
),
'defaultval'
:
_
(
'defaultval'
),
'description'
:
_
(
'description'
),
'eid'
:
_
(
'eid'
),
'email'
:
_
(
'email'
),
'encoding'
:
_
(
'encoding'
),
'final'
:
_
(
'final'
),
'firstname'
:
_
(
'first name'
),
'fulltextindexed'
:
_
(
'fulltext indexed'
),
'has_text'
:
_
(
'has text'
),
'indexed'
:
_
(
'indexed'
),
'internationalizable'
:
_
(
'internationalizable'
),
'login'
:
_
(
'login'
),
'meta'
:
_
(
'meta'
),
'mime_type'
:
_
(
'mime type'
),
'modification_date'
:
_
(
'modification date'
),
'name'
:
_
(
'name'
),
'ordernum'
:
_
(
'ordernum'
),
'password'
:
_
(
'password'
),
'path'
:
_
(
'path'
),
'serial'
:
_
(
'serial'
),
'surname'
:
_
(
'surname'
),
'symetric'
:
_
(
'symetric'
),
'text'
:
_
(
'text'
),
'title'
:
_
(
'title'
),
'type'
:
_
(
'type'
),
'value'
:
_
(
'value'
),
}
# <relation name> : (<normal form>, <reverse form>)
RELATIONS_MAP
=
{
'add_permission'
:
(
_
(
'can be added by'
),
_
(
'can add'
)),
'bookmarked_by'
:
(
_
(
'bookmarked by'
),
_
(
'bookmarks'
)),
'comments'
:
(
_
(
'about'
),
_
(
'commented by'
)),
'concerned_by'
:
(
_
(
'is concerned by'
),
_
(
'concerns'
)),
'constrained_by'
:
(
_
(
'constrained by'
),
_
(
'constraint of'
)),
'cstrtype'
:
(
_
(
'type'
),
_
(
'used by'
)),
'delete_permission'
:
(
_
(
'can be deleted by'
),
_
(
'can delete'
)),
'filed_under'
:
(
_
(
'filed under'
),
_
(
'in this category'
)),
'from_entity'
:
(
_
(
'from entity'
),
_
(
'subject relation'
)),
'in_basket'
:
(
_
(
'is in basket'
),
_
(
'in this basket'
)),
'in_group'
:
(
_
(
'in groups'
),
_
(
'users'
)),
'in_state'
:
(
_
(
'state'
),
_
(
'in this state'
)),
'initial_state'
:
(
_
(
'initial state'
),
_
(
'initial state of'
)),
'made_of'
:
(
_
(
'made of'
),
_
(
'is a part of'
)),
'next_state'
:
(
_
(
'next state'
),
_
(
'previous state'
)),
'owned_by'
:
(
_
(
'owned by'
),
_
(
'owns'
)),
'read_permission'
:
(
_
(
'can be readen by'
),
_
(
'can read'
)),
'relation_type'
:
(
_
(
'relation type'
),
_
(
'used by'
)),
'situated_in'
:
(
_
(
'situated in'
),
_
(
'contains'
)),
'state_of'
:
(
_
(
'state of'
),
_
(
'has states'
)),
'to_entity'
:
(
_
(
'to entity'
),
_
(
'object relation'
)),
'update_permission'
:
(
_
(
'can be updated by'
),
_
(
'can update'
)),
'widget'
:
(
_
(
'widget'
),
_
(
'used by'
)),
}
schema/Include
View file @
742a5e66
...
...
@@ -3,4 +3,4 @@ Bookmark
Basket
File
Zone
Topic
Folder
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment