2004-05-09 20:23:19 -04:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
2004-05-09 21:15:08 -04:00
|
|
|
## Note: codehaus has a JIRA version which doesn't support xmlrpc
|
|
|
|
## so we can just scrape the screen or use the jelly interface
|
|
|
|
## on the codehaus box.
|
|
|
|
|
2004-05-09 20:23:19 -04:00
|
|
|
import sys
|
|
|
|
import xmlrpclib
|
|
|
|
|
|
|
|
class JiraXmlRpcClient:
|
|
|
|
|
|
|
|
def __init__(self):
|
|
|
|
|
|
|
|
self.supplier = xmlrpclib.Server("http://jira.codehaus.org/rpc/xmlrpc")
|
|
|
|
|
|
|
|
def transmitMessages(self):
|
|
|
|
|
|
|
|
token = self.supplier.jira1.login( "jason", "" )
|
|
|
|
|
|
|
|
#content = self.supplier.jira1.getIssueTypes( token )
|
|
|
|
|
|
|
|
return None
|
|
|
|
|
|
|
|
##########################################################
|
|
|
|
# Main loop
|
|
|
|
##########################################################
|
|
|
|
|
|
|
|
try:
|
|
|
|
JiraXmlRpcClient().transmitMessages()
|
|
|
|
|
|
|
|
except Exception, e:
|
|
|
|
print "Error:", e
|
|
|
|
|