Hi, After failing to use wxLoadSite, which report wxloadsite.py, line 164, in onPressCopy AttributeError: host I try to test it by hand, I start up python and
zs = xmlrpclib.Server('http://localhost:8080',username='kentsin',password='passwo rd') t = zs.objectIds() Traceback (innermost last): File "<stdin>", line 1, in ? File "wxLoadSite\xmlrpclib.py", line 550, in __call__ return self.__send(self.__name, args) File "wxLoadSite\xmlrpclib.py", line 644, in __request request File "wxLoadSite\xmlrpclib.py", line 596, in request headers wxLoadSite.xmlrpclib.ProtocolError: <ProtocolError for localhost:8080/RPC2: 500 Internal Server Error>
I am using Win32 zope 2.2b1 on the same win98. The xmlrpc client is using the same python with the binary zope. (I have the zope1.5.2 install in same box). Can anyone help me with these? Moreover, it seems that it is not using the BasicAuthTransport which is mentationed in articles in xml.com, are there some changes in the xmlrpc code? Rgs, Kent Sin --------------------------------- kentsin.weblogs.com kentsin.imeme.net
Sin Hang Kin wrote:
After failing to use wxLoadSite, which report
wxloadsite.py, line 164, in onPressCopy AttributeError: host
I'm aware of this error, but due to lack of time haven't had time to investigate. Perhaps try typing the host as "http://zope:8080/" instead of "http://zope:8080"?
Can anyone help me with these? Moreover, it seems that it is not using the BasicAuthTransport which is mentationed in articles in xml.com, are there some changes in the xmlrpc code?
Yes, I'm using an altered xmlrpclib.py with some additional code which adds the basic authentication. -- Itamar S.T. itamar@maxnm.com Fingerprint = D365 7BE8 B81E 2B18 6534 025E D0E7 92DB E441 411C
When I create a Product of course all of my objects are there to be seen and edited through the management interface. When I install Squishdot, zPDFDocument etc. There is nothing in the Product folder. I thought it would be a great educational resource to see how these products were built and what THEY looked like in the MI. I know I can use an editor or file viewer to get to the code. But why is it not available in the MI or what am I missing in building my product(s)? Thanks, -- Tim -- Opportunity is missed by most people because it is dressed in overalls and looks like work. Thomas Edison
On Sun, 9 Jul 2000, Tim Cook wrote:
looked like in the MI. I know I can use an editor or file viewer to get to the code. But why is it not available in the MI or what am I missing in building my product(s)?
Because it is a Python based product and not a ZClass based product? Having a web interface to *look at* the python product source code might be cool, but then again I'd say why bother <grin>. --RDM
"R. David Murray" wrote:
Because it is a Python based product and not a ZClass based product?
So all the really cool, useful stuff is being written in Python instead of ZClasses? <g> Is there a specific reason for this? Speed? Capability?
Having a web interface to *look at* the python product source code might be cool, but then again I'd say why bother <grin>.
True. -- Tim -- Opportunity is missed by most people because it is dressed in overalls and looks like work. Thomas Edison
On Sun, 9 Jul 2000, Tim Cook wrote:
So all the really cool, useful stuff is being written in Python instead of ZClasses? <g> Is there a specific reason for this? Speed? Capability?
ZClasses are a relatively recent addition. Some people swear by them, some people swear at them. Actually it seems that in many cases a combination of python for business logic and ZClasses for presentation logic/user interface makes the most sense. Coding in python gives more direct control of the object machinery. It also definately gives you access to more capabilties than ZClasses, or even ZClasses + external methods. Finally, it should be the case that python code executes faster than equivalent DTML code, since the DTML needs to be intererpreted. I'm not sure, this might not always be true due to DTML optimizations and caching; but as with a compiler versus an assember, if you know enough to do it right I'd think the python would always be faster <grin>. If you want a basic intro to python products, check out the Boring Product. --RDM
Hi Tim ! Tim Cook wrote:
Because it is a Python based product and not a ZClass based product?
So all the really cool, useful stuff is being written in Python instead of ZClasses? <g> Is there a specific reason for this? Speed? Capability?
Have a look at: http://zdp.zope.org/portals/developers/designstrategies/products http://zdp.zope.org/portals/developers/designstrategies/zclasses http://zdp.zope.org/portals/developers/designstrategies/mix http://zdp.zope.org/portals/developers/designstrategies Regards, Maik Röder -- "The computing future is based on "cyberbodies" - self-contained, neatly-ordered, beautifully-laid-out collections of information, like immaculate giant gardens." The second coming - A manifesto. David Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html
participants (5)
-
Itamar Shtull-Trauring -
Maik Roeder -
R. David Murray -
Sin Hang Kin -
Tim Cook