Changeset 550
- Timestamp:
- 08/16/07 22:37:58 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
pagoda/trunk/Pagoda/pagoda/plugins/controllers.py
r547 r550 28 28 29 29 @expose() 30 def create(self): 31 """Create a new instance of this content type.""" 32 33 34 @expose() 30 35 def add(self, content_type, **kwargs): 36 """Add a new instance of `content_type` as a child of this node.""" 31 37 raise NotImplementedError 32 38 33 39 @expose(allow_json=True) 34 40 def delete(self, **kwargs): 41 """ 42 Delete this revision by creating a new pending instance of this 43 node with `is_deleted` set to True. 44 45 """ 35 46 if not self.content.is_deleted: 36 47 transaction = models.session.create_transaction() … … 49 60 @expose() 50 61 def duplicate(self, **kwargs): 62 """Copy all duplicable fields of this node into a new instance.""" 51 63 raise NotImplementedError 52 64 53 65 @expose() 54 66 def edit(self, **kwargs): 67 """ 68 Display the Edit view of this content when requested with HTTP GET. 69 70 Update this instance when requested with HTTP POST. 71 72 """ 55 73 raise NotImplementedError 56 74 57 75 @expose() 58 76 def live(self, **kwargs): 77 """Display the Live view of this content.""" 59 78 raise NotImplementedError 60 79 pagoda/trunk/Pagoda/pagoda/widgets/admin/static/javascript/button_item.js
r511 r550 10 10 el.unselectable = "on"; 11 11 el.className = this.itemCls; 12 // Only display icon if it was specified in config12 // Display icon if it was specified in config 13 13 if (Ext.type(this.icon) == 'string') { 14 14 el.innerHTML = String.format( pagoda/trunk/Pagoda/pagoda/widgets/admin/static/javascript/site_tree.js
r539 r550 13 13 rootVisible: true, 14 14 animate: true, 15 loader: new Ext.tree.TreeLoader({dataUrl: data_url}), 15 loader: new Ext.tree.TreeLoader({ 16 dataUrl: data_url, 17 requestMethod: 'GET' 18 }), 16 19 enableDD: true, 17 20 selModel: new Ext.tree.MultiSelectionModel(),
