You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/04/25 22:46:23 UTC

svn commit: r396982 - /incubator/roller/trunk/src/org/roller/presentation/webservices/atomprotocol/RollerAtomHandler.java

Author: snoopdave
Date: Tue Apr 25 13:46:20 2006
New Revision: 396982

URL: http://svn.apache.org/viewcvs?rev=396982&view=rev
Log:
Need calls to roller.flush() to commit APP changes

Modified:
    incubator/roller/trunk/src/org/roller/presentation/webservices/atomprotocol/RollerAtomHandler.java

Modified: incubator/roller/trunk/src/org/roller/presentation/webservices/atomprotocol/RollerAtomHandler.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/presentation/webservices/atomprotocol/RollerAtomHandler.java?rev=396982&r1=396981&r2=396982&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/roller/presentation/webservices/atomprotocol/RollerAtomHandler.java (original)
+++ incubator/roller/trunk/src/org/roller/presentation/webservices/atomprotocol/RollerAtomHandler.java Tue Apr 25 13:46:20 2006
@@ -302,7 +302,8 @@
             WeblogManager mgr = mRoller.getWeblogManager();
             WeblogEntryData rollerEntry = createRollerEntry(website, entry);
             rollerEntry.setCreator(this.user);
-            mgr.saveWeblogEntry(rollerEntry);
+            mgr.saveWeblogEntry(rollerEntry);    
+            mRoller.flush();
             
             // Throttle one entry per second
             // (MySQL timestamp has 1 sec resolution, damnit)
@@ -355,6 +356,7 @@
                 rollerEntry.setTitle(rawUpdate.getTitle());
                 
                 mgr.saveWeblogEntry(rollerEntry);
+                mRoller.flush();
                 
                 CacheManager.invalidate(rollerEntry.getWebsite());
                 if (rollerEntry.isPublished()) {
@@ -378,6 +380,7 @@
             if (canEdit(rollerEntry)) {
                 WeblogManager mgr = mRoller.getWeblogManager();
                 mgr.removeWeblogEntry(rollerEntry);
+                mRoller.flush();
                 return;
             }
             throw new Exception("ERROR not authorized to delete entry");