Changeset 6106
- Timestamp:
- Jun 26, 2009, 10:40:34 AM (15 years ago)
- Location:
- xmlrpcplugin/trunk/tracrpc
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
xmlrpcplugin/trunk/tracrpc/tests/__init__.py
r6096 r6106 75 75 import tracrpc.tests.ticket 76 76 suite.addTest(tracrpc.tests.ticket.suite()) 77 import tracrpc.tests.wiki 78 suite.addTest(tracrpc.tests.wiki.suite()) 77 79 return suite 78 80 -
xmlrpcplugin/trunk/tracrpc/wiki.py
r6067 r6106 12 12 from StringIO import StringIO 13 13 import xmlrpclib 14 import posixpath14 import os 15 15 16 16 from trac.core import * … … 154 154 def getAttachment(self, req, path): 155 155 """ returns the content of an attachment. """ 156 pagename, filename = posixpath.split(path)156 pagename, filename = os.path.split(path) 157 157 attachment = Attachment(self.env, 'wiki', pagename, filename) 158 158 req.perm(attachment.resource).require('ATTACHMENT_VIEW') … … 164 164 This method is compatible with WikiRPC. `putAttachmentEx` has a more 165 165 extensive set of (Trac-specific) features. """ 166 pagename, filename = posixpath.split(path)166 pagename, filename = os.path.split(path) 167 167 self.putAttachmentEx(req, pagename, filename, None, data) 168 168 return True … … 191 191 def deleteAttachment(self, req, path): 192 192 """ Delete an attachment. """ 193 pagename, filename = posixpath.split(path)193 pagename, filename = os.path.split(path) 194 194 if not WikiPage(self.env, pagename).exists: 195 195 raise TracError, 'Wiki page "%s" does not exist' % pagename
Note: See TracChangeset
for help on using the changeset viewer.