Title: Re: [Zope-dev] Please HELP: Nested ZClass, Nested instance
Hello Karl, who has same name as me:-)
Yes, I can create child zclass nested in parent zclass according to the Howto on management interface.
And the zclasses were inherited from Object Manager and Catalog aware class.
But s
Shane Hathaway writes:
Okay, here's the output. (BTW is was trying manage_debug without the
Control_Panel. That was not intelligent;)
Class May 22, 2000 4:21 amMay 22, 2000 4:22 amDelta
OIBTree.Bucket 71328135+1003
IOBTree.BTree 25
On Mon, May 22, 2000 at 10:23:38AM -0600, mindlace wrote:
> Robin Becker wrote:
> > What kind of idiotic permissions model is this where God cannot create
> > anything? What is the function of the super user if not to manage?
> > Seems to be specially designed for bureaucrats, lawyers and politici
Hi everyone,
After the announcement that the version 2.2.0a1 of Zope was out, I
decided to go for it. I was able to make it running in no time.
I tried to install two different Products: ZMySQLDA and SiteAccess.
The first one worked fine the first time. But I get an error starting
the se
Kevin Dangoor:
> > Here's something to think about: whenever an object is added to or
> > removed from a folder, all objects in all neighboring folders and below
> > are traversed. The manage_beforeDelete and manage_afterAdd hooks are
> > called on each object.
>
> Jason, I don't know if you've
On Mon, 22 May 2000, Jason Spisak wrote:
> > > Also, is see reference to 161 Products.GadflyDA.gadfly.kjparser.ParseRule,
> > > and I'm not even useing Gadfly!
[...]
> > Chances are some other product is "reaching in" to Gadfly. Do you have
> > the Zope tutorial installed? It uses Gadfly.
>
> N
- Original Message -
From: "Shane Hathaway" <[EMAIL PROTECTED]>
To: "Jason Spisak" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, May 22, 2000 6:29 PM
Subject: Re: [Zope-Dev] Zope 2.1.6 Memory issue
> Here's something to think about: whenever an object is added to or
> removed
Shane,
Well I lied. The memory is now fluctuating. It went as high as 12MB
available (out of a gig) and down to 2MB. This seems fine, it's just that
I'm scraping the bottom of the barrel. Also, I really am curious why
flushing the cache doesn't reclaim memory, too.
All my best,
Jason S
Shane Hathaway writes:
Well, I reduced the 'target size' from 20,000 object down to 1000, and the
memory seems to be climbing.
> Jason Spisak wrote:
> > >
> > > After minimizing your in-memory cache, look at the manage_debug screen
> > > again. Are the refcounts still high? I bet they are...
Jason Spisak wrote:
> >
> > After minimizing your in-memory cache, look at the manage_debug screen
> > again. Are the refcounts still high? I bet they are...
> >
>
> No. The ref counts drop to hundreds.
That's a big relief. Okay, now we know that this isn't a memory leak,
it's only related t
Geir =?ISO-8859-1?Q?B=E6kholt?= writes:
> is it possible to use multiple locales ??
> I am currently developing a site in 4 languages (with 2 more
> to come) , and have experienced similar problems with the
> catalog..
This may be difficult, because you must switch locales
at runtime (which is
"Park, Karl" <[EMAIL PROTECTED]> writes:
> I created a ZClass in the Product folder. And anther ZClass under the
> ZClass(thus nested class)
> To do it, I created a DTML Method which accepts user's input and then, if
> needed, it have to create an object.
> First part is to create the parent ob
At 04:37 PM 5/22/00 -0400, Dan L. Pierson wrote:
>Never mind. I found the bug of mine.
What was it? I saw your question and this answer at the same time, and now
I'm curious. :)
>I now hope to get a PTK/LoginManager patch out tomorrow.
Fantastic. I really hope to actually have time to *loo
Shane Hathaway writes:
> Jason Spisak wrote:
> >
> > Shane Hathaway writes:
> >
> > > Jason Spisak wrote:
> > > > > You must have a large site.
> > > >
> > > > 300,000 + objects
> > >
> > > Whoa... ;-)
> > >
> > > Tell me, what are you doing with 300K objects?
> > >
> > > Shane
> >
> > Techni
David Kankiewicz writes:
> Jason Spisak wrote:
> >
> > After being up for about a half-hour my objects reading are:
> >
> > Total number of objects in the database 300280
> > Total number of objects in all of the caches combined 150995
> >
> > Is this typical? Half? I doubt it. My target siz
Never mind. I found the bug of mine.
I now hope to get a PTK/LoginManager patch out tomorrow.
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http:
posted a new issue regarding XMLImporter integration
http://www.zope.org/Wikis/zope-xml/XMLImporter%20mapping%20dictionary
--
Chimezie Thomas-Ogbuji
Junior Consultant
Fourthought Inc.
(303) 583 9900 ext 104
[EMAIL PROTECTED]
___
Zope-Dev maillist -
>First part is to create the parent object, which works just fine.
>But the sencond part to create the child object doesn't seem to work.
>If I take the easy way, that is, creating othere ZClass on the top of the
>products folder of Control Panel, I can do it.
>But I don't think it is a good des
Shane Hathaway writes:
> Jason Spisak wrote:
> > > You must have a large site.
> >
> > 300,000 + objects
>
> Whoa... ;-)
>
> Tell me, what are you doing with 300K objects?
>
> Shane
After being up for about a half-hour my objects reading are:
Total number of objects in the database 300280
R. David Murray:
Since this is a very heavily used Zope install, I am getting trashed faster
than you can say 'leakage'.
> On Mon, 22 May 2000, Jason Spisak wrote:
> > i did it again, and now I'm down to 160 objects total.
> > That's more liek it.
> > But system memory is still dropping. I was a
On Mon, 22 May 2000, Jason Spisak wrote:
> i did it again, and now I'm down to 160 objects total.
> That's more liek it.
> But system memory is still dropping. I was at 173632 available (This is
> only a half our after the Zope restart BTW. It ate 100MB in under that
> time.) before the second
Shane:
Holy cripe! I just saw a huge drop (half the available mem) and went to
the Undo tab to see what was going on. The last transaction was my
/Control_Panel/Database/manage_cache_age.
Then I went to the manage_debug and my DateTime.DateTime.DateTime is
DateTime.DateTime.DateTime 2460 96
Shane Hathaway writes:
> Go to Control Panel -> Database Management -> Flush Cache and click
> "minimize". Then go to Control Panel -> Database Management -> Cache
> Parameters. After a minimize operation, the "Total number of objects
> in all of the caches combined" should be relatively low
Shane Hathaway writes:
> Jason Spisak wrote:
> >
> > Shane Hathaway writes:
> >
> > I had to restart Zope. I was about to start swapping, and now everyone's a
> > lunch.
> >
> > It's so weird. Even though there is really no one on it that memory is
> > just flying out the window.
> >
> > > J
Shane Hathaway writes:
It doesn't look like the number of objects is dropping like it should when
it's set at 3 seconds. After 30 min I'm still at
DateTime.DateTime.DateTime +7398
BTree.Bucket+3501
intSet.intSet +1863
IOBTree.Bucket
Shane Hathaway writes:
I had to restart Zope. I was about to start swapping, and now everyone's a
lunch.
It's so weird. Even though there is really no one on it that memory is
just flying out the window.
> Jason Spisak wrote:
> >
> > Shane Hathaway writes:
> >
> > Okay, here's the output.
Phillip J. Eby writes:
> LoginManager will behave just like your outline, if you give it a
> BasicCookie LoginMethod, and a BasicAuth LoginMethod, in that order.
> LoginManager does not climb up the acquisition hierarchy, as that is
> properly the province of ZPublisher to do. It will provide
Jason Spisak wrote:
>
> Shane Hathaway writes:
>
> Okay, here's the output. (BTW is was trying manage_debug without the
> Control_Panel. That was not intelligent;)
>
> Class May 22, 2000 4:21 amMay 22, 2000 4:22 amDelta
> OIBTree.Bucket 71328135
> I want to write some dtml code that will add a DTML method that is
> totally empty. The add_DTMLMethod method in Zope puts in the default
> Zope content. How do I avoid that?
I'd say add the dtml method then edit it to empty the contents. Or hack the
source. ;)
--jfarr
"Perl is worse than Py
I just committed the cardinal sin and sent html to Shane without removing
zope-dev from the list. I apologize from the bottom of my BTreeBucket.
Cardinal Biggles get the 'Comfy Chair'!
Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F
Jason,
Try /Control_Panel/manage_debug ... it will tell you exactly which
kinds of objects are eating memory. Take a "snapshot" then refresh the
page after a couple of minutes, and the table should list at the top
the name of the class that's taking up more than its fair share.
Shane
Jason Spi
Zopists,
I am spoiled. I have a large server and until now I have never really
monitored memory usage. But I noticed things slowing down a great deal
and was curious. Swapping.
Machine:
RH 6.1
2.2.12-smp
Dual Xenon
1 gig memory
Zope install:
Zope 2.1 Binary
ZODB pure.
No DA's
Home grown ZC
...if you have a Wiki you want people to see. For example, I don't see
the ZPatterns Wiki on there...
--
-Michel Pelletier
http://www.zope.org/Members/michel/MyWiki
Visit WikiCentral for the latest Zen:
http://www.zope.org/Members/WikiCentral
__
Chris Withers wrote:
>
> Hi,
>
> I'm trying to get a grip of the ins and outs of the following classes,
> where should I look?
>
> -IOBTree (and the other IO* classes)
The BTree classes implement the Python mapping interface. They are
quite easy to use. There are three kinds:
Object to Obje
Phillip J. Eby:
> >> I'm not actually real fond of the DDO term, because "Dynamic Data Object"
> >> doesn't quite do justice to what these things actually are. I am
> >> definitely open to suggestions for a better name. (Facade? PlaceHolder?
> >> InsideOutObject? ExternalDataObject? BrainInje
At 12:14 PM 5/22/00 -0400, Tres Seaver wrote:
>"Phillip J. Eby" wrote:
>>
>> At 03:51 PM 5/21/00 -0400, Tres Seaver wrote:
>> >
>> >This is really just the classic Observer pattern, a la GoF Design
>> >Patterns. "ObjectAdded" and "ObjectRemoved" are events a
>> >"RackObserver" would register for
Geir BXkholt wrote:
>
> on Thursday, May 18, 2000 mindlace wrote :
>
> [snip]
> m> ./start -L 'my_locale'
>
> m> Assuming you're using zope 2.1.4 or later.
>
> m> I did it with Portuguese (./start -L 'pt_PT'), and all funny portuguese
> m> characters (çêã etc.) catalog properly. You may need
"Phillip J. Eby" wrote:
>
> At 03:51 PM 5/21/00 -0400, Tres Seaver wrote:
> >
> >This is really just the classic Observer pattern, a la GoF Design
> >Patterns. "ObjectAdded" and "ObjectRemoved" are events a
> >"RackObserver" would register for; "AfterCreate", "Changed",
> >and "BeforeDestroy" a
Robin Becker wrote:
> What kind of idiotic permissions model is this where God cannot create
> anything? What is the function of the super user if not to manage?
>
> Seems to be specially designed for bureaucrats, lawyers and politicians.
I feel like this specifically needed to be addressed. T
In article <[EMAIL PROTECTED]>, Chris Withers <[EMAIL PROTECTED]> writes
>Robin Becker wrote:
>> What steps should I try to allow my currently unowned
>> documents/tinytables to be made accessible. When I press the change
>> ownership button I get a help browser with an error message in the
>> con
At 03:29 PM 5/22/00 +0300, Itamar Shtull-Trauring wrote:
>"Phillip J. Eby" wrote:
>>
>> FYI, the ZPatterns Wiki at:
>>
>> http://www.zope.org/Members/pje/Wikis/ZPatterns/
>
>Ooh, this is cool stuff. At what version would it be resonable to start
>implementing software using ZPatterns?
It depen
Kyler B. Laird ([EMAIL PROTECTED]) posted a quick n' dirty fix on the
Zope mailing list. I'll include it here for convenience:
-- snip --
After beating on this over the last day or so trying to
understand what was happening at the Web interface level
(thinking that I must have just screwed up a
"Phillip J. Eby" wrote:
>
> FYI, the ZPatterns Wiki at:
>
> http://www.zope.org/Members/pje/Wikis/ZPatterns/
Ooh, this is cool stuff. At what version would it be resonable to start
implementing software using ZPatterns? Will there be major changes in the
way things work up to 1.0?
--
Itamar
Chris Withers wrote:
>
> Steve Alexander wrote:
> > In PTK, PortalContent-derived classes have the method
> >
> > def SearchableText(self):
> > "text for indexing"
>
> So, if I get this correctly, Catalog will index both attributes and
> methods(that have only the self argument?) with th
Jephte CLAIN wrote:
>
> Hello,
> Where I work, I do not have access to the internet, and as such, I have
> to move software and docs back and forth to my office. I understand that
> it is better for collaborative work to use ZWikis, but I wonder, how do
> I download the entire site to view it off
Robin Becker wrote:
>
> In article <[EMAIL PROTECTED]>, Chris Withers
> <[EMAIL PROTECTED]> writes
> ...
> >
> >Might help if you said what problems you were experiencing...
> >
> ...
> I already did. I cannot use the preexisting database tinytables.
> Following your suggestion I can create God,
Steve Alexander wrote:
> In PTK, PortalContent-derived classes have the method
>
> def SearchableText(self):
> "text for indexing"
So, if I get this correctly, Catalog will index both attributes and
methods(that have only the self argument?) with the same name as an
index?
If so, then t
Robin Becker wrote:
> What steps should I try to allow my currently unowned
> documents/tinytables to be made accessible. When I press the change
> ownership button I get a help browser with an error message in the
> content frame.
That sounds like a 2.2 bug to me... oh well... it is Alpha so fai
In article <[EMAIL PROTECTED]>, Chris Withers
<[EMAIL PROTECTED]> writes
...
>
>Might help if you said what problems you were experiencing...
>
...
I already did. I cannot use the preexisting database tinytables.
Following your suggestion I can create God, and then having logged in as
God I can ac
Hello,
Where I work, I do not have access to the internet, and as such, I have
to move software and docs back and forth to my office. I understand that
it is better for collaborative work to use ZWikis, but I wonder, how do
I download the entire site to view it offline???
ok this is not really zo
Chris Withers wrote:
>
> 2. I've seen various mentions of that fact that objects being catalogued
> can be intelligent about what gets catalogued, for example: stripping
> out HTML, but where can I find out how to produce an object that does
> this?
> This could make a hacky-workaround for quest
Robin Becker wrote:
> What kind of idiotic permissions model is this where God cannot create
> anything? What is the function of the super user if not to manage?
The super user is not god, that was seen to be an insecure thing.
The super user is a facilitator for creating god... ;-)
> Seems to b
Hi,
Here's the second question:
2. I've seen various mentions of that fact that objects being catalogued
can be intelligent about what gets catalogued, for example: stripping
out HTML, but where can I find out how to produce an object that does
this?
Does it make a difference if it's a ZClass-b
Hi,
I've read the Interfaces Wiki and other bits of documentation I could
fidn and still haev a coupla questions:
1. Is there any way to build complex queries for ZCatalogs? I saw
mention of a QueryObject but it's not documented anywhere that I could
find.
The current method of putting stuff in
In article <[EMAIL PROTECTED]>, Chris Withers
<[EMAIL PROTECTED]> writes
>Robin Becker wrote:
>[stuff about 2.2]
>
>You can't create any objects except User Objects as the superuser.
>Create a manager, re-login as that manager and then add yoru objects.
>
>Can't speak for TinyTables but make sure
Hello,
for those who are in a need for search and enumeration capabilities for
specialist and racks in ZPatterns-0.3.0 right now like I am, the
following could be interesting.
Searchable.py defines:
CatalogAwareAttributeProvider,
CatalogAwareAcquiredAttributeProvider
Robin Becker wrote:
[stuff about 2.2]
You can't create any objects except User Objects as the superuser.
Create a manager, re-login as that manager and then add yoru objects.
Can't speak for TinyTables but make sure the Anonymous role has the
'access TinyTables contents' permission. A lot of peo
>>> Robin Becker wrote
> Is there any clear way for stuff which used to work under the old api to
> be migrated to 2.2? I'm presently unable to create tinytables as super
> user (presumably because they lack the relevant attributes). I used to
> be able to access them anonymously, but am unable t
Hi,
I'm trying to get a grip of the ins and outs of the following classes,
where should I look?
-IOBTree (and the other IO* classes)
-intSet
-PersistentMapping
cheers,
Chris
___
Zope-Dev maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/l
Is there any clear way for stuff which used to work under the old api to
be migrated to 2.2? I'm presently unable to create tinytables as super
user (presumably because they lack the relevant attributes). I used to
be able to access them anonymously, but am unable to under 2.2.
For the non-expert
60 matches
Mail list logo