[Zope-dev] experiments & bugs with data.fs >2GB
I've recently been testing a new setup with XFS (http://oss.sgi.com/projects/xfs/1.0_release.html) and decided to try to bloat data.fs before using this system for production. The computer is set up with zope 2.3.3 installed from source (the old fashioned way, with everything in one directory), with a separate 18GB disk as /usr/local/zope. I uploaded a couple of files -- seawolf disk one ISO image (about 650MB) and SGI's XFS install ISO (about 300MB). Both from another computer via ZMI via a 10 baseT network. (interestingly both loaded up OK, but the seawolf image gave a client side 'page failed to load' error, while the other worked fine. So I suppose 600MB is the hairy edge of filesize you can upload via ZMI) Then proceeded to copy the two files and paste. First time worked fine, pushing data.fs to about 1.9GB. Second time, I copied all 4, which should push data.fs to about 4GB. It seemed to reach about 2.29GB (perhaps copying the first XFS ISO image), then gave this error: -- Zope Error Zope has encountered an error while publishing this resource. Error Type: OverflowError Error Value: long int too long to convert 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 /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/Zope-2.3.3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_pasteObjects) File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_pasteObjects) File /usr/local/zope/Zope-2.3.3/lib/python/OFS/CopySupport.py, line 229, in manage_pasteObjects (Object: Traversable) File /usr/local/zope/Zope-2.3.3/lib/python/OFS/CopySupport.py, line 469, in _getCopy (Object: copy_of_RH7.1-SGI-XFS-1.0.iso) File /usr/local/zope/Zope-2.3.3/lib/python/ZODB/ExportImport.py, line 218, in importFile File /usr/local/zope/Zope-2.3.3/lib/python/ZODB/FileStorage.py, line 745, in tpc_vote (Object: /usr/local/zope/Zope-2.3.3/var/Data.fs) OverflowError: (see above) -- Lines 744 and 745 are: pos=self._pos file.seek(pos) it looks like file.seek doesn't like the long int? Also, when going to the UNDO tab get this error: --- Zope Error Zope has encountered an error while publishing this resource. Error Type: OverflowError Error Value: long int too long to convert 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 /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/Zope-2.3.3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_UndoForm) File /usr/local/zope/Zope-2.3.3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_UndoForm) File /usr/local/zope/Zope-2.3.3/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: manage_UndoForm) File /usr/local/zope/Zope-2.3.3/lib/python/Shared/DC/Scripts/Bindings.py, line 354, in _bindAndExec (Object: manage_UndoForm) File /usr/local/zope/Zope-2.3.3/lib/python/App/special_dtml.py, line 236, in _exec (Object: manage_UndoForm) File /usr/local/zope/Zope-2.3.3/lib/python/App/Undo.py, line 164, in undoable_transactions (Object: Traversable) File /usr/l
Re: [Zope-dev] ping
ACK ethan mindlace fremen wrote: > > pong > -- > -mindlace- > zopatista community liason > > ___ > 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 ) -- | Dyon Balding . Software Engineer . HiringTools.Monster.com | [EMAIL PROTECTED] . +1 415 288 3375 ___ 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] ping
pong -- -mindlace- zopatista community liason ___ 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] Proxy not Propagating - could be FSDTMLMethod
this is in the context of CMF, but its a ZOPE Security issue. I have a Script (Python), createJobPosting which is: from DateTime import DateTime path = ('', 'virtual_hosts', 'thecommode', 'Members', 'PUBLIC') PUBLIC = context.restrictedTraverse(path) id = str(DateTime().millis()) PUBLIC.invokeFactory(type_name='Job Posting', id=id) obj = getattr(PUBLIC,id) view = getattr(obj,'job_edit_form') return obj.getEditView() that is Proxied as Manager/Member/Reviewer.it creates a object just fine (in Members/PUBLIC) so then the script then calls obj.getEditView() which is: security.declarePublic('getEditView') def getEditView(self): skins = getToolByName(self, 'portal_skins') if hasattr(skins, 'job_edit_form'): self.editView = getattr(skins, 'job_edit_form') return self.editView(self, self.REQUEST) # i assume this gets a new security context? when its being 'published', how can i proxy this as Manager/Member/Reviewer? I need to render the job_edit_form (filesystem DTML Method) in the same Security Proxy context (as Manager/Member/Reviewer), but upon its publishing it encounters as _.hasattr(this(), 'myAttribute') and says I dont have access to this(). Zope2.3.3, CMF1.1, Linux, Python 1.52 Traceback (innermost last): File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/ZPublisher/Publish.p y, line 223, in publish_module File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/ZPublisher/Publish.p y, line 187, in publish File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/ZPublisher/Publish.p y, line 171, in publish File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/ZPublisher/mapply.py , line 160, in mapply (Object: createJobPosting) File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/ZPublisher/Publish.p y, line 112, in call_object (Object: createJobPosting) File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/Shared/DC/Scripts/Bi ndings.py, line 324, in __call__ (Object: createJobPosting) File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/Shared/DC/Scripts/Bi ndings.py, line 354, in _bindAndExec (Object: createJobPosting) File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/Products/PythonScrip ts/PythonScript.py, line 336, in _exec (Object: createJobPosting) (Info: ({'script': , 'context': , 'container': , 'traverse_subpath': []}, (), {}, None)) File Script (Python), line 11, in createJobPosting (Object: DateTime) File /home/zope/ZopeInstallation/InstanceHome/Products/CMFEmployment/JobPosting.p y, line 255, in getEditView (Object: DynamicType) File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/Products/CMFCore/FSD TMLMethod.py, line 180, in __call__ (Object: job_edit_form) File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/DocumentTemplate/DT_ String.py, line 540, in __call__ (Object: job_edit_form) File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/Products/CMFCore/FSD TMLMethod.py, line 175, in __call__ (Object: standard_html_header) File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/DocumentTemplate/DT_ String.py, line 540, in __call__ (Object: standard_html_header) File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/DocumentTemplate/DT_ Util.py, line 333, in eval (Object: _.hasattr(this(),'isEffective') and not isEffective(ZopeTime() )) (Info: this) File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/Products/CMFCore/FSD TMLMethod.py, line 198, in validate (Object: job_edit_form) File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/AccessControl/Securi tyManager.py, line 144, in validate File /home/zope/ZopeInstallation/ZopeSoftwareHome/lib/python/AccessControl/ZopeSe curityPolicy.py, line 225, in validate Unauthorized: (see above) I think quite a few people could run into this, when trying to Proxy content manipulation to non-logged into user, i.e. allowing people who are not logged into submitContent (but proxying them off as if they were a logged in Member -- in this case PUBLIC) .. I am going about this the correct way, I believe. ? I also tried to 'customize' the FSDTMLMethod and proxy it as Manager/Reviewer/Member and it still gives me the same error ;'( thanks, ~runyaga ___ 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] [Problem] Zope/Python2.x incompatibility
Toby Dickenson writes: > On Sun, 1 Jul 2001 16:15:40 +0200 (CEST), Dieter Maurer > <[EMAIL PROTECTED]> wrote: > > >I just met the following problem caused by a misfortunate name > >clash between Python2.x and Zope: > > The *real* problem here (IMO, and I know I am close to alone on this > one ;-) is overstreaching dtml beyone what it is good for; that is > trivial document templating. My task was a trivial presentation task: displaying the properties of an object... > dtml-in is a particularly bad at polluting the dtml namespace (which > is particularly serious because you have only got one of them) It makes the presentation of database queries really easy Dieter ___ 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] KeywordIndexes in Zope 2.4.0b2
> > hmm...please be more detailed. The index management views > > don't have an Undo tab. > > > > > /my_zcatalog//manage_addKeywordIndex by chris > > > > > > ...when I add an index, which doesn't seem right. > > Any Undo tab in or above the Catalog will show you this, looks like a bug in the > Transaction commenting code... Sorry, I can't reproduce this. > > Well there were pros and cons.we decided to do it this way :-) > > What are they? Just from a usability point of view, teh current implementation > is, like i said, kinda clunky :-S Sorry, I can't remember in detail. If you need another solution submit a patch or write a Fishbowl proposal :-) Andreas ___ 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] KeywordIndexes in Zope 2.4.0b2
Andreas Jung wrote: > > hmm...please be more detailed. The index management views > don't have an Undo tab. > > > /my_zcatalog//manage_addKeywordIndex by chris > > > > ...when I add an index, which doesn't seem right. Any Undo tab in or above the Catalog will show you this, looks like a bug in the Transaction commenting code... > > Also, when I click on he indexes tab, it jumps to /my_zcatalog/Indexes and > all > > the tabs change. That feels really clunky :-S > > Can't the Indexes containerish object just appear in the ZCatalog contents > like > > the vocabulary does? > > Well there were pros and cons.we decided to do it this way :-) What are they? Just from a usability point of view, teh current implementation is, like i said, kinda clunky :-S cheers, Chris ___ 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] KeywordIndexes in Zope 2.4.0b2
From: "Chris Withers" <[EMAIL PROTECTED]> > I also found some little bugs... > > In the undo tab, I get: > hmm...please be more detailed. The index management views don't have an Undo tab. > /my_zcatalog//manage_addKeywordIndex by chris > > ...when I add an index, which doesn't seem right. > > Also, when I click on he indexes tab, it jumps to /my_zcatalog/Indexes and all > the tabs change. That feels really clunky :-S > Can't the Indexes containerish object just appear in the ZCatalog contents like > the vocabulary does? Well there were pros and cons.we decided to do it this way :-) Andreas ___ 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] KeywordIndexes in Zope 2.4.0b2
From: "Chris Withers" <[EMAIL PROTECTED]> > I also found some little bugs... > > In the undo tab, I get: > hmm...please be more detailed. The index management views don't have an Undo tab. > /my_zcatalog//manage_addKeywordIndex by chris > > ...when I add an index, which doesn't seem right. > > Also, when I click on he indexes tab, it jumps to /my_zcatalog/Indexes and all > the tabs change. That feels really clunky :-S > Can't the Indexes containerish object just appear in the ZCatalog contents like > the vocabulary does? Well there were pros and cons.we decided to do it this way :-) Andreas ___ 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] KeywordIndexes in Zope 2.4.0b2
From: "Chris Withers" <[EMAIL PROTECTED]> > I also found some little bugs... > > In the undo tab, I get: > hmm...please be more detailed. The index management views don't have an Undo tab. > /my_zcatalog//manage_addKeywordIndex by chris > > ...when I add an index, which doesn't seem right. > > Also, when I click on he indexes tab, it jumps to /my_zcatalog/Indexes and all > the tabs change. That feels really clunky :-S > Can't the Indexes containerish object just appear in the ZCatalog contents like > the vocabulary does? Well there were pros and cons.we decided to do it this way :-) Andreas ___ 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: KeywordIndexes in Zope 2.4.0b2
Andreas Jung wrote: > > see KeywordIndex_searchResults.stx > > The operator is *NOT* managable through the ZMI but you can pass > it as 'operator' parameter inside the query. even better :-) thankyou... Chris ___ 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] PS: KeywordIndexes in Zope 2.4.0b2
Also, if I click on the 'help' link in a KeywordIndex, I get: Cannot locate object at: http://localhost:8080/Control_Panel/Products/KeywordIndex Also, if you actually click on the 'Settings' tab in a keywordIndex, something weird happens. You get teh catalog contents page, but all the URLs are relative to the index and so are broken :-S Any ideas? cheers, Chris ___ 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] KeywordIndexes in Zope 2.4.0b2
Hi Andreas, I could have sworn I saw you checkin a KeywordIndex where you could AND rather than OR the search results, but now I've installed 2.4.0b2, I can only find a normal KeywordIndex's with nothing to manage in the Settings tab. Where should I be looking? I also found some little bugs... In the undo tab, I get: /my_zcatalog//manage_addKeywordIndex by chris ...when I add an index, which doesn't seem right. Also, when I click on he indexes tab, it jumps to /my_zcatalog/Indexes and all the tabs change. That feels really clunky :-S Can't the Indexes containerish object just appear in the ZCatalog contents like the vocabulary does? cheers, Chris ___ 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] [Problem] Zope/Python2.x incompatibility
On Sun, 1 Jul 2001 16:15:40 +0200 (CEST), Dieter Maurer <[EMAIL PROTECTED]> wrote: >I just met the following problem caused by a misfortunate name >clash between Python2.x and Zope: The *real* problem here (IMO, and I know I am close to alone on this one ;-) is overstreaching dtml beyone what it is good for; that is trivial document templating. dtml-in is a particularly bad at polluting the dtml namespace (which is particularly serious because you have only got one of them) Toby Dickenson [EMAIL PROTECTED] ___ 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] ZClass not in a Product
Title: RE: [Zope-dev] ZClass not in a Product I have to say that I agree with you Dieter. It would be very useful to have the ZClasses that relate to a project in a single branch with the rest of the project code for a number of reasons * Security (As you said). Users could have full write permissions to one branch only. * Backups or exporting from development to production servers. With the code all in one place, it would be possible to export the entire project from a development server and import it to the production server in one action (Ok, one action each end) eliminating the possibility of getting code and ZClasses out of sync. * Reducing the size of the "Add List" - This has to be a pain for everyone! However I also understand the appeal of having a central, restricted, ZClass repository as well, it just serves a different (Not incompatible) purpose. I think that both situations would be useful ... Now we just need to find out if they are possible. :) -- Adrian Hungate Manager, European I.S. Acucorp UK Limited "To a database person, every nail looks like a thumb. Or something like that." - Jamie W. Zawinski http://www.zopezen.org/Zope/Quotes -Original Message- From: Dieter Maurer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 26 June 2001 05:07 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope-dev] ZClass not in a Product Joachim Werner writes: > I know about the "duality" of Python classes. I just don't see what I could > really do with a ZClass in the "instance space" (reading this twice, see > below for some possible examples). A totally different aspect is whether > Zope should have something like an in-built support for "virtual instances", > i.e. sub-folders could be like full Zope instances, providing a local > Products directory etc. To clarify, you use "instance" here in the spirit of "Zope instance" a-la "INSTANCE_HOME" and not in the sense of "instance" of a class... That would probably be a good thing. > I am more in favor of getting things OUT of the instance folders than > getting more stuff in. That is completely different from what I would like to do. > It makes absolutely no sense to me why the Zope management interface > displays database adaptors, user folders, and actual content objects all in > the same folder. It makes lots of sense for me! Consider a large site hosting many applications, partly developed and maintained by different people/departments. It is very nice to be able to structure the site hierarchy into folders corresponding to appliciations and allow each team responsible for an application to put in everything they need for the implementation: database adapters, additional user definitions, special roles, ZClasses, Zope already allows this partially. Unfortunately, the product registry is global and not managed similar to user folders. Your proposed "virtual instances" would be an alternative solution. I could live with it, though I would not think it is better. > > To come back to the ZClass question: I see and use them mainly as templates. > That's what they are good for. So they should reside in a template folder. > Right now, this folder is the Products folder. Maybe we need local > Products/Templates folders, so that it is possible to have ZClasses that > just work locally or that overload a base ZClass defined up in the tree. But > what we definitely don't need is freely floating ZClasses. I am much in favor to structure objects *NOT* according to type (e.g. all images in a folder, all SQL methods in a folder, all Scripts in a folder, ...) but according to applications/services: One folder for each service which contains everything needed only for this service: images, scripts, SQL methods, content, ZClasses, There are things that are used more globally. They may go into type specific folders. > ... Dieter ___ 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] ZCatalog out of Zope
"Paulo M. Goncalves" wrote: > > I'm a Zope and Python newbie and I'm trying to work with Zope's ZCatalog > in a Product coded in python. Can anyone give some intro or point to > some links with info in this subject. Maybe have a look at the SquishSite.py file in Squishdot? The search method of the SquishSite class does some ZCatalog searching... cheers, Chris ___ 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 )