示例#1
0
    def __init__(self, context, request):
        BrowserView.__init__(self, context, request)
        notes = INotes(context)
        self.notes = [note for note in notes
                      if note.privacy == 'public'
                         or note.owner == request.principal.id]

        if 'DELETE_NOTE' in request:
            notes.remove(request['uid'])
示例#2
0
    def __init__(self, context, request):
        BrowserView.__init__(self, context, request)
        notes = INotes(context)
        self.notes = [
            note for note in notes
            if note.privacy == 'public' or note.owner == request.principal.id
        ]

        if 'DELETE_NOTE' in request:
            notes.remove(request['uid'])
示例#3
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
示例#4
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
示例#5
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
     self.errors = []
     self.success = []
示例#6
0
 def __init__(self, *args, **kw):
     BrowserView.__init__(self, *args, **kw)
     self.activity_vocabulary = getActivityVocabulary(self.context)
示例#7
0
 def __init__(self, context, request):
     # avoids setting IContentsPage on our FolderContentsView
     BrowserView.__init__(self, context, request)
示例#8
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
     setUpWidgets(self, self.schema, IInputWidget)
示例#9
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
     self.message = None
示例#10
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
     setUpWidgets(self, self.schema, IInputWidget)
示例#11
0
 def __init__(self, context, request):
     BrowserView.__init__(self, context, request)
     self.message = None