Back to index

plone3  3.1.7
Variables
folder_contents Namespace Reference

Variables

tuple mtool = getToolByName(script, 'portal_membership')
tuple utool = getToolByName(script, 'portal_url')
tuple portal_url = utool()
 form = context.REQUEST.form
string default_target = 'object/folderContents'
dictionary default_kw = {'b_start': b_start, 'key': key, 'reverse': reverse}
dictionary options = {}
tuple items_manage_allowed = mtool.checkPermission(ViewManagementScreens, context)
tuple items_delete_allowed = mtool.checkPermission(DeleteObjects, context)
tuple items_add_allowed = mtool.checkPermission(AddPortalContent, context)
tuple upitems_list_allowed
tuple items_move_allowed = mtool.checkPermission(ManageProperties, context)
dictionary up_info = {}
 up_obj = context.aq_parent
tuple up_url = up_obj.getActionInfo('object/folderContents')
tuple target = context.getActionInfo(default_target)
int is_default = 1
tuple columns
tuple query = make_query(key=column['key'], reverse=1)
tuple folderfilter = context.REQUEST.get('folderfilter', '')
tuple filter = context.decodeFolderFilter(folderfilter)
tuple items = context.listFolderContents(contentFilter=filter)
tuple batch_obj = Batch(items, 25, b_start, orphan=0)
int i = 1
tuple item_icon = item.getIcon(1)
tuple item_id = item.getId()
string item_position = 'position'
tuple item_url
tuple navigation = context.getBatchNavigation(batch_obj, target, **default_kw)
list hidden_vars = []
list buttons = []
 length = batch_obj.sequence_length
tuple is_orderable = items_move_allowedand(key == 'position')
 is_sortable = items_move_allowedandnotis_default
tuple deltas = range( 1, min(5, length) )

Variable Documentation

tuple folder_contents.batch_obj = Batch(items, 25, b_start, orphan=0)

Definition at line 141 of file folder_contents.py.

Definition at line 169 of file folder_contents.py.

Initial value:
00001 ( {'key': 'Type',
00002              'title': _(u'Type'),
00003              'width': '20',
00004              'colspan': '2'}
00005           , {'key': 'getId',
00006              'title': _(u'Name'),
00007              'width': '360',
00008              'colspan': None}
00009           , {'key': 'modified',
00010              'title': _(u'Last Modified'),
00011              'width': '180',
00012              'colspan': None}
00013           , {'key': 'position',
00014              'title': _(u'Position'),
00015              'width': '80',
00016              'colspan': None }
00017           )

Definition at line 112 of file folder_contents.py.

dictionary folder_contents.default_kw = {'b_start': b_start, 'key': key, 'reverse': reverse}

Definition at line 22 of file folder_contents.py.

string folder_contents.default_target = 'object/folderContents'

Definition at line 21 of file folder_contents.py.

tuple folder_contents.deltas = range( 1, min(5, length) )

Definition at line 186 of file folder_contents.py.

tuple folder_contents.filter = context.decodeFolderFilter(folderfilter)

Definition at line 138 of file folder_contents.py.

tuple folder_contents.folderfilter = context.REQUEST.get('folderfilter', '')

Definition at line 137 of file folder_contents.py.

folder_contents.form = context.REQUEST.form

Definition at line 20 of file folder_contents.py.

Definition at line 166 of file folder_contents.py.

Definition at line 143 of file folder_contents.py.

Definition at line 106 of file folder_contents.py.

tuple folder_contents.is_orderable = items_move_allowedand(key == 'position')

Definition at line 184 of file folder_contents.py.

folder_contents.is_sortable = items_move_allowedandnotis_default

Definition at line 185 of file folder_contents.py.

tuple folder_contents.item_icon = item.getIcon(1)

Definition at line 145 of file folder_contents.py.

tuple folder_contents.item_id = item.getId()

Definition at line 146 of file folder_contents.py.

string folder_contents.item_position = 'position'

Definition at line 147 of file folder_contents.py.

Initial value:
00001 item.getActionInfo( ('object/folderContents',
00002                                     'object/view') )

Definition at line 149 of file folder_contents.py.

list folder_contents.items = context.listFolderContents(contentFilter=filter)

Definition at line 139 of file folder_contents.py.

tuple folder_contents.items_add_allowed = mtool.checkPermission(AddPortalContent, context)

Definition at line 83 of file folder_contents.py.

tuple folder_contents.items_delete_allowed = mtool.checkPermission(DeleteObjects, context)

Definition at line 82 of file folder_contents.py.

tuple folder_contents.items_manage_allowed = mtool.checkPermission(ViewManagementScreens, context)

Definition at line 81 of file folder_contents.py.

tuple folder_contents.items_move_allowed = mtool.checkPermission(ManageProperties, context)

Definition at line 86 of file folder_contents.py.

folder_contents.length = batch_obj.sequence_length

Definition at line 183 of file folder_contents.py.

tuple folder_contents.mtool = getToolByName(script, 'portal_membership')

Definition at line 15 of file folder_contents.py.

tuple folder_contents.navigation = context.getBatchNavigation(batch_obj, target, **default_kw)

Definition at line 161 of file folder_contents.py.

dictionary folder_contents.options = {}

Definition at line 77 of file folder_contents.py.

Definition at line 17 of file folder_contents.py.

tuple folder_contents.query = make_query(key=column['key'], reverse=1)

Definition at line 131 of file folder_contents.py.

tuple folder_contents.target = context.getActionInfo(default_target)

Definition at line 102 of file folder_contents.py.

dictionary folder_contents.up_info = {}

Definition at line 88 of file folder_contents.py.

folder_contents.up_obj = context.aq_parent

Definition at line 90 of file folder_contents.py.

tuple folder_contents.up_url = up_obj.getActionInfo('object/folderContents')

Definition at line 92 of file folder_contents.py.

Initial value:
00001 mtool.checkPermission(ListFolderContents, context,
00002                                              'aq_parent')

Definition at line 84 of file folder_contents.py.

tuple folder_contents.utool = getToolByName(script, 'portal_url')

Definition at line 16 of file folder_contents.py.