Déplacement pour eggification.
[Plinn.git] / skins / control / reply_add_control.py
diff --git a/skins/control/reply_add_control.py b/skins/control/reply_add_control.py
deleted file mode 100644 (file)
index 1bd2c69..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-##parameters=title, text, **kw
-title = title.strip()
-text = text.strip()
-
-if title and text :
-       try : talkback = context.talkback
-       except : talkback = context.portal_discussion.getDiscussionFor(context)
-       replyId = talkback.createReply(title=title, text=text)
-       return context.setStatus(replyId, 'Comment added.')
-else :
-       return context.setStatus(False, 'You must enter a title and body.')
\ No newline at end of file