[Zope-dev] AccessControl Problems on Mac OSX
Hi, I seem to be having problems relating to AccessControl on MacOSX. I have a python product which I previously ran in Zope2.4.3/Python 2.1.3 and have upgraded it to run in Zope2.7.1/Python2.3.3. It runs fine on Linux and FreeBSD, however I get this traceback with some actions within the product on Mac OSX 10.1 Module Products.PageTemplates.Expressions, line 201, in __call__ Module Products.PageTemplates.Expressions, line 189, in _eval Module Products.PageTemplates.Expressions, line 145, in _eval __traceback_info__: shopper Module Products.PageTemplates.Expressions, line 340, in restrictedTraverse __traceback_info__: {'path': ['name'], 'TraversalRequestNameStack': []} SystemError: NULL result without error in PyObject_Call I narrowed this down to a guarded_getattr() problem in the AccessControl module. One thing I notice is that there is a C and a Python implementation of the access control stuff. If I explicitly set name='PYTHON' at the beginning of AccessControl/Implementation.py::setImplementation(), my product works fine, so I gather the problem is related to the C implementation. Has anyone experienced any similar problems on MacOSX? I notice this related issue in the zope collector, but it was rejected? http://zope.org/Collectors/Zope/232 Should I add another issue to the collector? terry ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] PageTemplate Internet Explorer error
Hi, I have the latest PageTemplates, ZTUtils, and TAL installed on Zope 2.4.3 with python 2.1.1 on Linux. Whenever I try to create or edit a PageTemplate using IE5.5 or IE6 on windows I get the following error. It works fine however when I use Netscape or Mozilla on windows or linux. I have seen some other emails about this error, but none seemed to suggest that the problem was ever solved. Is somebody working on this, or has somebody found a solution? terry kerr Site Error An error was encountered while publishing this resource. Error Type: Undefined Error Value: "manage_page_header" not found in "here/manage_page_header" Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/zope/Zope/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/zope/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: ptAdd) File /home/zope/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: ptAdd) File /home/zope/Zope/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: ptAdd) File /home/zope/Zope/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: ptAdd) File /home/zope/Zope/lib/python/Products/PageTemplates/PageTemplateFile.py, line 163, in _exec (Object: ptAdd) File /home/zope/Zope/lib/python/Products/PageTemplates/PageTemplate.py, line 156, in pt_render (Object: ptAdd) (Info: {'container': <__FactoryDispatcher__ instance at 90c56d8>, 'here': <__FactoryDispatcher__ instance at 90c56d8>, 'modules': , 'nothing': None, 'options': {'args': ()}, 'request': formcookiesotherAUTHENTICATION_PATH''URL3'http://orgazmo.adroit:8080'URL0'http://orgazmo.adroit:8080/manage_addProduct/ PageTemplates/ptAdd'URL1'http://orgazmo.adroit:8080/manage_addProduct/ PageTemplates'BASE3'http://orgazmo.adroit:8080/manage_addProduct /PageTemplates'URL2'http://orgazmo.adroit:8080/manage_addProduct' BASE1'http://orgazmo.adroit:8080'traverse_subpath[]SERVER_URL'http://orgazmo.adroit:8080'PUBLISHED<PageTemplateFile instance at 91b4888>URL'http://orgazmo.adroit:8080/manage_addProduct/P ageTemplates/ptAdd'AUTHENTICATED_USERAnonymous UserBASE2'http://orgazmo.adroit:8080/manage_addProduct 'TraversalRequestNameStack[]BASE0'http://orgazmo.adroit:8080'BASE4'http://orgazmo.adroit:8080/manage_addProduct /PageTemplates/ptAdd'URL0http://orgazmo.adroit:8080/manage_addProduct/P ageTemplates/ptAddURL1http://orgazmo.adroit:8080/manage_addProduct/P ageTemplatesURL2http://orgazmo.adroit:8080/manage_addProductURL3http://orgazmo.adroit:8080BASE0http://orgazmo.adroit:8080BASE1http://orgazmo.adroit:8080BASE2http://orgazmo.adroit:8080/manage_addProduct< /td>BASE3http://orgazmo.adroit:8080/manage_addProduct/ PageTemplatesBASE4http://orgazmo.adroit:8080/manage_addProduct/ PageTemplates/ptAddenvironHTTP_ACCEPT_ENCODING'gzip, deflate'channel.creation_time1016684537SERVER_PROTOCOL'HTTP/1.1'SERVER_PORT'8080'PATH_INFO'/manage_addProduct/PageTemplates/ptAdd'< /td>HTTP_HOST'orgazmo.adroit:8080'REQUEST_METHOD'GET'PATH_TRANSLATED'/manage_addProduct/PageTemplates/p tAdd'SCRIPT_NAME''SERVER_SOFTWARE'Zope/(Zope 2.4.1 (source release, python 2.1, linux2), python 2.1.1, linux2) ZServer/1.1b1'HTTP_ACCEPT_LANGUAGE'en- au'HTTP_ACCEPT'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*'REMOTE_ADDR'10.0.0.22'SERVER_NAME'orgazmo.adroit'GATEWAY_INTERFACE'CGI/1.1'HTTP_USER_AGENT'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)'CONNECTION_TYPE'Keep-Alive', 'root': , 'template': , 'traverse_subpath': [], 'user': Anonymous User}) File /home/zope/Zope/lib/python/TAL/TALInterpreter.py, line 229, in __call__ File /home/zope/Zope/lib/python/TAL/TALInterpreter.py, line 262, in interpret File /home/zope/Zope/lib/python/TAL/TALInterpreter.py, line 503, in do_insertStructure_tal File /home/zope/Zope/lib/python/Products/PageTemplates/TALES.py, line 297, in evaluate Undefined: (see above) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] recursion depth exceeded
Hi, I am running a fairly high traffic Zope server where people occassionly ftp files in and out of the server. Approximately once per week, the zope process will go to using 99%CPU and stay like that untill it is restarted. The error shown in the stupid log file is: 2002-03-06T01:22:41 ERROR(200) ZServer uncaptured python exception, closing channel (exceptions.RuntimeError:maximum recursion depth exceeded [/usr/local/lib/python2.1/asyncore.py|poll|104] [/usr/local/lib/python2.1/asyncore.py|handle_write_event|393] [/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/asynchat.py|handle_write|147] [/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/asynchat.py|initiate_send|209] [/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/asynchat.py|refill_buffer|190] [/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/ftp_server.py|close|179] [/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/ftp_server.py|close|903] [/usr/local/lib/python2.1/asyncore.py|close|355] [/usr/local/lib/python2.1/asyncore.py|del_channel|241] [/usr/local/lib/python2.1/asyncore.py|__getattr__|361] [/usr/local/lib/python2.1/asyncore.py|__getattr__|361] [/usr/local/lib/python2.1/asyncore.py|__getattr__|361] [/usr/local/lib/python2.1/asyncore.py|__getattr__|361] [/usr/local/lib/python2.1/asyncore.py|__getattr__|361] [/usr/local/lib/python2.1/asyncore.py|__getattr__|361] [/usr/local/lib/python2.1/asyncore.py|__getattr__|361] [/usr/local/lib/python2.1/asyncore.py|__getattr__|361] [/usr/local/lib/python2.1/asyncore.py|__getattr__|361] [/usr/local/lib/python2.1/asyncore.py|__getattr__|361] [/usr/local/lib/python2.1/asyncore.py|__getattr__|361] [/usr/local/lib/python2.1/asyncore.py|__getattr__|361] [/usr/local/lib/python2.1/asyncore.py|__getattr__|361] [/usr/local/lib/python2.1/asyncore.py|__getattr__|361] and so on... Line 361 in asyncore.py is: 358# cheap inheritance, used to pass all other attribute 359# references to the underlying socket object. 360def __getattr__ (self, attr): 361return getattr (self.socket, attr) It hints to me that it is some sort of ftp server error that is causing the problem. I have looked into it, but most of it is over my head and I was hoping somebody could help. I have tried to reproduce the error, but without success. The server is: FreeBSD4.3 Zope 2.4.3 (from src) python 2.1.2 terry -- Terry Kerr ([EMAIL PROTECTED]) Chief Technical Officer Bizar Software Pty Ltd (www.bizarsoftware.com.au) +61 3 9530 9182 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] logging crash
Hi, I have modified ZServer/medusa/http_server.py::http_request.log() so that the host is tacked onto the end of the log file. This is so that I can track my virtual hosts. The modification is very simple...only two lines added as shown by the *: * host=self.get_header('host') self.channel.server.logger.log ( self.channel.addr[0], ' - %s [%s] "%s" %d %d "%s" "%s" "%s"\n' % ( name, self.log_date_string (time.time()), self.request, # blah...change this self.reply_code, bytes, referer, user_agent, * host ) ) However, my server is continually crashing and restarting about 4 or 5 times per day, and my log file shows up one particulary error quite regularly followed by the server crash: 2002-01-30T02:02:02 ERROR(200) ZServer uncaptured python exception, closing channel (exceptions.AttributeError:'None' object has no attribute 'split' [/usr/local/lib/python2.1/asyncore.py|poll|104] [/usr/local/lib/python2.1/asyncore.py|handle_write_event|393] [/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/asynchat.py|handle_write|147] [/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/asynchat.py|initiate_send|209] [/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/asynchat.py|refill_buffer|196] [/usr/local/zope/Zope-2.4.3-src/ZServer/Producers.py|more|108] [/usr/local/zope/Zope-2.4.3-src/ZServer/medusa/http_server.py|log|287]) -- 2002-01-30T02:02:03 ERROR(200) zdaemon zdaemon: Wed Jan 30 13:02:03 2002: Aiieee! 21875 exited with error code: 256 This hints that the server is crashing when trying to log, although I cannot figure out why. I cannot see where the 'split' comes into it. The server is getting about 50,000 hits per day. I am running 2.4.3, with python 2.1.2 on freebsd. I originally found the logging hack on the zope site somewhere and cannot find it again. Can any one explain why it would crash so often. terry -- Terry Kerr ([EMAIL PROTECTED]) Chief Technical Officer Bizar Software Pty Ltd (www.bizarsoftware.com.au) +61 3 9530 9182 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Database pack error.
Hi, I posted to [EMAIL PROTECTED] regarding this error with no useful reponse. I am running Zope-2.4.1 on linux with python2.1.1. Whenever I try to pack the database I get: Error Type: FileStorageError Error Value: The database has already been packed to a later time or no changes have been made since the last pack traceback (innermost last): File /home/zope/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/zope/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/zope/Zope-2.4.1-src/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: Fake) File /home/zope/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/zope/Zope-2.4.1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_pack) File /home/zope/Zope-2.4.1-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_pack) File /home/zope/Zope-2.4.1-src/lib/python/App/ApplicationManager.py, line 419, in manage_pack (Object: LockableItem) File /home/zope/Zope-2.4.1-src/lib/python/ZODB/DB.py, line 535, in pack File /home/zope/Zope/lib/python/ZODB/FileStorage.py, line 1240, in pack (Object: /home/zope/instance/var/Data.fs) FileStorageError: (see above) I have tried making changes to the database, setting the system clock forward several years, and it made no difference. I also commented out the redundancy check at line 1240 in FileStorage.py and tried the pack. In that case, it was seemingly successfull, except that the DB size didn't reduce. Any ideas on how my DB was corrupted and how I can fix it? (I am happy to provide the 1.5gig Data.fs if that would help ;-) ) terry -- Terry Kerr ([EMAIL PROTECTED]) Chief Technical Officer Adroit Internet Solutions (www.adroit.net) Phone: +61 3 9563 4461 Fax: +61 3 9563 3856 ICQ: 79303381 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Catalog Text Indexing
Hi, Is there any particular reason that a Text Index will index an object by acquiring the value to index? Shouldn't it not index at all if the value doesn't exist on the object? The only way I can get my objects to not be indexed if they don't have the indexing attribute is to set the attribute to None, reindex, then remove the attribute. By make this simple change to lib/python/Products/PluginIndexes/TextIndex/TextIndex.py 353c353,354 < source = getattr(obj, self.id) --- > from Acquisition import aq_base > source = getattr(aq_base(obj), self.id) The object is only indexed if the value exists on that object. This fixes my problem. I believe KeyWord Indexes have the same problem Terry -- Terry Kerr ([EMAIL PROTECTED]) Chief Technical Officer Bizar Software Pty Ltd (www.bizarsoftware.com.au) Phone: +61 3 9563 4461 Fax: +61 3 9563 3856 ICQ: 79303381 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] rotating_file_logger error
Hi, After seeing http://www.zope.org/Members/tim/logmanagement I attempted to setup log file rotation but Zope wouldn't start due to an error in ZServer/medusa/logger.py (Zope 2.4.1). The error is obvious at lines 106,108,110, time.mktime() is called with 9 arguements rather than a tuple of 9 elements. Simple changing this appears to fix the rotating logger. Surely others have come across this? Or am I the only one who rotates Zope logs like this? I would put it inthe collector except that it is down. terry -- Terry Kerr ([EMAIL PROTECTED]) Chief Technical Officer Adroit Internet Solutions (www.adroit.net) Phone: +61 3 9563 4461 Fax: +61 3 9563 3856 ICQ: 79303381 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] RE: Dreamweaver, Webdav and PUT.
Hi, I discovered that if I define the PROPFIND method on the LockNullResource class as follows: def PROPFIND(self, REQUEST, RESPONSE): """Retrieve properties defined on the resource.""" self.dav__init(REQUEST, RESPONSE) cmd=davcmds.PropFind(REQUEST) result=cmd.apply(self) RESPONSE.setStatus(207) RESPONSE.setHeader('Content-Type', 'text/xml; charset="utf-8"') RESPONSE.setBody(result) return RESPONSE then the dreamweaver PUT works perfectly. I don't know enough about Webdav to know if this is a satisfactory fix or not, but it seems to work for me. The collector is down currently but I will put it in when it is back up unless others advise me not to. terry -- Terry Kerr ([EMAIL PROTECTED]) Chief Technical Officer Adroit Internet Solutions (www.adroit.net) Phone: +61 3 9563 4461 Fax: +61 3 9563 3856 ICQ: 79303381 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Dreamweaver, Webdav and PUT.
Hi, I am having trouble PUT'ing new files into Zope using webdav from dreamweaver. I have dreamweaver 4 with the 4.01 update, and are running zope2.4.1 with python 2.1. I have create a html file 'untitiled.html' and are trying to PUT that into the root folder of my Zope instance. I have setup webdav on port 8081, and authentication is setup correctly as I can GET, LOCK, UNLOCK and PUT files that already exist in the Zope tree, just not create a new file using PUT. >From looking at the zope logs, Dreamweaver seems to issue the following commands when creating the new file. "PROPFIND /untitled.html HTTP/1.1" 404 2305 "" "PROPFIND /untitled.html HTTP/1.1" 404 2305 "" "LOCK /untitled.html HTTP/1.1" 200 765 "" "PROPFIND /untitled.html HTTP/1.1" 404 2304 "" The LockNullResource object is created in the Zope root, however then dreamweaver spits out an error "The desired action could not be completed because the resource was not found". >From looking into the the lib/python/webdav/NullResource.py::LockNullResource code, it seems that calling PROPFIND on the LockNullResouce will always return not found! def HEAD(self, REQUEST, RESPONSE): """Retrieve resource information without a response message body.""" self.dav__init(REQUEST, RESPONSE) raise 'Not Found', 'The requested resource does not exist.' # Most methods return 404 (Not Found) for null resources. DELETE=OPTIONS=TRACE=PROPFIND=PROPPATCH=COPY=MOVE=HEAD It seems to me that you can never create a new file using webdav! Has anyone else come across this? Is there a work around? terry -- Terry Kerr ([EMAIL PROTECTED]) Chief Technical Officer Adroit Internet Solutions (www.adroit.net) Phone: +61 3 9563 4461 Fax: +61 3 9563 3856 ICQ: 79303381 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] thread locking and ZODB
Chris, I notice in the ZODB2 article that it states that the conflict resolution method "should return the state of the object after resolving the differences.". However, in the example the method only returns the portion of the state that was deamed to be in conflict. Shouldn't it be returning the entire new state dictionary? terry Chris Withers wrote: > > Indeed. The is called conflict resolution and your problem is solved as an > example in: > http://www.zope.org/Documentation/Articles/ZODB2 > ...in the section "Resolving Conflicts" -- Terry Kerr ([EMAIL PROTECTED]) Bizar Software Pty Ltd (www.bizarsoftware.com.au) Phone: +61 3 9563 4461 Fax: +61 3 9563 3856 ICQ: 79303381 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] thread locking and ZODB
Hi, I have a method which increments an attribute on the current object. I have created a thread lock so that multiple threads accessing the method simultaneously cannot stuff up the attribute value: lock = thread.allocate_lock() def nextOrderNumber(self): lock.acquire() self._order_number = self._order_number + 1 lock.release() return str(self._order_number) My concern is that even though a second thread is halted at "lock.acqure()" while the first thread updates the order_number, that the second thread has an 'out of date' version of 'self' with the original order_number value in it, hence, is still returning the incorrect order_number. Do I need to explicity get the order_number attribute from the ZODB somehow, rather than grabbing it from 'self'? terry -- Terry Kerr ([EMAIL PROTECTED]) Bizar Software Pty Ltd (www.bizarsoftware.com.au) Phone: +61 3 9563 4461 Fax: +61 3 9563 3856 ICQ: 79303381 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Coding Standards
http://www.python.org/doc/essays/styleguide.html Rick St Jean wrote: > Hey all, > > I am completely new to ZOPE and to PYTHON, although I have a programming > background in other > languages. I was wondering if some people would mind sharing a copy of a > coding standard that they > use including naming conventions and general never-evers, or always always. > I figure if someone has > a standard it usually helps new people to avoid pitfalls. > > Thanks in Advance, > Rick > > ## > # Rick St Jean, > # [EMAIL PROTECTED] > # President of Design Shark, > # http://www.designshark.com/, http://www.phpmailer.com/ > # Quick Contact: http://www.designshark.com/messaging.ihtml > # Tel: 905-684-2952 > ## > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions (www.adroit.net) Phone: +61 3 9563 4461 Fax: +61 3 9563 3856 ICQ: 79303381 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] OS X support
Hi, Is there any plans for zope to support OS X? terry -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions (www.adroit.net) Phone: +61 3 9563 4461 Fax: +61 3 9563 3856 ICQ: 79303381 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] webdav GET method
Hi, I find webdav useless in editing zope content as GETting a DTMLMethod for example, returns the processed method rather than the source. This is expected since webdav extensions to HTTP do not redefine the HTTP GET method, hence a webdav GET is simply a HTTP GET. I had a quick search of the zope-dev archives and some webdav resource, but surprisingly didn't find an discussion on this problem. What are peoples thoughts on this? Am I missing something? terry -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions (www.adroit.net) Phone: +61 3 9563 4461 Fax: +61 3 9563 3856 ICQ: 79303381 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Streaming?
That is not streaming. That is just as you said..lack of bandwidth delaying the entire page arriving at once at you browser. That is not contolled. The server doesn't send it 'bit by bit' in a controlled manner. terry Lalo Martins wrote: > On Mon, Oct 30, 2000 at 12:23:36PM +1100, Terry Kerr wrote: > > Isn't that dependant on the protocol u are using to transfer the data? > > HTTP can't do streaming. You can sort of do streaming using the > > experimental multipart content type, but IE browers don't recognise it, > > so it is pretty useless. > > What are you talking about? Try to load any standard html page > with a very slow connection. If you just send the data slowly, > the browser will show it as it is received. That's streaming. > > You can point an mp3 or realaudio player at an URL and it will > download the file and play it as it arrives. > > That's the kind of streaming I want to do. > > []s, >|alo >+ > -- > Hack and Roll ( http://www.hackandroll.org ) > News for, uh, whatever it is that we are. > > http://zope.gf.com.br/lalo mailto:[EMAIL PROTECTED] > pgp key: http://zope.gf.com.br/lalo/pessoal/pgp > > Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Streaming?
Isn't that dependant on the protocol u are using to transfer the data? HTTP can't do streaming. You can sort of do streaming using the experimental multipart content type, but IE browers don't recognise it, so it is pretty useless. With the context you gave, you could probably do that with the experimental multiplart content, but it would only work with netscape. terry Lalo Martins wrote: > Is it possible to "stream" (send data to the client via HTTP > incrementally) from Python code, or does ZPublisher only send > the data as a single wad when the method returns? > > Assuming it is possible, obviously it requires using some other > API rather than just 'return'ing a string... where can I find > documentation and/or examples on that? If there is no existing > documentation or examples, source code would do. > > (Context: when the tests are running on ZUnit, I'd like to give > some visual feedback, if possible by sending the dots returning > by PyUnit in real-time) > > []s, >|alo >+ > -- > Hack and Roll ( http://www.hackandroll.org ) > News for, uh, whatever it is that we are. > > http://zope.gf.com.br/lalo mailto:[EMAIL PROTECTED] > pgp key: http://zope.gf.com.br/lalo/pessoal/pgp > > Brazil of Darkness (RPG)--- http://zope.gf.com.br/BroDar > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: [Zope] Re: [Zope-dev] cookies & ie5.5 win
I had a problem like this once, and worked out that it was because the system time was incorrect in IE somehow. The time that windows was displaying was correct, but that had been manually changed to take in to account day light savings which started early in Australia this year due to the olympics. But for some reason internallyIE was using the wrong time, so my cookies were expiring as soon as they were set! Netscape on windows didn't have the same problem...and obviously netscape on linux didn't have the problem. terry Chris Withers wrote: > Sebastian Luehnsdorf wrote: > > i'm having a strange problem with cookie based user authentication with > > ms internet explorer 5.5 on windows. it seems that the browser (but only > > this version and only under windows!) seems to "forget" its cookies, which > > results in an immediate logout. does anybody have similar experiences or a > > even solution? > > I've had this problem occasionally with other versions of IE. > I wonder whether you're setting the path on cookies correctly? > > That's all I can think of... > > Anyone else noticed this? > > cheers, > > Chris > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) -- - Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions http://www.adroit.net/ 03 9563 4461 0414 708 124 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] cut/paste catalogue aware zclass instances still broken in 2.20?
I had this problem with 2.1.6, but it seems to fix itself with 2.2.0. I think you must be having a different problem. The problem with 2.1.6 was to do with the copying of objects to the clipboard. You were not able to call absolute_url() on an object in the clipboard, and that cause problems when cutting and pasting catalog aware classes since the index in the catalog is done by the absolute url and so when unindexing, absolute_url() is called. However, the clipboard stuff has changed in 2.2.0 and the problem seems to have been fixed as far as I can tell. terry "Dr. Ross Lazarus" wrote: > Has anyone else noticed a problem with pasting cut or copied > catalogue-aware zclass instances? > > The collector item #1371 I submitted on June 27 seems still to be > present in 2.20 final - sorry, I don't have a patch... > > It's a function I need and duplicating it without using > manage_pasteObject after a manage_cutObject is going to be painful. > > The manage_cutObject and manage_copyObject functions seem happy enough, > but when I do a manage_pasteObject, I get "the object foobar does not > support this operation" - no traceback. > > Zope-2.2.0 source on Redhat linux 6.1 > > ___ > Zope-Dev maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope ) -- Terry Kerr ([EMAIL PROTECTED]) Adroit Internet Solutions Pty Ltd (www.adroit.net) Phone: +613 9563 4461 Fax: +613 9563 3856 Mobile: +61 414 938 124 ICQ: 79303381 ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )