extras-buildsys/server UserInterface.py,1.44.2.1,1.44.2.2
Daniel Williams (dcbw)
fedora-extras-commits at redhat.com
Mon Aug 15 14:33:12 UTC 2005
Author: dcbw
Update of /cvs/fedora/extras-buildsys/server
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20617/server
Modified Files:
Tag: STABLE_0_3
UserInterface.py
Log Message:
2005-08-15 Dan Williams <dcbw at redhat.com>
* client/client.py
server/UserInterface.py
- Implement API versioning, and check the API version in the client
before doing anything else
Index: UserInterface.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/server/UserInterface.py,v
retrieving revision 1.44.2.1
retrieving revision 1.44.2.2
diff -u -r1.44.2.1 -r1.44.2.2
--- UserInterface.py 15 Aug 2005 14:15:24 -0000 1.44.2.1
+++ UserInterface.py 15 Aug 2005 14:33:10 -0000 1.44.2.2
@@ -31,6 +31,10 @@
execfile(CONFIG_LOCATION + "CONFIG.py")
+# API version #, just increment each time an incompatible API change is made
+XMLRPC_API_VERSION = 1
+
+
def get_dbcx():
dbcx = None
dbcx = sqlite.connect(CONFIG_LOCATION + "jobdb", encoding="utf-8", timeout=3)
@@ -506,6 +510,9 @@
dbcx.commit()
return (0, "Success.")
+ def api_version(self):
+ return XMLRPC_API_VERSION
+
class UserInterfaceSSLAuth(UserInterface):
"""
More information about the fedora-extras-commits
mailing list