Changeset 67

Show
Ignore:
Timestamp:
05/10/08 03:57:25 (4 months ago)
Author:
nobu
Message:

pluggable-contents:

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/pluggable-contents/blog/models.py

    r55 r67  
    9191        return ('blog_trackback_create', args) 
    9292 
    93     def save(self, raw=False): 
     93    def save(self): 
    9494        now = datetime.now() 
    9595        self.updated_at = now 
     
    9797            self.published_at = now 
    9898            self.published_now = True 
    99         self.direct_save(raw=raw
     99        self.save_base(
    100100 
    101101    def delete(self): 
     
    103103        self.is_published = False 
    104104        self.save() 
    105  
    106     def direct_save(self, raw=False): 
    107         super(Entry, self).save(raw=raw) 
    108105 
    109106 
  • branches/pluggable-contents/blog/receivers.py

    r58 r67  
    157157    if created: 
    158158        instance.entry.comments_count += 1 
    159         instance.entry.direct_save() 
     159        instance.entry.save_base() 
    160160 
    161161    #   nothing to do if raw save or updated. 
     
    179179    if entry.comments_count > 0: 
    180180        entry.comments_count -= 1 
    181         entry.direct_save() 
     181        entry.save_base() 
    182182 
    183183 
     
    189189    if created: 
    190190        instance.entry.trackbacks_count += 1 
    191         instance.entry.direct_save() 
     191        instance.entry.save_base() 
    192192 
    193193    #   nothing to do if raw save or updated. 
     
    211211    if entry.trackbacks_count > 0: 
    212212        entry.trackbacks_count -= 1 
    213         entry.direct_save() 
     213        entry.save_base() 
  • branches/pluggable-contents/plugins/templatetags

    • Property svn:ignore set to
      *.pyc
      *.pyo