Changeset 550

Show
Ignore:
Timestamp:
08/16/07 22:37:58 (1 year ago)
Author:
brian
Message:

SiteTree? now getting nodes using GET instead of POST

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pagoda/trunk/Pagoda/pagoda/plugins/controllers.py

    r547 r550  
    2828 
    2929    @expose() 
     30    def create(self): 
     31        """Create a new instance of this content type.""" 
     32         
     33 
     34    @expose() 
    3035    def add(self, content_type, **kwargs): 
     36        """Add a new instance of `content_type` as a child of this node.""" 
    3137        raise NotImplementedError 
    32  
     38     
    3339    @expose(allow_json=True) 
    3440    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        """ 
    3546        if not self.content.is_deleted: 
    3647            transaction = models.session.create_transaction() 
     
    4960    @expose() 
    5061    def duplicate(self, **kwargs): 
     62        """Copy all duplicable fields of this node into a new instance.""" 
    5163        raise NotImplementedError 
    5264 
    5365    @expose() 
    5466    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        """ 
    5573        raise NotImplementedError 
    5674 
    5775    @expose() 
    5876    def live(self, **kwargs): 
     77        """Display the Live view of this content.""" 
    5978        raise NotImplementedError 
    6079 
  • pagoda/trunk/Pagoda/pagoda/widgets/admin/static/javascript/button_item.js

    r511 r550  
    1010        el.unselectable = "on"; 
    1111        el.className = this.itemCls; 
    12         // Only display icon if it was specified in config 
     12        // Display icon if it was specified in config 
    1313        if (Ext.type(this.icon) == 'string') { 
    1414            el.innerHTML = String.format( 
  • pagoda/trunk/Pagoda/pagoda/widgets/admin/static/javascript/site_tree.js

    r539 r550  
    1313            rootVisible: true, 
    1414            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            }), 
    1619            enableDD: true, 
    1720            selModel: new Ext.tree.MultiSelectionModel(), 

Log in as guest/pagoda to create tickets