Back to index

plone3  3.1.7
Variables
content_edit_impl Namespace Reference

Variables

 REQUEST = context.REQUEST
tuple old_id = context.getId()
tuple new_context = context.portal_factory.doCreate(context, id)
 form = REQUEST.form
tuple portal_status_message = _(u'Changes saved.')
tuple next = notREQUEST.get('form_next', None)
tuple previous = notREQUEST.get('form_previous', None)
tuple fieldset = REQUEST.get('fieldset', None)
tuple schemata = new_context.Schemata()
list s_names = [s for s in schemata.keys() if s != 'metadata']
 next_schemata = None
tuple index = s_names.index(fieldset)
 context = new_context,
 env = state.kwargs
tuple reference_source_url = env.get('reference_source_url')
list reference_source_field = env['reference_source_field']
list reference_source_fieldset = env['reference_source_fieldset']
tuple portal = context.portal_url.getPortalObject()
tuple reference_obj = portal.restrictedTraverse(reference_source_url)
tuple edited_reference_message
 session = None
tuple sdm = getToolByName(context, 'session_data_manager', None)
tuple uid = new_context.UID()
tuple saved_dic = session.get(reference_obj.getId(), None)
tuple saved_value = saved_dic.get(reference_source_field, None)
dictionary kwargs
 errors = state.errors
list s_items = [(s, schemata[s].keys()) for s in schemata.keys()]
list fields = []
string status = 'failure'

Variable Documentation

Definition at line 55 of file content_edit_impl.py.

Initial value:
00001 _(u'message_reference_edited',
00002                                  default=u'Reference edited.')

Definition at line 77 of file content_edit_impl.py.

content_edit_impl.env = state.kwargs

Definition at line 66 of file content_edit_impl.py.

content_edit_impl.errors = state.errors

Definition at line 117 of file content_edit_impl.py.

Definition at line 119 of file content_edit_impl.py.

content_edit_impl.fieldset = REQUEST.get('fieldset', None)

Definition at line 35 of file content_edit_impl.py.

content_edit_impl.form = REQUEST.form

Definition at line 26 of file content_edit_impl.py.

tuple content_edit_impl.index = s_names.index(fieldset)

Definition at line 46 of file content_edit_impl.py.

Initial value:
00001 {
00002         'status':'success_add_reference',
00003         'context':reference_obj,
00004         'fieldset':reference_source_fieldset,
00005         'field':reference_source_field,
00006         'reference_focus':reference_source_field,
00007         }

Definition at line 106 of file content_edit_impl.py.

content_edit_impl.new_context = context.portal_factory.doCreate(context, id)

Definition at line 19 of file content_edit_impl.py.

tuple content_edit_impl.next = notREQUEST.get('form_next', None)

Definition at line 33 of file content_edit_impl.py.

Definition at line 44 of file content_edit_impl.py.

tuple content_edit_impl.old_id = context.getId()

Definition at line 16 of file content_edit_impl.py.

tuple content_edit_impl.portal = context.portal_url.getPortalObject()

Definition at line 72 of file content_edit_impl.py.

tuple content_edit_impl.portal_status_message = _(u'Changes saved.')

Definition at line 30 of file content_edit_impl.py.

tuple content_edit_impl.previous = notREQUEST.get('form_previous', None)

Definition at line 34 of file content_edit_impl.py.

tuple content_edit_impl.reference_obj = portal.restrictedTraverse(reference_source_url)

Definition at line 73 of file content_edit_impl.py.

Definition at line 70 of file content_edit_impl.py.

Definition at line 71 of file content_edit_impl.py.

Definition at line 67 of file content_edit_impl.py.

content_edit_impl.REQUEST = context.REQUEST

Definition at line 15 of file content_edit_impl.py.

list content_edit_impl.s_items = [(s, schemata[s].keys()) for s in schemata.keys()]

Definition at line 118 of file content_edit_impl.py.

list content_edit_impl.s_names = [s for s in schemata.keys() if s != 'metadata']

Definition at line 39 of file content_edit_impl.py.

tuple content_edit_impl.saved_dic = session.get(reference_obj.getId(), None)

Definition at line 89 of file content_edit_impl.py.

Definition at line 91 of file content_edit_impl.py.

tuple content_edit_impl.schemata = new_context.Schemata()

Definition at line 36 of file content_edit_impl.py.

tuple content_edit_impl.sdm = getToolByName(context, 'session_data_manager', None)

Definition at line 82 of file content_edit_impl.py.

Definition at line 81 of file content_edit_impl.py.

string content_edit_impl.status = 'failure'

Definition at line 128 of file content_edit_impl.py.

tuple content_edit_impl.uid = new_context.UID()

Definition at line 87 of file content_edit_impl.py.