from django.utils.translation import ugettext as _\r
from forum.models.action import ActionProxy\r
from forum.models import Comment, Question, Answer, NodeRevision\r
+import logging\r
\r
class NodeEditAction(ActionProxy):\r
def create_revision_data(self, initial=False, **data):\r
def process_data(self, title):\r
self.node.node_type = "question"\r
self.node.title = title\r
+ self.node.active_revision.title = title\r
+ self.node.active_revision.save()\r
self.node.last_edited = self\r
self.node.update_last_activity(self.user, save=True)\r
\r