What's wrong with AbstractCatalogBrain.getObject()? Doesn't that work?
-Randy
> -Original Message-
> From: Casey Duncan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 14, 2001 3:45 PM
> To: R. David Murray; [EMAIL PROTECTED]
> Subject: Re: [Zope-dev] Calling Catalog from python
"R. David Murray" wrote:
>
> I'll probably figure this out as soon as I post like last time, but I've
> been staring at it and can't see my mistake. The following code returns
> a list of None's:
>
> objs = []
> for catent in container.Catalog(context.REQUEST):
> objs.append(container.Catalog
[EMAIL PROTECTED] wrote:
> "R. David Murray" wrote:
>> catent.getobject()
>>
>> That would seem to be a lot more OOish.
In 2.3 you can call catent.getObject(). You can pass an optional REQUEST
in as an argument, to support lookup via resolve_url rather than
restrictedTraverse.
--
Steve A
"R. David Murray" wrote:
> objs = []
> for catent in container.Catalog(context.REQUEST):
> objs.append(container.Catalog.getobject(catent.data_record_id_))
> return objs
>
> I've checked, and catent is a mybrains instance and catent.data_record_id_
> has an increasing number as its value. So w
I'll probably figure this out as soon as I post like last time, but I've
been staring at it and can't see my mistake. The following code returns
a list of None's:
objs = []
for catent in container.Catalog(context.REQUEST):
objs.append(container.Catalog.getobject(catent.data_record_id_))
return
If you bump maxusers up to 64 (from the default 32) and rebuild
the kernel the messages should go away... it's worked for me.
-steve
> "RDM" == Zope mailing lists <[EMAIL PROTECTED]> writes:
RDM> On Wed, 14 Feb 2001, Sin Hang Kin wrote:
>> When starting Zope2.3 from the freebsd box
Hi,
first a more python/httplib.py specific question: I know
there has been a patch for this module to support socket timeout
exception but I cant find the bastard. Anyone?
I can see that in Python2.0 the urllib module now has a timeout
implementation but is it safe to replace urllib.py from 2.
A draft of my Berkeley storage proposal is now in the fishbowl:
http://dev.zope.org/Wikis/DevSite/Proposals/BerkeleyStorage
Feel free to add your comments to the wiki.
-Barry
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mail
All,
I've got a Zope 2.3 server that's being used as a file server through
webdav. It seems to work fine and I'm working on extending it through
hookable_put.
I've notice some strange behavior in the transactions when trying to
'undo' binary files upload through webdav. It throws an error and
[Michel Pelletier]
| We would love to see this description from you.
The description of such a system/model in a Fishbowl project? Or just
a general description? Sorry for being slow :)
| I think it would be great to get examples of your problems in a case
| study format, but also in a higher
On Wed, 14 Feb 2001, Sin Hang Kin wrote:
> When starting Zope2.3 from the freebsd box, the kernel says : file: table is
> full.
>
> The kern.maxfiles is set to 1064, does zope really need that many? what
> number should I need to make zope happy?
I noticed this problem with Zope and FreeBSD a lo
On 12 Feb 2001, Morten W. Petersen wrote:
> [Jon Franz]
>
> | I had this problem in the past and hacked the mysql DA to fix it, then
> | dicovered to my dismay I was using an out-of-date mysqlDA and it had already
> | been fixed... Which DA are you using?
>
> Using Python 2.0 could solve this p
Ah that one. I was looking too deeply for something amusing there.
--
Andy McKay.
- Original Message -
From: "Matt Hamilton" <[EMAIL PROTECTED]>
To: "Andy McKay" <[EMAIL PROTECTED]>
Cc: "Michel Pelletier" <[EMAIL PROTECTED]>; "Erik Enge" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: W
On Wed, 14 Feb 2001, Andy McKay wrote:
> Perhaps I need more beer but whats: F=MA?
Force = Mass x Acceleration
ie. the harder you kick the beer can the faster it will accelerate for any
given amount of beer in it. a.k.a why kicking empty beers can hurt your
toes less than kicking full ones. (wh
Chris Withers wrote:
>
> Shane Hathaway wrote:
> >
> > http://www.zope.org/Members/hathawsh/ZDebug
> > http://www.zope.org/Members/hathawsh/Refresh
>
> Just noticed, since I installed these yesterday, the icon for the Python product
> I'm developing has changed to a ZCatalog icon. I'm using refr
> partly on chaos theory, Jim's three laws of engineering (1. F=MA, 2. You
> can't solve a problem unless you know the answer, 3. You can't push a
> rope) and on the abundance of Thai food.
Perhaps I need more beer but whats: F=MA?
--
Andy McKay.
- Original Message -
From: "Michel Pe
Chris Withers wrote:
>
> ...now I presume that's 'cos there's a syntax error in my module's code. Is
> there anyway I can get something like the tracebacks you get when you restart
> Zope and this kindof thing happens?
Actually, the traceback I was looking for shows up in exactly the same palce
On Wed, 14 Feb 2001, Johan Carlsson wrote:
> > Small confusion here: "ZODB" is a higher-level abstraction than
> > "FileStorage"; it is quite feasible to have one or more storages
> > inside your Zope which are "packless" / "undo-less", and which
> > then have the space efficiencies you are loo
Just got this when I hit the refresh button:
Exception type: SyntaxError
Exception value: invalid syntax
Traceback:
File "E:\Zope\2.3.0\lib\python\Products\Refresh\RefreshPatch.py", line 253, in
manage_performRefresh
RefreshFuncs.performFullRefresh(
File "E:\Zope\2.3.0\lib\python\Prod
On Wed, 14 Feb 2001, Steve Alexander wrote:
> Tres Seaver wrote:
>
> >
> > ...it is quite feasible to have one or more storages
> > inside your Zope ... often at a non-trivial time cost.
>
> Where does the time cost come in? I've noticed a delay on first
> mounting another storage, but I haven'
When starting Zope2.3 from the freebsd box, the kernel says : file: table is
full.
The kern.maxfiles is set to 1064, does zope really need that many? what
number should I need to make zope happy?
Rgs,
Kent Sin
-
kentsin.weblogs.com
kentsin.imeme.net
__
Shane Hathaway wrote:
>
> http://www.zope.org/Members/hathawsh/ZDebug
> http://www.zope.org/Members/hathawsh/Refresh
Just noticed, since I installed these yesterday, the icon for the Python product
I'm developing has changed to a ZCatalog icon. I'm using refresh on that product
a lot adn ZDebug
Shane Hathaway wrote:
>
> I've added logic to sort the modules by dependency before performing the
> refresh. It should solve the simian problem. Feedback encouraged!
>
> http://www.zope.org/Members/hathawsh/Refresh/
Perhaps a stupid question, but is the Refresh product Refreshable? ;-)
*loo
> > That would work, however I just dont think that fits neatly into the ZODB in
> > any way since all objects are appended.
>
> Small confusion here: "ZODB" is a higher-level abstraction than
> "FileStorage"; it is quite feasible to have one or more storages
> inside your Zope which are "
24 matches
Mail list logo