Changeset 2624
- Timestamp:
- 09/08/07 22:28:16 (10 months ago)
- Files:
-
- xmlrpcplugin/trunk/setup.py (modified) (2 diffs)
- xmlrpcplugin/trunk/tracrpc/api.py (modified) (1 diff)
- xmlrpcplugin/trunk/tracrpc/__init__.py (modified) (1 diff)
- xmlrpcplugin/trunk/tracrpc/ticket.py (modified) (1 diff)
- xmlrpcplugin/trunk/tracrpc/wiki.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
xmlrpcplugin/trunk/setup.py
r2616 r2624 1 1 #!/usr/bin/env python 2 2 3 from setuptools import setup 3 from setuptools import setup, find_packages 4 4 5 5 setup( 6 6 name='TracXMLRPC', 7 version='0.1', 7 version='1.0.0', 8 license='BSD', 8 9 author='Alec Thomas', 9 10 author_email='alec@swapoff.org', … … 11 12 description='XML-RPC interface to Trac', 12 13 zip_safe=True, 13 packages=['tracrpc'], 14 package_data={'tracrpc': ['templates/*.html']}, 15 entry_points={'trac.plugins': 'TracXMLRPC = tracrpc'}, 14 packages=find_packages(exclude=['*.tests']), 15 package_data={ 16 'tracrpc': ['templates/*.html'] 17 }, 18 entry_points={ 19 'trac.plugins': 'TracXMLRPC = tracrpc' 20 }, 16 21 ) xmlrpcplugin/trunk/tracrpc/api.py
r2609 r2624 226 226 227 227 def getAPIVersion(self, req): 228 """ Returns a list with two elements. First element is the major 229 version number, second is the minor. Changes to the major version 228 """ Returns a list with three elements. First element is the 229 epoch (0=Trac 0.10, 1=Trac 0.11 or higher). Second element is the major 230 version number, third is the minor. Changes to the major version 230 231 indicate API breaking changes, while minor version changes are simple 231 232 additions, bug fixes, etc. """ 232 return [0, 3] 233 import tracrpc 234 return map(int, tracrpc.__version__.split('.')) xmlrpcplugin/trunk/tracrpc/__init__.py
r246 r2624 4 4 from tracrpc.wiki import * 5 5 from tracrpc.search import * 6 7 __author__ = 'Alec Thomas <alec@swapoff.org>' 8 __license__ = 'BSD' 9 10 try: 11 __version__ = __import__('pkg_resources').get_distribution('TracXMLRPC').version 12 except (ImportError, pkg_resources.DistributionNotFound): 13 pass xmlrpcplugin/trunk/tracrpc/ticket.py
r2614 r2624 97 97 def update(self, req, id, comment, attributes = {}, notify=False): 98 98 """ Update a ticket, returning the new ticket in the same form as getTicket(). """ 99 now = int(time.time())99 now = time.time() 100 100 101 101 t = model.Ticket(self.env, id) xmlrpcplugin/trunk/tracrpc/wiki.py
r2615 r2624 52 52 def _page_info(self, name, time, author, version, comment): 53 53 return dict(name=name, lastModified=xmlrpclib.DateTime(int(time)), 54 author=author, version=int(version), comment=comment )54 author=author, version=int(version), comment=comment or '') 55 55 56 56 def getRecentChanges(self, req, since):
