Show
Ignore:
Timestamp:
08/26/08 15:43:18 (2 years ago)
Author:
cmlenz
Message:

Added OpenID whitelisting to Divan (#11).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/examples/divan/divan/moderation.py

    r177 r190  
    2727                elif doc['type'] == "Comment": 
    2828                    post.num_comments += 1 
    29                 post.store(app.db) 
    30                 # FIXME: retry in case of conflict? 
    31  
    3229                doc['published'] = True 
    33                 app.db[doc_id] = doc 
     30                app.db.update([post._data, doc]) 
    3431 
    3532            elif 'delete' in request.POST: