[Zope] (XML-RPC) Calling Database.manage_pack

Oleg Broytmann phd@phd.russ.ru
Fri, 21 Jul 2000 09:44:08 +0000 (GMT)


Hello!

   I wrote a simple script to pack Data.fs on a regular basis. It is very
simple, actually, just
   urllib.urllretrieve("http://my.zope/Control_Panel/Database/manage_pack?days:float=3")
(a little bit harder than that, but I did it)

   Now I am trying to achieve the same with XML-RPC. No luck. How can I
pass "days" parameter?

   server = xmlrpclib.Server("http://my.zope", BasicAuthTransport(login, password))

   server.Control_Panel.Database.manage_pack(3) does not work - Zope
returns an error abou invalid value,

   server.Control_Panel.Database.manage_pack(days=3) does not run at all -
args expected to be a list, not a hash...

Oleg.            (All opinions are mine and not of my employer)
---- 
    Oleg Broytmann      Foundation for Effective Policies      phd@phd.russ.ru
           Programmers don't die, they just GOSUB without RETURN.