Changeset 312 for trunk/email2trac.py.in
- Timestamp:
- 02/03/10 12:05:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/email2trac.py.in
r311 r312 942 942 # 943 943 from tracfullblog.core import FullBlogCore 944 from tracfullblog.model import BlogPost, BlogCommen 944 from tracfullblog.model import BlogPost, BlogComment 945 from trac.test import Mock, MockPerm 945 946 946 947 # instantiate blog core 947 948 blog = FullBlogCore(self.env) 948 req = ''949 949 req = Mock(authname='anonymous', perm=MockPerm(), args={}) 950 950 951 if id: 951 952 … … 954 955 comment = BlogComment(self.env, id) 955 956 comment.author = self.author 956 comment.comment = self.get_body_text(m) 957 958 message_parts = self.get_message_parts(m) 959 comment.comment = self.body_text(message_parts) 960 957 961 blog.create_comment(req, comment) 958 962 … … 967 971 post.author = self.author 968 972 post.title = self.email_to_unicode(m['Subject']) 969 post.body = self.get_body_text(m) 973 974 message_parts = self.get_message_parts(m) 975 post.body = self.body_text(message_parts) 970 976 971 977 blog.create_post(req, post, self.author, u'Created by email2trac', False)
Note: See TracChangeset
for help on using the changeset viewer.