Re: [Zope] TinyTable : filter query pb

2001-01-26 Thread Bak @ kedai


-Original Message-
From: Thierry Pasquier [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Friday, January 26, 2001 8:21 PM
Subject: [Zope] TinyTable : filter query pb


usagers is a TinyTable

this, is ok :
dtml-call "REQUEST.set('usager','bruno')"
dtml-in "usagers(ident=usager)"
...

but, not this : why ?
dtml-call "REQUEST.set('usager',AUTHENTICATED_USER)"
dtml-in "usagers(ident=usager)"
...

i think you want
untested
dtml-call "REQUEST.set('usager',AUTHENTICATED_USER.getUserName())"

/untested


--
Thierry Pasquier
centre de culture scientifique, technique et industrielle en
Poitou-Charentes
Espace Mends France, Poitiers, tel 0549503300 - fax 0549413856
http://www.pictascience.org


___
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 )




___
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 )




Re: [Zope] Cache manager in zope 2.3.0b1

2001-01-24 Thread Bak @ kedai


-Original Message-
From: Shane Hathaway [EMAIL PROTECTED]
To: Bak@kedai [EMAIL PROTECTED]
Date: Wednesday, January 24, 2001 9:10 PM
Subject: Re: [Zope] Cache manager in zope 2.3.0b1


"Bak@kedai" wrote:

 From HelpSys for RAM CAche
 """
 Finally, you can configure the list of REQUEST variables
 that will be used in the cache key. This can be a simple
 and effective way to distinguish requests from
 authenticated versus anonymous users or those with
 session cookies.
 """
 so, if i access a particular DTML Method as such
 http://myserver.com/mymethod?objId=xxx
 can i use objId to distinguish between different objects?
 i tried by setting objId as the cache key in my RAM Cache object.
however,
 nothing were cached.  even after accessing mymethod with different objId.

I'd like to help you out with this--could you give more details?  What
did you do to test the caching?  Are you sure it wasn't being cached?

Shane

sorry.  my mistake.  i think more info on how/what should/can be a cache key
is good.   currently, there's two cache key  fields, one in the object
itself, one in the cache manager instance.  the field in object can contain
more than one cache keys, while the cache key in the cache manager instacne
can contain only one.

now that i can cache object, i can't invalidate it automatically ( the cache
don't expire).

how do i expire the cached object automatically?

sorry for being a pain :)
if i understand it more, i'll try and write up a howto/note



___
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 )




Re: [Zope] Cache manager in zope 2.3.0b1

2001-01-24 Thread Bak @ kedai


-Original Message-
From: Shane Hathaway [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Wednesday, January 24, 2001 10:20 PM
Subject: Re: [Zope] Cache manager in zope 2.3.0b1


Are you saying that entering multiple REQUEST variables doesn't work?
Are you putting the variables on separate lines?

i can have  multiple REQUEST filled in the object cache option, but not in
the cache manager instance.  this was on 2.3.0b1.  haven't yet it with the
latest beta.  if i have multiple REQUEST on separate lines, and save it,
it'll be saved on one line (this is the cache manager instance).

Every time you change the object or push the "invalidate" button, it
should expire.  Are you having success with that?

invalidating manually works.  but what can i do to expire a cached object?
for instance, i now have a DTML Method A that is made of DTML Method B and
C.  i cached DTML Method A.  somehpw, Method B changes, but DTML Method A
still shows the cached object.  by haveing it expire automatically, say
every 3600 sec, or any configurable time limit, i'll be assured that DTML
Method A will change, at least after the time limit set.

also, if i have a situation as above, which is more preffered?  caching
object A or objects that make up A?

Actually, we've been begging for user input. :-)  I'd like to help you.

i'll give b3 a try when i start work.
thanks
Shane

___
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 )



___
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 )




Re: [Zope] Why I Love Zope: Success Stories (BEWARE: sappy stuffinside)

2000-12-08 Thread Bak @ kedai


-Original Message-
From: J. Atwood [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Friday, December 08, 2000 10:35 PM
Subject: [Zope] Why I Love Zope: Success Stories (BEWARE: sappy stuff
inside)


I run at least 7 or 8 Zope sites of varying shapes and sizes for
about a year now and everyone once in awhile I just have to take a
moment and reflect upon how much easier Zope has made my "web" life.

 ---8---snipped a lot of great stuff.  search the mailing list if you want
to know :)---

oOo Zope ..
how do i love thee.. let me count the ways
-i can now give something out, instead of sucking everything in.  the
community is really a helpful lot.  if i don't chance upon zope (twice -
once during 1.1.13 i left screaming for not able to run it, then 2.0b1 - i
left screaming for being able to put up a site in a month), i will still be
the head who'll use your code and don't give anything in return :)

-zclass - despite what Chrisw, TheJester, and all you real developers out
there say :), is really a hook in mouth.  without it i won't procede, and
without it, i wont try to learn python.

-i'll stop now until i can't count higher then 2, or get that free zope book
:)

what say others?



___
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 )




[Zope] AND operator and ZCatalog

2000-11-27 Thread Bak @ kedai

hello
i've read and reread advance ZCatalog howto by Zen, and still failed to do 
what i want.

the situation
i have a ZCatalog that indexes news.  i use keyword index, and text index.  
when i try 

dtml-in "Catalog(publication=myPub,section=mySec,date_posted=myDate)"
br
a href="dtml-var SCRIPT_NAME/dtml-var "getpath(data_record_id_)" "
dtml-var title/a
pdtml-var publication|dtml-var abstract|dtml-var section
dtml-var myDate/dtml-in

it seems that the search was ORed, not ANDed.  

i hope i'm clear enough.

thanks

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Strange how laughter looks like crying with no sound, and raindrops taste 
like tears .. without the pain


___
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 )




[Zope] snappier zope.org/how to make sites as snappy

2000-11-19 Thread Bak @ kedai

hi all
it looks to me that zope.org is reponding better than previous days.  what
was done?  any tips on how to go about this?

my site (http://www.emedia.com.my) currently suffers from long latency
between the request and loading the page.  tables may be the cause but a
request for normal html with no tables (try the printable page) still
responded poorly.

i've increased the cache numbers in Control_Panel.  i've also increased the
thread numbers.  i've moved graphics to be served by apache.

so, i'm pleading for knobs i need to turn, things i need to change, etc

i'm using zope2.2.2, ZEO0.41, on rh6.2 with 4G RAM

maybe something i overlooked, or don't know

thanks


___
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 )




Re: [Zope] RE : [Zope] NESTED IN STATEMENTS AND PASSING VARIABLES inDTML

2000-11-19 Thread Bak @ kedai

ZQR is a good bundle of joy to keep on the desk top.  search at zope.org.
also, with zope2.2.2, there's a help button that'll put out the API.


-Original Message-
From: Kelvin Cheong [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, November 20, 2000 12:23 PM
Subject: [Zope] RE : [Zope] NESTED IN STATEMENTS AND PASSING VARIABLES in
DTML



dtml-in "category_method(id='1')" size=100 start=query_start
id=dtml-var idseq=dtml-var seqvid=dtml-var vid

where can i find out more about these properties, i.e. the seq...vid... and
so on..?

thanx for any directions in advance,
later,
amoebia

VCN - The Leader In Corporate Communication Solutions
Visit our website at http://www.vcn.com.my.
or http://www.vcnlinux.com


___
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 )


___
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 )




[Zope] ZODB in a hosed state

2000-11-18 Thread Bak @ kedai

hi,
i sometimes got this traceback from zope, and my site will be in a totally
unusable state.  i use zope2.2.2 with zeo0.4.1 and postgresql6.5 on RH
linux.

i'm not sure whre the bug lies.  also, can anybody be so kind and point me
to where i can check postgresql error

the traceback
--
2000-11-16T03:08:04 PANIC(300) ZODB A storage error occurred in the last
phase o
f a two-phase commit.  This shouldn't happen. The application may be in a
hosed
state, so transactions will not be allowed to commit until the site/storage
is r
eset by a restart.
Traceback (innermost last):
  File /usr/local/Zope/lib/python/ZODB/Transaction.py, line 296, in commit
  File /usr/local/Zope-2.2.0b3-src/lib/python/Shared/DC/ZRDB/THUNK.py, line
108,
 in tpc_finish
  File /home/kdie/Zope-2.0.1-src/lib/python/Products/ZPyGreSQLDA/db.py, line
114
, in _finish
pg.error: pqReadData() -- backend closed the channel unexpectedly.
This probably means the backend terminated abnormally
before or while processing the request.

thanks


___
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 )




Re: [Zope] ZODB in a hosed state

2000-11-18 Thread Bak @ kedai


-Original Message-
From: Evan Simpson [EMAIL PROTECTED]
To: Bak @ kedai [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Sunday, November 19, 2000 12:18 AM
Subject: Re: [Zope] ZODB in a hosed state


From: "Bak @ kedai" [EMAIL PROTECTED]
 i'm not sure whre the bug lies.  also, can anybody be so
kind and point me
 to where i can check postgresql error

Offhand, it looks like PostgreSQL is dying when ZODB tries
to commit it.  The log's location is system dependent -- on
mine, it is at /var/log/postgresql.


that's the problem.  it's not there.  also tried looking elsewhere, not
there.  i'm running RH6.2

also, what wou;d normally crash postgres?  bad data?  hugh data?

Cheers,

Evan @ digicool  4-am


thanks.




___
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 )




Re: [Zope] [ANNOUNCE] New Minimal product How-To

2000-11-12 Thread Bak @ kedai

On Monday 13 November 2000 09:02, Max M wrote:
 Hi

 I have just added this Product How-To:

 http://www.zope.org/Members/maxm/HowTo/minimal_01/index_html

this kind of handholding is really great for us newbies.  hoping to see the 
continuation, e.g. nested products --Folderish_product
|-Product_item

thanks for the enlightening doc.

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

use Zope?  then you got HOPE!


___
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 )




[Zope] ZCatalog and random key error

2000-11-09 Thread Bak @ kedai

hello all
i'm about to venture into building a ZClass that will make use of ZCatalog.  
is it 'safe' now?  i see that my zope2.2.2 now haven't encountered any random 
key error yet.  what about others?

also, will iterating through catalog index faster than iterating through 
..say.. objectItems('meta-type')?

looking for insight, advice, holes to avoid, etc

thanks

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

use Zope?  then you got HOPE!


___
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 )




Re: [Zope] Zope/Posgresql/RedHat Linux

2000-11-02 Thread Bak @ kedai


 is a suitable combination. I have attempted to configure this combination
 but run into trouble compiling PoPy-1.4.1 on RedHat Postgresql - and have
 not been able to resolve the problems via RedHat or Mixadlive - hence my
 question.
 Regards, Chris Marshall [EMAIL PROTECTED]

why not post the question.  we (www.emedia.com.my) have been  using rh, zope 
and postgresql since february this year.  all in all, everything works great.

we have yet to use PoPy on the production site since it involve an upgrade of 
postgresql.  we're using zPygresSQL currently

hth


 ___
 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 )

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Get the tables!


___
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 )




Re: [Zope] more __len__ errors

2000-10-28 Thread Bak @ kedai


-Original Message-
From: Scott Burton [EMAIL PROTECTED]
To: Zope List [EMAIL PROTECTED]
Date: Sunday, October 29, 2000 3:28 AM
Subject: Re: [Zope] more __len__ errors


I will see what I can do about the before and after snapshots. Then again,
I
should probably just make the move to 2.2. Is there a way to use the same
objects created by ZDiscussions in my ZClass version of ZD as long as the
meta_types are the same? That way the change-over could be
transparent.(hopefully)

i had a ZClass that subclass ZDiscussion, and got it working with zope2.2.2
by adding a comma (,) at the end of permission in ZDBase/ZDiscussion.py
maybe you could give it a shot.  this was mentioned a while back in the
list.

hth


___
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 )




[Zope] Re: AW: [Zope] dtml-var owner? author? editor?

2000-10-25 Thread Bak @ kedai

On Wednesday 25 October 2000 16:01, Patrick Koetter wrote:
   I want to include the owner (from acl_users) of a page in my
 
  HTML-output.
 
  dtml-var "AUTHENTICATED_USER.getUserName()"
  is what you want

 Not exactly. This only returns the AUTHENTICATED_USER, or am I wrong?
 What I want is:
 'Anonymous User' surfs to my site. She surfs trough the HTML output
 generated by zope, while zope not only tells her the content provided, but
 also the Name of the Zope-owner of the document (e.g patrick is owner of
 index_html -- that info is also displayed to the anonymous user)

 Thanks for more help,

ok, i see what you want to do.  i thought that you have a "author" property 
somewhere.

i'm sorry to say that i can't be of any more help.  i guess you can test for 
ownership of objects in zope since there exist a take ownership button.  
check the source, probably. zopeinstalldir/lib/python/AccessControl/Owned.py

tell us what you got :)
 p@

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

use Zope?  then you got HOPE!


___
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 )




Re: [Zope] OT:NT and rebooting (was:How many houres do I need tomanage a Zope) site?

2000-10-25 Thread Bak @ kedai


sorry if this is offtopic, but i see reference of rebooting every so often
with NT( and maybe W2K).  is this real?  or FUD?
i use linux myself and would like to confirm this from all you guys'
experience

Do I miss important tasks? Has anybody done this before?

Yeah.. rebooting NT every 4 days. :)

J

___
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 )


___
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 )




Re: [Zope] dtml-var owner? author? editor?

2000-10-24 Thread Bak @ kedai

On Wednesday 25 October 2000 09:58, Patrick Koetter wrote:
 Hi Zopistas,

 I want to include the owner (from acl_users) of a page in my HTML-output.

 Unfortunately I'm not able to produce what I want.

 Any hints?

 Thanks,

 p@rick


i would think that 
dtml-var "AUTHENTICATED_USER.getUserName()"
is what you want

 ___
 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 )

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Strange how laughter looks like crying with no sound, and raindrops taste 
like tears .. without the pain


___
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 )




[Zope] limiting tree

2000-10-24 Thread Bak @ kedai

hi all
quickie:
if dtml-in, i can use size to limit the results rendered, what do i use in
dtml-tree?

if there's no such attribute, any workaround?
i've searched the mailing list and found similar question with no response.
thanks

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Just bring it!


___
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 )




Re: [Zope] Help needed with news articles

2000-10-22 Thread Bak @ kedai

try kmnetnews from zope.org/Products
or
you can use dtml document to construct a simple news item.
untested code by newbie
dtml-in "objectItems(['DTML Document'])" size=4 reverse
sort=bobobase_modification_time
dtml-var title(and other stuff/properties)
/dtml-in
/untested

the above code should be in a DTML Method

-Original Message-
From: Taco Scargo [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Sunday, October 22, 2000 5:23 AM
Subject: [Zope] Help needed with news articles


Unfortunately nobody responded, so I am reposting this question again. I
just need a link to an example or explanation.

Basically I want to create a page listing the last 4 articles from a Zope
folder. The articles need a publish from/to field, title and (dtml) text. I
somehow need to be able to find and display the article from another dtml
document. I read many FAQs and tried working with zcatalogs, but somehow I
am not getting there. It is probably not so difficult. If there is somebody
how can help me or give me a link to a clear explanation or example I would
be very very grateful. Thanks !

Taco


___
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 )


___
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 )




Re: [Zope] Zope Discussion Forum @ DevShed.com

2000-10-16 Thread Bak @ kedai

On Tuesday 17 October 2000 09:57, J. Atwood wrote:
 I am more than happy to set up a ZUBB somewhere as well. A sort of Zope
 starter, question and/answer forum. Is this something that the community is
 generally interested in or not?

 J


i would think that having a forum at Zope.org or zdp.org is great.  this way 
we can really show how zope scales, and improve and show zope products.  if 
the board is at zope.org/zdp, then i would think most zopistas will be around 
to answer.  forum is unlike mailing lists.  you need that extra click to go 
to a forum. 

my .02 

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Get the tables!


___
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 )




[Zope] OT: maybe - max file, proc limits on linux and zope

2000-10-13 Thread Bak @ kedai

hi all,
this may be off topic, feel free to ignore.

while trying to stop zope i encountered error stating max file limit met.  
what i did to stop this is running
echo "8192" /proc/sys/fs/file-max

can i do this?  good bad?   any tips on tuning max file open, process open, 
etc?

linux and zope newbie --that's me.

tia

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Get the tables!


___
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 )




Re: [Zope] Zope Dies with FastCGI

2000-09-28 Thread Bak @ kedai

On Wed, 27 Sep 2000, Ronald L. Roeber wrote:
 I have the following set-up under which Zope occasionally dies.

 Zope 2.2.2 (same happened with 2.2.0 and 2.2.1)
 RedHat Linux 6.2
 Apache 1.3.12 - with fastcgi/2.2.8 and OpenSSL/0.95a


what about apache error log?  anything there?



 ___
 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 )

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

as you woke this morning, and open up your eyes, did you notice the tear 
stains lining your face were mine..


___
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 )




Re: [Zope] Zope Dies with FastCGI

2000-09-28 Thread Bak @ kedai

On Fri, 29 Sep 2000, [EMAIL PROTECTED] wrote:
  Two types of messages:
 
  First in its death throws:
  [Wed Sep 27 16:54:08 2000] [error] [client 192.168.2.52] FastCGI: comm
  with server "apache_server_path/htdocs/zope" aborted: idle timeout (30
  sec)
 
  And later when its all over:
  [Thu Sep 28 08:07:11 2000] [error] [client 192.168.2.52] (111)Connection
  refused
 
  : FastCGI: failed to connect to server "apache_server_path/htdocs/zope":
 
  connect() failed
 
  It will run fine for quite some time but then it dies.
  There are no other refereces to zope in the error logs.
  I am looking into possible network issues.
  I will likely try daemontools this weekend.

 i've seen this problem only when there's a lot of connection;s usually more
 than 100 connections at any one time.  to test this out, maybe you can use
 apache ab and step up until something breaks.

 also, try setting fastcgiexternalserver with  -appConnTimeout 0

 tell us how it goes.


follow up on my own mail:
i did an ab test, on  Apache/1.3.12 (Unix)  (Red Hat/Linux) mod_fastcgi/2.2.4 
and  it seems that zserver restarted after awhile.  it restarted a few times 
during ab.

ab -n 200 -c 50 

these messages in stupid.log
--- a few iteration snipped
2000-09-29T04:01:27 INFO(0) ZServer FastCGI Server (V1.0) started at Fri Sep 
29 12:01:27 2000
IP  :
Port: 8999
Socket path : None
 
--
2000-09-29T04:01:57 ERROR(200) zdaemon zdaemon: Fri Sep 29 12:01:57 2000: 
Aiieee! 29643 exited with error code: 13
--
2000-09-29T04:01:57 INFO(0) zdaemon zdaemon: Fri Sep 29 12:01:57 2000: 
Houston, we have forked
--
2000-09-29T04:01:57 INFO(0) zdaemon zdaemon: Fri Sep 29 12:01:57 2000: 
Houston, we have forked
--
2000-09-29T04:01:57 INFO(0) zdaemon zdaemon: Fri Sep 29 12:01:57 2000: Hi, I 
just forked off a kid: 29656
---

anybody can point out to me what's happening?  
  Thanks for your help.
 
  Ron...
 
___
 
  ___
  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 )

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Just bring it!


___
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 )




Re: [Zope] PyGreSQLDA

2000-09-26 Thread Bak @ kedai


 ZPYGre is not threadsafe, so with it and all non-threadsafe da's zope
 uses a lock around access. (Thunked.py)

 The solution is to just use multiple DA connections and let postgres
 sort out the concurrency issues.


i'm not clear about "use multiple DA connections".  let's say i have several 
sql methods.  it is meant for one particular app.  do i create a few  db 
connections and assign them to different sql methods?

anybody know whether PoPy is threadsafe already?

thanks and sorry to be a bone head :)

 Cheers

 Kapil

 ___
 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 )

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

Get the tables!


___
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 )




Re: [Zope] Desperate Zope is crashing ....

2000-09-18 Thread Bak @ kedai


i'm no expert, but have you tried starting zope in debug mode or with 
STUPID_FILE_LOGGER enabled?

that may help point where the errors may have come from

  http://lists.zope.org/mailman/listinfo/zope-dev )

-- 

http://www.kedai.com.my/kk 
http://www.kedai.com.my/eZine 

I will follow you! ..Damage Inc


___
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 )




[Zope] RFC: ZEO howto

2000-09-05 Thread Bak @ kedai

hi all
drafted a simple how-to: use zeo with zope.  need your inputs, corrections, 
comments, experience, notes, etc before i catalog it

http://www.zope.org/Members/kedai/UseZeoZope

thanks!

___
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 )




Re: [Zope] problems installing PoPy-1.3.4 (fwd)

2000-09-05 Thread Bak @ kedai


  checking location of python shared
  modules... $(exec_prefix)/lib/python1.5/site-packages
  checking for PQconnectStart in -lpq... no
  configure: error: can't build without PostgreSQL libraries
 

i struggled with this for quite some time.  until i upgraded postgres to 
v7.0.2

i don't think i  saw any requirement of a v7.x anywhere, but maybe i'm blind 
after spending too much time in front of the computer :)

also, with 1.3.4, you need to add a comma (,) at line  that has
  __compatibility__ = ('1.3.4',) 
   ^
in ZPoPyDA/PoPy_db.py
hth

  Now type 'make' to compile PoPy python module.
 
 
 
 
  ___
  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 )

 __
 Get your Private, Anti-Spam, Free Email at http://e3mil.com
 and Step into a Friendly Universe!

 ___
 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 )

___
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 )




Re: [Zope] Testing FastCGI

2000-09-02 Thread Bak @ kedai


-Original Message-
From: Nicholas Lo [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Saturday, September 02, 2000 6:00 PM
Subject: [Zope] Testing FastCGI


Hi,

I have set up my Apache and ZOPE according to How-To. It looks okay to
me. However, how can I know if my setup is correct. Is there any test
FastCGI application I can simply drop it in and test out my system?


off the top of my head, not that i'm aware of.  but you can see that it's
working thru the apache access/error log


Thanks

Nicholas Lo

___
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 )


___
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 )




Re: [Zope] Ad banners in Zope anyone ?

2000-09-02 Thread Bak @ kedai


-Original Message-
From: Jason Cunliffe [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Sunday, September 03, 2000 5:01 AM
Subject: [Zope] Ad banners in Zope anyone ?


Hello

I am glad to see any new web site anoncements using Zope.
For example the new Malaysian news service at http://www.emedia.com.my/

Out of curiosity I checked to see how they handled their ad banners:
a href="/phpAds/click.php3"img src="/phpAds/phpads.php3?what=NST"
border="0" width="468" height="60"

It looks like this is perhaps some instant cut-and-paste of exsiting PHP
tools tacked onto the Zope Server.
this a temporary measure until we got a "real(?)" banner ad system.  at the
time of development, there was no banner ad system in zope that can furnish
us some stats that we can give to advertisers.  although later there was
banner system (a zope product), we just got stuck with phpads.

we have now real media installed, and will be replacing phpads with it.

If it ain't broke don't fix it..and DTML aint pretty we know..

- Can one run PHP from inside of Zserver/ZODB easily?
- How would to do that?
- Is anyone using Zope for Ad Banner services??
- What would would make it a good or bad choice?

my take:
sales dept and upper management needed a proven system that can give
advertisers assurance that advertisers got what they asked for.  and banner
system, though a good product, can't give us what real media can; in terms
of stats and other stuff.  so, we forked some dough to get some dough in :)

but i'm still looking at banner system.

thanks
Jason

Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director



___
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 )


___
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 )




Re: [Zope] Success in installing ZPoPyDA (after 3 months...)

2000-09-01 Thread Bak @ kedai

where did you find lin ux.h that's needed by PoPy?  thtt stump me from
continuing.

thanks
-Original Message-
From: Hung Jung Lu [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Friday, September 01, 2000 4:04 AM
Subject: [Zope] Success in installing ZPoPyDA (after 3 months...)


Good news. I finally succeeded in installing ZPoPyDA (PostgreSQL database
adapter for Zope.) I think it was more than 3 months ago when I started to
try to install ZPoPyDA.

The process involved many tricky steps, the most tricky one was, uh,
installing a whole new Linux operating system. (Upgrade from 5.2 to 6.2) :)

But sweat and blood were involved in many other little tiny things.
Including installing PostgreSQL and its dev package RPMs, Python Dev,
figuring out what was missing in os.h and where to find linux.h for the
PostgreSQL, version compatibility problems between PoPy and ZPoPyDA, etc.
So
many steps that I don't remember them all, now.

Do I recommend PostgreSQL to other Zope users? Probably yes. But I'd advise
them to give themselves *plenty* of time to deal with installation issues.
I
know, some have been lucky and did not have any problems. But for me, it's
been a horrible experience. But I hope the reward of a good (and cheap)
database will compensate all the bad times.

regards,

Hung Jung

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.


___
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 )



___
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 )




Re: [Zope] What's up with zope.org?

2000-09-01 Thread Bak @ kedai


-Original Message-
From: ethan mindlace fremen [EMAIL PROTECTED]
To: Bak @ kedai [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Friday, September 01, 2000 11:49 PM
Subject: [Zope] What's up with zope.org?


"Bak @ kedai" wrote:

 what's happenng to zope.org?  i got this message when i tried accessing
it

Ok, this is a bit late, but "Running into ZEO/ mounted file storage
bugs" is the answer.

Aparently, our in-house MountedClientStorage (and the MountedDatabase)
doesn't play nice with ZEO.  So we've backed off of ZEO for the moment,
pending the magic Jim touch.
--
so, if i use only ZEO, it should be a problem then?

ethan mindlace fremen
Zopatista Community Liason
Abnegate I!

___
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 )


___
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 )




[Zope] Re: [Zope-ZEO] ANNOUNCE ZEO 0.3 Released

2000-08-31 Thread Bak @ kedai

this is great news.  btw, what causes the spurios conflict errors, if you
don't mind telling

thanks again

p/s i will never regret running my site with zope~  thanks DC and all

-Original Message-
From: Jim Fulton [EMAIL PROTECTED]
To: Zope Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED]
[EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Thursday, August 31, 2000 8:20 AM
Subject: [Zope-ZEO] ANNOUNCE ZEO 0.3 Released


A new release of Zope Enterprise Objects (ZEO)
is available at: http://www.zope.org/Products/ZEO.

This release fixes a bug that caused spurious conflict errors
and that could eventually make it impossible to make changes
without restarting a ZEO client (e.g. Zope process).

The release also has two enhancements when running
the ZEO server on Unix:

- When the storage server start script is run as root,
  the script will switch to a different user (nobody by
  default). There is a new '-u' option that can be used to
  specify the user.

- The storage server will gracefully close served storages when
  the server is killed with a SIGTERM or SIGHUP. If a
  FileStorage is being served, then an index file will be
  written.

If you encounter problems with ZEO, please report them
using the ZEO issue tracker at:
http://www.zope.org/Products/ZEO/Tracker.

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
Technical Director   (888) 344-4332http://www.python.org
Digital Creationshttp://www.digicool.com   http://www.zope.org

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

___
Bug reports, feature requests, etc. go in the ZEO Tracker:
http://www.zope.org/Products/ZEO/Tracker

Conversations etc. can take place in the Wiki:
http://www.zope.org/Products/ZEO/Wiki

Zope-ZEO maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-zeo


___
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 )




Re: [Zope] SQL Methods

2000-08-31 Thread Bak @ kedai

i think you need to look at the sql methods permission.

-Original Message-
From: RC Compaan [EMAIL PROTECTED]
To: Zope [EMAIL PROTECTED]
Date: Thursday, August 31, 2000 3:06 PM
Subject: [Zope] SQL Methods


I have a sql method and a dtml method calling the sql method.  They live in
the same folder and the dtml method's proxy roles are set.  I've tried
everything and Zope tells me I don't have permission to do view the sql
result returned by the sql method.  This worked fine in Zope 2.1.6 so I
guess it has something to do with the new security model.  I also have
explicit ownership of all objects that I'm working with - still no luck.

Any advise?

Roché


___
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 )


___
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 )




[Zope] zope.org

2000-08-31 Thread Bak @ kedai

what's happenng to zope.org?  i got this message when i tried accessing it


!--
Traceback (innermost last):
  File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/dc/Zope2/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /usr/local/dc/Zope2/lib/python/ZPublisher/Publish.py, line 162, in
publish
  File /usr/local/dc/Zope2/lib/python/ZPublisher/BaseRequest.py, line 309,
in traverse
  File /usr/local/dc/Zope2/lib/python/ZPublisher/BeforeTraverse.py, line 85,
in __call__
  File /usr/local/dc/org/Products/SiteAccess/AccessRule.py, line 22, in
__call__
  File /usr/local/dc/Zope2/lib/python/ZPublisher/BeforeTraverse.py, line
112, in __call__
  File /usr/local/dc/Zope2/lib/python/ZODB/Connection.py, line 442, in
setstate
  File /usr/local/dc/zope_soft/lib/python/ZEO/ClientStorage.py, line 289, in
load
(Object: /usr/local/dc/org/var/sserver.soc)
  File /usr/local/dc/Zope2/lib/python/ZEO/zrpc.py, line 180, in __call__
(Object: dispatcher)
  File /usr/local/dc/Zope2/lib/python/ZEO/smac.py, line 184, in
message_output
(Object: dispatcher)
Disconnected: (see above)

--



___
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 )




[Zope] 2.2.1 and zdiscussion

2000-08-25 Thread Bak @ kedai

hi
a clean install won't start properly  with ZDiscussion product install.  the 
same thing also with ZDiscussion based classes created.

tracebacks when starting
2000-08-26T04:13:44 ERROR(200) Zope Couldn't import Products.ZDBase
Traceback (innermost last):
  File /tmp/Zope/lib/python/OFS/Application.py, line 396, in import_products
(Object: string)
  File /tmp/Zope/lib/python/Products/ZDBase/__init__.py, line 86, in ?
  File /tmp/Zope/lib/python/Products/ZDBase/ZDiscussions.py, line 106, in ?
  File /tmp/Zope/lib/python/App/class_init.py, line 109, in 
default__class_init__
(Object: ZDItem)
  File /tmp/Zope/lib/python/AccessControl/Permission.py, line 204, in 
registerPermissions
ValueError: unpack sequence of wrong size
 
 
--
2000-08-26T04:13:44 ERROR(200) Zope Couldn't import Products.ZDConfera
Traceback (innermost last):
  File /tmp/Zope/lib/python/OFS/Application.py, line 396, in import_products
(Object: string)
  File /tmp/Zope/lib/python/Products/ZDConfera/__init__.py, line 3, in ?
  File /tmp/Zope/lib/python/Products/ZDConfera/ZDConfera.py, line 2, in ?
ImportError: cannot import name ZDiscussions 

this is a bit frightening since i have a zclass subclass on zdbase in 
production server  and this prevents me from being on the latest stable 
release.  can anything be done?

this on rh linux, 2.2.1 final 

thanks

___
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 )




[Zope] upgrade 2.2.0 to 2.2.1b1

2000-08-16 Thread Bak @ kedai

hello all

has anybody encountered problems when upgrading from 2.2.0 to 2.2.1b1?  i 
have problems with some products (kmnetnews), and some of my ZClasses.  are 
there any known issues?  things i should have considered?


there are also tracebacks "Couldn't load state" when starting zope in debug 
mode..


platform
RH6.2, straight ZServer
products - KMnetnews, a few ZClasses, 

thanks

--traceback when i tried accessing kmnetnews--
 
Zope Error

Zope has encountered an error while publishing this resource. 

TypeError

Sorry, a Zope error occurred.

Traceback (innermost last):
  File /home/kdie/Zope-2.2.1b1-src/lib/python/ZPublisher/Publish.py, 
line 222, in publish_module
  File /home/kdie/Zope-2.2.1b1-src/lib/python/ZPublisher/Publish.py, 
line 187, in publish
  File /home/kdie/Zope-2.2.1b1-src/lib/python/Zope/__init__.py, line 
221, in zpublisher_exception_hook
(Object: Traversable)
  File /home/kdie/Zope-2.2.1b1-src/lib/python/ZPublisher/Publish.py, 
line 171, in publish
  File /home/kdie/Zope-2.2.1b1-src/lib/python/ZPublisher/mapply.py, 
line 160, in mapply
(Object: index_html)
  File /home/kdie/Zope-2.2.1b1-src/lib/python/ZPublisher/Publish.py, 
line 112, in call_object
(Object: index_html)
  File /home/kdie/Zope-2.2.1b1-src/lib/python/OFS/DTMLDocument.py, 
line 171, in __call__
(Object: index_html)
  File 
/home/kdie/Zope-2.2.1b1-src/lib/python/DocumentTemplate/DT_String.py, line 
502, in __call__
(Object: index_html)
  File 
/home/kdie/Zope-2.2.1b1-src/lib/python/DocumentTemplate/DT_With.py, line 146, 
in render
(Object: Data)
  File 
/home/kdie/Zope-2.2.1b1-src/lib/python/DocumentTemplate/DT_Util.py, line 337, 
in eval
(Object: index_html(_.None, _, category='top'))
(Info: _)
  File string, line 0, in ?
TypeError: call of non-function (type None)

end tracebacks 

--tracebacks starting zope--
--
2000-08-17T03:53:37 ERROR(200) ZODB Couldn't load state for 
'\000\000\000\000\000\000\000Z'
Traceback (innermost last):
  File /home/kdie/Zope-2.2.1b1-src/lib/python/ZODB/Connection.py, line 447, 
in setstate
  File /home/kdie/Zope-2.2.1b1-src/lib/python/ZODB/Connection.py, line 213, 
in _persistent_load
(Info: 8÷)
  File /home/kdie/Zope-2.2.1b1-src/lib/python/ZODB/Connection.py, line 154, 
in __getitem__
---data snipped---

___
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 )




[Zope] ZCatalog key error

2000-08-16 Thread Bak @ kedai

is Zope.org running 2.2.1b1 or CVS?  cause i think key error still occurs.  
check out 'What's New' at Zope.org, and you'll get the error.

i might be wrong though
thanks

___
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 )




Re: [Zope] UserDb, GUF, LoginManager, etc, which one?

2000-08-15 Thread Bak @ kedai

On Mon, 14 Aug 2000, Martijn Faassen wrote:
 Hi there,

 What I want is an acl_users equivalent that has an SQL database backend.
 I want an easy to understand, easy to install solution for this that
 has some kind of future in Zope land. Currently I'm deploying 2.1 but
 that should change into 2.2 eventually.

 UserDb isn't developed anymore. Besides, it might not work for 2.2.
 (does it?)


i'm using userdb on 2.2.0 and it has been smooth sailing.   setup is easy.  
but there are several drawbacks:
-password is not encrypted.
-it's not maintained - probably means that it's stable. until a new version 
of zope changes this, of course.

i've tried GUF, but decided to stick with UserDB until i really have to 
change.  login manager, i havenot tried yet

note:  userdb are not installed on a fresh zope2.2.0, but upgraded from 
2.1.6.  but i do remember installing on a fresh zope2.2.0 and encountered no 
problems.

___
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 )




RE: [Zope] zeo and rdb backend

2000-08-14 Thread bak @ kedai

 I have to look further, but I think a good solution for local
 configuration
 issues would be a mountable database for specific sections (like
 products
 and some folders with database-connections and such)
 Imagine a situation where different instances of zope, connected via zeo
 have
 to use different database-connections (odbc for windows, any other for
 unix).

i think mountable databse is still alpha, even with filestorage.  not sure
whether it works if we use ZEO.

one thing that still bothers me, how can we minimize conflict error?  we
cannot restrict users from making changes, updates.  but users will complain
for such errors.

i'm looking at writing a howto use ZEO, and am looking for responses,notes
from the gurus, what's good, what to avoid, good design methods, multiple
storage points (still can't get to work), etc.  i need pointers, help
because i am a user not a brilliant programmer/developer like most of you
guys are, and do not fully understand ZEO.


 Regards
 Tino Wildenhain

thanks


___
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 )




Re: [Zope] zope2.2.0 and what is high load

2000-08-11 Thread Bak @ kedai

On Fri, 11 Aug 2000, Chris McDonough wrote:
  i went to each Zeo client control_panel, and see that there's
  a mzximum of
  four connections open at any given time.

comments to the above.  i saw only four threads because i started that 
particular box with the default.  on the box with -t25, i see 7 open 
connections at any given time.  sorry, my mistake.


 That's about it for your problem.  Maybe the profiling stuff can give
 more info, I'm not sure.

i'll try and read more about that profiling.  but not knowing what it does 
really scares me :)

 It shows that four threads have database connections.  I'm curious as to
 why you're only seeing four threads being served by database connections
 too.
as mentioned above,  my bad.  right after i sent the prev mail, i went to the 
other box with -t25, and it does have 7 open connections.


 You may want to ramp your number of threads down to 5 (-t5).  25 doesn't
 do much for you because only 7 threads can be using database connections
 at any given time.  The high number of threads you're servicing might
 actually be slowing things down as they contend for available database
 connections.

will do.  and hope to see that it does something.

 Why are you frontending this with apache?  how are you servicing two ZEO
 clients via a single apache?  Does it do some sort of round-robining?
 Or does each box have its own apache? 
each box has its own apache.  i'm round robining (straight dns round robin).  
ZEO is also a concern here because i'm using it blindly, unfortunately.  but 
it works great if i got less than 150 simultaneous connections.  and this 
symptom i saw prevuiously, even without ZEO.

 Is there any reason you're not
 just using straight ZServer?  I'm wondering if apache processes
 contending to talk to available Zope python threads might be slowing
 stuff down?

we need to serve some othe things from apache, that can't be done thru 
ZServer alone (a little php stuff)


 It doesn't seem as if bumping your number of database connections will
 do us any good here, because it doesn't seem you're using all 7.  I'm
 not sure *why* you're not using all 7, because you've got at least 15
 processes waiting around just on your top screen for DB connections.

i did some grepping and saw the magical number 7 in ZODB/DB.py.  is that the 
number to turn up if i wanted to try increasing the db pool connection?  i do 
have postgresql with ZPygreSQL.  will that have anything to do with what i'm 
facing?


 Maybe manage_debug isn't telling you the whole story, or maybe you
 caught it at a low-load period.  I wonder if the profiling stuff would
 help here.

 Maybe someone else can jump in here, this is all I can think of at the
 moment.


thanks for sparing some time helping me out.

i love zope, and open source in general, and i can't bear having to switch to 
using something i don't really like. 

___
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 )




RE: [Zope] Defining High Load in Heavily DB Driven site (was: [Zope] zope2.2.0 and what is high load)

2000-08-11 Thread bak @ kedai


in general, when a thread attempts to do anything with zope it needs to
get hold of a ZODB connection so it can read or otherwise manipulate
objects in the ZODB. this is why the number of application threads
should be smaller than the number of ZODB connections. tweaking these
numbers is possible, but mileage may vary depending on your specific
site and usage.
---
as noted by chris M, if i were to bump up the zodn connection pool, it
better be more than the app thread, right?

so, in my previous case, i increased the app threads to be more than the
zodb connection pool.  what does this entail?  i'm not too sure.  i intend
to increase the app thread number and the connection pool number, to see
whether these increase will have any effeect on my currently loaded site.

one tiny question, what will all these do to my rdb connection.  my DA is
not thread safe, me think. (ZPYgreSql)

jens

thanks


Jens Vagelpohl  [EMAIL PROTECTED]
Software Engineer www.digicool.com
Digital Creations   (888) 344-4332

Got Zope?




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
 Behalf Of Dario
 Lopez-Kästen
 Sent: Friday, August 11, 2000 07:10
 To: [EMAIL PROTECTED]
 Subject: [Zope] Defining High Load in Heavily DB Driven site (was:
 [Zope] zope2.2.0 and what is high load)


 Hello!

 I need to find more info on how Zope handles threading with
 relation to
 database connections.

 I am currently considering and evaluating Zope as one of the
 options we have
 to build a really large, completely databasedriven "enterprise scale"
 web-platform. I am a bit worried about this "maximum of 7
 threads per db
 connection" limitation mentioned previously, and I need to
 know a) what does
 this mean in terms of accesibility, b) how does it affect
 performace, and c)
 how does Zope work (in detail) with external database connections.

 We are going to be using Oracle as our DB backend, all our
 served data will
 be database *only* (some of it will be fairly large), and
 efficient database
 connections is *crucial* to what we intend to do.

 We are going to have between 10-20k users at most and I
 expect the maximun
 of simultaneous connections to be beween 400 - 900 under
 heavy load; "normal
 load" will probably oscillate around 25-200 simultaneous
 connections (these
 numbers are crude guesses, but take into account increased
 usage over time
 as more services are provided in the future).

 Bandwith problems are not an issue, nor is computing power.

 I would appreciate any pointers to documentation or people to ask.

 Sincerely,

 /dario


___
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 )


___
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 )




RE: [Zope] zope2.2.0 and what is high load

2000-08-11 Thread bak @ kedai



Based on your findings that all 7 DB connections are being used, I'd
revise the number of threads to 8.

will give it a go this monday.
Yes, it's the pool_size parameter.  You can increment this value
*carefully* if you see that you have more threads hanging around than DB
connections, like you're seeing now.  I have no idea what this will do
to your relational stuff.
---that really scares me.  sailing the uncharted see, and me a non swimmer!

The "right thing to do" is to test this outside of production.  I don't
want to tell you to go ahead and muck around on a production server.
But if it were *me*, I might be tempted to:

--like you, i'm tempted too.   i'll do backup first before anything else.
furthermore, i can't get the amount of traffic to really test.

- First, lower the number of threads via -t8 and see what effect that
has on speed.

- If that doesn't solve anything, bump up both the NUMBER_OF_THREADS and
the pool_size up to 10 or 12, then do some checking, and see if you
still have threads waiting for a DB.  Continue doing this in increments
of 2 or 4, making notes as you go.

Note that if it breaks your site, I'll deny I ever gave you this advice.
:-)  Proceed at your own risk.

---thanks for the advice that's not given ;) ,  i'll report progress monday!

Geez, I hope not.  This is an eminently solveable problem.

--i hope to solve this, and prove the greatness of OSS!


___
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 )




RE: [Zope] Zope - long running process

2000-08-11 Thread bak @ kedai



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of J.
 Atwood
 Sent: Saturday, August 12, 2000 1:04 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [Zope] Zope - long running process


 There is a switch in z2.py that allows you to point to a PID file. It will
 automatically restart your Zope installation once it goes down (if).

 Like so... (start script)

 ___
 #! /bin/sh
 reldir=`dirname $0`
 PYTHONHOME=`cd $reldir; pwd`
 export PYTHONHOME
 exec /usr/local/zope/bin/python \
  $PYTHONHOME/z2.py \
  -w80 -Z /usr/local/zope/var/Z2.pid "$@"

 ___

 It is the -Z /usr/local/zope/var/Z2.pid part.

 Do a more on your z2.py and check out all the options.

i've tried this, with 2.1.x and 2.2.0; but i'm not sure it works well.
there are times when my zope hangs, and i need to stop and start manually.
it may be my programming.  not too sure though.  what are others experience?

  http://lists.zope.org/mailman/listinfo/zope-dev )


___
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 )




[Zope] zope2.2.0 and what is high load

2000-08-10 Thread bak @ kedai

oo zopistas
i have a question.
being a small time site maintainer, i don't quite know how to classify the
situation i'm having now.

the site is front ended with apache, with mod_pcgi2.  zope 2.2.0 (running
with -t 25) and  rh 6.2

how can i know that the load i'm having is a big load?  i've been getting
more than 200 simultaneos connections(ps ax|grep http|wc -l) and that affect
the response time.

if the connection is less than 150, then zope's response time is great.

my Q:  what do you BIG SITE admin have?  do you encounter slow down?  i need
some sort of verification that more than 200 simultaneous connect is really
a big load.  i hope not to have to resort to other costly and proprietery
solutions just because of my ignorance.

i know table design does affect loading time, and that will be tackled.
cache is an option that i've looked at but have to disregard for now since i
can't get ie to behave.  i know of the how to and will be looking at it.
i've scaled the site (was once more than 400 connections at one time) with
ZEO to two servers.

i now hope to have insights from yu BIG SITE admins

looking forward to your input, help, and pointers.  i'll try and document
every thing and put a howto.

thanks


___
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 )




[Zope] Client.py

2000-08-09 Thread Bak @ kedai

hi all
has anybody successfully used Client.py that ships with Zope-2.2.0?  i can't 
seem to run it.  even on the command line.  i've searched the mailing list, 
but to no avail

this is what i did:
python Client.py http://www.zope.org

and here's the traceback.  
Traceback (innermost last):
  File "Client.py", line 639, in ?
main()
  File "Client.py", line 632, in main
headers, body = apply(f,(),kw)
  File "Client.py", line 221, in __call__
raise NotAvailable, RemoteException(
bci.NotAvailable: argument 1: expected read-only character buffer, tuple 
found (File: http://www.zope.org Line:
[])
None None for None   

what did i do wrong?  can i use Client.py from Zope-2.1.x?

tia


___
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 )




RE: [Zope] Caching How-To (was Cache concerns (waszope/proxy_pass configuration problem) configuration problem)

2000-08-04 Thread bak @ kedai


has anybody had bad experience with caching when using ie?  i've done as
what you did, but ie keeps showing old data.  this with a no-cache
header,must-revalidate.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Ragnar Beer
Sent: Friday, August 04, 2000 9:09 PM
To: [EMAIL PROTECTED]
Subject: Re: [Zope] Caching How-To (was Cache concerns
(waszope/proxy_pass configuration problem) configuration problem)


Cool! I took a quick look at it and I think they fit together quiete
nicely. In your howto you wrote "Some people have reported success
with Apache using ProxyPass". This is exactly what my howto is about.
Perhaps you could set a link?

Ragnar


On Fri, 4 Aug 2000 12:33:53 +0200, Ragnar Beer
[EMAIL PROTECTED] wrote:

During the last couple of days I could finally figure out how to set
up caching with mod_proxy. This morning I put together a caching
howto and submitted it for review.

If it's accepted it will be available under
http://www.zope.org/Members/rbeer/caching

Hey really? Me too.

  http://www.zope.org/Members/htrd/howto/caching



Toby Dickenson
[EMAIL PROTECTED]


___
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 )


___
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 )




Re: [Zope] Calender Tag SQL caching

2000-07-30 Thread Bak @ kedai

On Mon, 31 Jul 2000, Arjan Scherpenisse wrote:
 Hi everybody,
 
 This is my first posting to this list. I have a website which will
 make use of a calender, with events on it stored in a MySQL
 database. Now, i wondered how to efficiently show this data from the
 database in the calender. I mean, not in a way that a sql query is
 made for each day on the calender (which would make up to 31 queries
 in the Calender Tag 'month' view...)
 
 So i wondered, is there some way to 'cache' the result of the SQL
 method, so that i can use just one query to fill up an entire month,
 for instance?
hi
have a look at CachePool at the download page.  it cached based on URL1 and
query string.  it may or may not  help you

  
 regards,
 -- 
 Arjan Scherpenisse
 [EMAIL PROTECTED]
 
 may the source be with you
 === http://www.gnu.org ===
 
 ___
 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 )
-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




[Zope] zeo and rdb backend

2000-07-24 Thread Bak @ kedai

hi
i have a few questions about zeo and how it works (newbie)
i managed to get zeo runniing, and i have two hosts serving one zodb.  that's
great.

but i can't access some of the data that resides in a rdbms (postgres).  i
guess the db connection points to the wrong host since i use 
dbname@localhost username (for postgres).

tried changing host to something else (host1 as defined in /etc/hosts) but cant
change properties.  zope said bad request.  the same error if i use zPoPyDA.

does this mean that i need to use zodb to use zeo?  what should i do to use rdb
for some of my data?

i'm stuck and in need of help, pointers, docs from the great ones.
help

thanks
-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




Re: [Zope] zeo and rdb backend

2000-07-24 Thread Bak @ kedai

On Mon, 24 Jul 2000, [EMAIL PROTECTED] wrote:
followup on my problem
i just need to give permission to both machine to access the database.  after
that, restart zope and everything is peachy

is this worth a writeup?  not too sure myself.

BTW, site summary doesnot work with zeo.  i can vview an instance fine on the
machine that server Data.fs, but not on the other machine.
what should we look out for when considering zeo?

thanks

Error type:  TypeError
Error value: string, None



Traceback (innermost last):
  File /home/kdie/temp/Zope/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /home/kdie/temp/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /home/kdie/temp/Zope/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: ApplicationDefaultPermissions)
  File /home/kdie/temp/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /home/kdie/temp/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: index_html)
  File /home/kdie/temp/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object
(Object: index_html)
  File /home/kdie/temp/Zope/lib/python/OFS/DTMLMethod.py, line 167, in __call__
(Object: index_html)
  File /home/kdie/temp/Zope/lib/python/DocumentTemplate/DT_String.py, line 502, in 
__call__
(Object: index_html)
  File /home/kdie/temp/Zope/lib/python/DocumentTemplate/DT_With.py, line 146, in render
(Object: FM)
  File /home/kdie/temp/Zope/lib/python/OFS/DTMLMethod.py, line 163, in __call__
(Object: simpleView)
  File /home/kdie/temp/Zope/lib/python/DocumentTemplate/DT_String.py, line 502, in 
__call__
(Object: simpleView)
  File /home/kdie/temp/Zope/lib/python/DocumentTemplate/DT_In.py, line 630, in 
renderwob
(Object: entries)
  File /home/kdie/temp/Zope/lib/python/OFS/DTMLMethod.py, line 163, in __call__
(Object: entries)
  File /home/kdie/temp/Zope/lib/python/DocumentTemplate/DT_String.py, line 502, in 
__call__
(Object: entries)
  File /home/kdie/temp/Zope/lib/python/DocumentTemplate/DT_Return.py, line 106, in 
render
(Object: siteSummaryEntries(REQUEST))
  File /home/kdie/temp/Zope/lib/python/DocumentTemplate/DT_Util.py, line 337, in eval
(Object: siteSummaryEntries(REQUEST))
(Info: REQUEST)
  File string, line 0, in ?
  File /home/kdie/temp/Zope/lib/python/Products/ExternalMethod/ExternalMethod.py, line 
251, in __call__
(Object: siteSummaryEntries)
TypeError: (see above)


 hi
 i have a few questions about zeo and how it works (newbie)
 i managed to get zeo runniing, and i have two hosts serving one zodb.  that's
 great.
 
 but i can't access some of the data that resides in a rdbms (postgres).  i
 guess the db connection points to the wrong host since i use 
 dbname@localhost username (for postgres).
 
 tried changing host to something else (host1 as defined in /etc/hosts) but cant
 change properties.  zope said bad request.  the same error if i use zPoPyDA.
 
 does this mean that i need to use zodb to use zeo?  what should i do to use rdb
 for some of my data?
 
 i'm stuck and in need of help, pointers, docs from the great ones.
 help
 
 thanks
 -- 
 --
 http://www.kedai.com.my/kk
 Am I Evil?
 
 
 ___
 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 )
-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




Re: [Zope] zeo and rdb backend

2000-07-24 Thread Bak @ kedai


 "Bak @ kedai" wrote:
  
  BTW, site summary doesnot work with zeo.  i can vview an instance fine on the
  machine that server Data.fs, but not on the other machine.
  what should we look out for when considering zeo?


boy, am i talking to myself a lot.  another follow up.  as always, right after
i sent a distress signal to the list, i got enlightened.

i missed all my external progs when i installed  the other machine.  so, in
the hopes of not showing how dense i am ;), in conclusion
-get a mirror copy of your working site - products, external methods, etc
-change host for connectiing to SQL backend.   use ip, not localhost
-make sure access are granted for all machines wanting to access the sql backend
-to minimize error, make changes from one machine only.

and enjoy!

did i miss anything else?

___
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 )




Re: [Zope] Need an SQL based auth system that works with Zope 2.2

2000-07-19 Thread Bak @ kedai


 Thanks for the input Bak,
 thing is the product works fine *if* you've already set things up via 
 the Properties tab in another Zope installation. By that, I mean it 
 does authentication very well. If you click the Properties tab 
 however, you get the traceback (if you're going to try it, please do 
 it on a copy of your installation - I'd hate to think I'd done damage 
 to someones DB!!).

ok, i tried clicking the properties tab, and it returned the necessary page. 
no tracebacks.  this on an upgraded install from 2.1.6 to 2.2.0

i also did a fresh install,  added a gadfly connection and created
the users table, and added UserDb.  i added a user, clicked the properties tab
and got the response expected.

i'm not sure whether i understood the real problem though
 
 cheers
 tone.
 --
 Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
 http://nle.ncl.ac.uk/
 The Medical School, Newcastle University Tel: +44 191 222 5888
 Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2
-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




Re: [Zope] Need an SQL based auth system that works with Zope 2.2

2000-07-18 Thread Bak @ kedai

On Wed, 19 Jul 2000, Tony McDonald wrote:
 Hi all,
 I think the time has come to bite the bullet and change our 
 authentication engine to work in line with Zope 2.2 and above. 
 UserDB-1.2 seems to have some problems with it (see my message 
 today), a

i use userdb with 2.2 and it worked great.  no problems at all.  maybe you
could try it on a fresh zope install or try it on a copy of your zope
install.  

 -- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




RE: [Zope] zope crawls - the day after

2000-07-14 Thread bak @ kedai

Uhm. Headers are headers, not content. As example, image files have
headers too but no
HTML inside. So you should set headers with RESPONSE.setHeader()

i did set RESPONSE.setHeader(blah blah).  my question was where should i put
this statement.  but now, i found out that it doesn't matter where i set it,
it will be in the header.  however, ie still doesn't respect the
cache-control request.  it till shows old news, which is bad, which brings
me back to square one.:(

i'm on my wits end now.  help?


hth
Tino Wildenhain

___
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 )


___
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 )




[Zope] clarification neede: postgresDA, SQL method cache and connection pool

2000-07-12 Thread Bak @ kedai

hello again

after the bad experience yesterday, i want to scale my site so that i don't
face the same problems again.  ZEO would do that.  but not now.  not when i
don't know much about zope and zeo.

but before that comes, i'd like to store data in a RDB (postgres) and split the
frontend into two or more but accessing the same RDB.  that way, i can split
user access,  give faster response, get more users.what's the pros?  cons?


my Q:
can the gurus spare some time and clarify the database connection pool (?) per
zope thread(postgres specifically).  and how is cache handled?  i've seen
errors saying that the object is not in cache.  is this related to the
connection per thread?

--traceback
 File /home/kdie/Zope/lib/python/Shared/DC/ZRDB/DA.py, line 389, in _cached_result
(Object: qry_msg_thread)
KeyError: ('select *\012from msg\012where \012par_id=188\012', 1000)


is this a good way of approaching the problems?  or is there a better way?
thanks.


-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




[Zope] zope crawls - the day after

2000-07-11 Thread Bak @ kedai

hi all

zope is faster now.  i think i know why, just wanted some confirmation from the
zopistas.

setup:
apache in front of zope on a rh 6.1 linux

what happened:
-got a lot of simultaneous connect in one time.  whe the number of connect
exceeds 200, zope started slowing down.   and i mean really slow.
-tried putting squid in front, still not much improvement.
-set up cache headers again.  i did this earlier on, but was not successful.

now:
-got less then 100 simultaneous connect.  zope runs beautifully.

what i think that solved this:
-setting the cache headers.  at first, i put the headers in
standard_html_header, before any html documents.  later, i put it after
headtitle tags.  and i think i can see the cache headers on.

HTTP/1.1 200 OK
Date: Tue, 11 Jul 2000 09:15:33 GMT
Server: Apache/1.3.12 (Unix)  (Red Hat/Linux) mod_fastcgi/2.2.4 (mod_pcgi2/1.0.1; 
PCGI/2.0a5) PHP/3.0.12
Cache-Control: must-revalidate,max-age=120
Expires: Tue, 11 Jul 2000 09:17:06 GMT
X-Powered-By: Zope (www.zope.org), Python (www.python.org)
Content-Length: 14508
Last-Modified: Mon, 10 Jul 2000 16:24:22 GMT
Content-Type: text/html


so, i guess, it does matter where you put the cache headers.  is there a limit
on how many simultaneous connect zope can handle?  apache ( i know it's
different) can handle much higher traffic with not much complaints.

so, correct me if i'm wrong here guys!

thanks


-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




Re: [Zope] error going from 2.1.6 to 2.2b3

2000-07-05 Thread Bak @ kedai

On Wed, 05 Jul 2000, Anders Holmbech Nielsen wrote:
 Hi,
 
 when trying to import  an object made in 2.1.6 into 2.2b3 i get this 
 error. What could be the problem ?
 
 

brian put out an updated file Lexicon.py which fix the error.
file is attached.  make a backup first.  copy it to
/lib/python/SearchIndex/Lexicon.py
-- 
--
http://www.kedai.com.my/kk
Am I Evil?



##
# 
# Zope Public License (ZPL) Version 1.0
# -
# 
# Copyright (c) Digital Creations.  All rights reserved.
# 
# This license has been certified as Open Source(tm).
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# 
# 1. Redistributions in source code must retain the above copyright
#notice, this list of conditions, and the following disclaimer.
# 
# 2. Redistributions in binary form must reproduce the above copyright
#notice, this list of conditions, and the following disclaimer in
#the documentation and/or other materials provided with the
#distribution.
# 
# 3. Digital Creations requests that attribution be given to Zope
#in any manner possible. Zope includes a "Powered by Zope"
#button that is installed by default. While it is not a license
#violation to remove this button, it is requested that the
#attribution remain. A significant investment has been put
#into Zope, and this effort will continue if the Zope community
#continues to grow. This is one way to assure that growth.
# 
# 4. All advertising materials and documentation mentioning
#features derived from or use of this software must display
#the following acknowledgement:
# 
#  "This product includes software developed by Digital Creations
#  for use in the Z Object Publishing Environment
#  (http://www.zope.org/)."
# 
#In the event that the product being advertised includes an
#intact Zope distribution (with copyright and license included)
#then this clause is waived.
# 
# 5. Names associated with Zope or Digital Creations must not be used to
#endorse or promote products derived from this software without
#prior written permission from Digital Creations.
# 
# 6. Modified redistributions of any form whatsoever must retain
#the following acknowledgment:
# 
#  "This product includes software developed by Digital Creations
#  for use in the Z Object Publishing Environment
#  (http://www.zope.org/)."
# 
#Intact (re-)distributions of any official Zope release do not
#require an external acknowledgement.
# 
# 7. Modifications are encouraged but must be packaged separately as
#patches to official Zope releases.  Distributions that do not
#clearly separate the patches from the original work must be clearly
#labeled as unofficial distributions.  Modifications which do not
#carry the name Zope may be packaged in any form, as long as they
#conform to all of the clauses above.
# 
# 
# Disclaimer
# 
#   THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
#   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
#   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
#   PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
#   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
#   USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
#   ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
#   OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
#   OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
#   SUCH DAMAGE.
# 
# 
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations.  Specific
# attributions are listed in the accompanying credits file.
# 
##

import string, regex, ts_regex
import regsub



__doc__=""" Module breaks out Zope specific methods and behavior.  In
addition, provides the Lexicon class which defines a word to integer
mapping.

"""

from Splitter import Splitter
from Persistence import Persistent
from Acquisition import Implicit
import OIBTree, BTree
OIBTree=OIBTree.BTree
OOBTree=BTree.BTree
import re


class Lexicon(Persistent, Implicit):
"""Maps words to word ids and then some

The Lexicon object is an attempt to abstract vocabularies out of
Text indexes.  This abstraction is not totally cooked yet, this
module still includes the parser for the 'Text Index Query
Language' and a few other hacks.

"""

# default for older objects
stop_syn={}

def 

[Zope] zope with large -t

2000-07-04 Thread Bak @ kedai

hello ppl,
what are the bad things that will happen if i increase zope thread from the
default to another number, say 25, or 50.  will anything bad happen?  i guess,
the greater number of zope threads will help process request faster, or am i
mistaken?  i currently have hugh connection numbers from apache ( 200 at one
time) and only 15 zope threads.

correct me if i'm wrong.
thanks


 -- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




Re: [Zope] zope and caching

2000-07-03 Thread Bak @ kedai


 to build some HTML-page-level caching into Zope soon.  More specifics I
 can't give, it's jammed into the (already very crowded) "nebulous things
 we should be working on".  Sounds sort of like fun though.

i do hope this materialize, since it will only boost Zope.  
 
 I haven't used CachePool... gad, it's hard to keep up.
 
i did a crude test with ab, and came out with the following.  
this is a moderately dynamic page (with dtml-method invoking date time, look
for stuff in ZClass objects, etc).  in summary, about 3 times increase of
transfer rate.

w/o CachePool
 
 /tmp]# /usr/sbin/ab -n 100 -c 20 http://203.106.2.206:8080/emedia_html
This is ApacheBench, Version 1.3c $Revision: 1.38 $ apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/
 
Server Software:Zope/Zope
Server Hostname:203.106.2.206
Server Port:8080
 
Document Path:  /emedia_html
Document Length:14063 bytes
 
Concurrency Level:  20
Time taken for tests:   43.212 seconds
Complete requests:  100
Failed requests:97
   (Connect: 0, Length: 97, Exceptions: 0)
Total transferred:  1422643 bytes
HTML transferred:   1402543 bytes
Requests per second:2.31
Transfer rate:  32.92 kb/s received
 
Connnection Times (ms)
  min   avg   max
Connect:111   375
Processing:   805  7817  8569
Total:806  7828  8944  
   
 with CachePool
 /tmp]# /usr/sbin/ab -n 100 -c 20 http://203.106.2.206:8080/t_p
This is ApacheBench, Version 1.3c $Revision: 1.38 $ apache-1.3
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-1999 The Apache Group, http://www.apache.org/
 
Server Software:Zope/Zope
Server Hostname:203.106.2.206
Server Port:8080
 
Document Path:  /t_p
Document Length:14066 bytes
 
Concurrency Level:  20
Time taken for tests:   14.671 seconds
Complete requests:  100
Failed requests:66
   (Connect: 0, Length: 66, Exceptions: 0)
Total transferred:  1423367 bytes
HTML transferred:   1403267 bytes
Requests per second:6.82
Transfer rate:  97.02 kb/s received
 
Connnection Times (ms)
  min   avg   max
Connect:1   573  3008
Processing:   106  2072  6070
Total:107  2645  9078
   


 In addition to caching, have you considered trying to use ZEO over a few
 machines?  
 

yes.  but not until zeo is stable enough, and i'm comfortable with 2.2.0 (what
with all the new security stuff and new behaviour)

but i am going to test it.  fer sure.

thanks
p/s - anybody know why i got failed request when i do ab?

___
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 )




[Zope] zope and caching

2000-07-02 Thread Bak @ kedai

hi good people
i've been using zope for quite some time now.  everything has been great; zope,
the mailinglist, products are great!  

rant
i want to serve a dynamic site and zope fits the bill.  now, i think i want to have 
some of the dynamic methods cached, so as to reduce the cpu cycles on my server. 

y'see, the site has slowly bogged down as the number of users increase(dwhich is
good, the users increase :)) and cpu cycles processing user requests have
increased.  i'm not too sure (being a newbie) whether all my methods contribute
to the consumption of cpu cycles.

caching.  yes, i've tried putting cache headers on my docs, but it  seems that
ie do not honor the headers, or maybe i put it wrongly.  ie(4.x and 5.x) kept
showing the cached version of my pages, even after clearing the local cache.  
only deleting the temp files solved the problem.  i had no bad behaviour from
netscape.  

also tried ZCache, but according to the product author, better wait for the
next version.  so, i'm waiting.

meanwhile, i've tried Cache Pool, and it looks good.  i have yet to test the
effectiveness of Cache Pool, but it looks as if the page loads faster now.
/rant

the point is this:
will zope ever have a method cacheing modules/object in the future?  for i think zope 
can be faster if he/she/it have this built in.

just a thought.  what say you guys?  how do you guys tackle this?

thanks


-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




[Zope] 2.2b3 hangs a lot

2000-06-29 Thread Bak @ kedai

hi all
been running 2.2.0b3 for a few days now.  
config
redhat6.1
postgres
ZPygreSql
kmnetnews

after some time, zope just hangs.  when i do top, there's no processor usage at
all on all python processes.  after a few minutes, zopes wake up  and continue
to serve.  the cycle continues after some time.  the hangup is very sporadic.

while this is happening i can still connect to the said port, but can't GET or
PUT anything.

this is a site that used to work on 2.1.6, no major changes.  except for the
updated Lexicon.py provided by Brian.

also, if i started with -Z, how long will it take zope to realize it's not
responding and to restart again? 

if i started Zope with a non default thread, what are the concequences?

anybody experienced zope hangups?  help, pointers, etc, sought!
i hope to document these, for the benefit of others like me.

thanks

-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




RE: [Zope] 2.2.0b2 and ZSQL method and Zcatalog

2000-06-27 Thread Bak @ kedai

On Tue, 27 Jun 2000, Brian Lloyd wrote:
hi brian,
 
  -ZSQL method.  got len() of unsized object.
 
 beta 3 should resolve that.
 
all my sql methods now work!  thanks
 
 
 I've attached an updated Lexicon.py - can you try dropping this 
 into your lib/python/SearchIndex directory, restarting your Zope 
 installation and let me know if this fixes the problem?
 
both 2.2b2 and b3 wont spit traceback without your update.  

 Thanks!
 
no, no .. thank you!

 
 Brian Lloyd[EMAIL PROTECTED]
 Software Engineer  540.371.6909  
 Digital Creations  http://www.digicool.com 
 
 
 
 


Content-Type: application/octet-stream; name="Lexicon.py"
Content-Transfer-Encoding: quoted-printable
Content-Description: 


-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




Re: [Zope] python product - newbie

2000-06-21 Thread Bak @ kedai

On Thu, 22 Jun 2000, Loren Stafford wrote:
 You don't show the __init__.py file so it's hard to be sure, but...
 
 

well, here's my __init__.py
--
 
__doc__ = """Boring initialization module.
My first product - Guest book
 
See README.txt for more details."""
 
# Version string. Usually updated automatically by CVS.
 
__version__ = '0.1' # Anything more and it'd be Interesting.
 
# Step #1: import your Python class so we can refer to it later
 
import GB
 
 
def initialize(context):
"""Initialize the Boring product.
registerClass() can accept a lot more arguments than we're providing
here, but that wouldn't be Boring."""
 
try:
"""Try to register the product."""
 
context.registerClass(
 
GB.GB,   # Which is the addable bit?
constructors = ( # The first of these is called
GB.manage_addGBForm, # when someone adds the product;
GB.manage_addGB),# the second is named here so we
 # can give people permission to
 # call it.
 
icon = 'item.gif'# This icon was provided by the
 # Zope 1 product-in-Python demo.
)
 
except:  
 
import sys, traceback, string
type, val, tb = sys.exc_info()
sys.stderr.write(string.join(traceback.format_exception(type, val, tb), ''))
del type, val, tb  
---

i registered GB, with forms and it's equivalent manage action.  that's ok.  but
to nest another class in GB, and to have the 'Add GBitem' show on the manage
interface, that, i can't do.
what should be added,  and where?

i looked at the old product API, but got more confused because i think Boring
is based on another way of making product.  is that so?

thabks

___
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 )




Re: [Zope] Newspaper site

2000-06-21 Thread Bak @ kedai

On Wed, 21 Jun 2000, Wesley Anderson wrote:
 Hi all,
 
 I'm just wondering if there are any newspaper/magazine sites out there that
 are using ZOPE for content management and subscriber management. I wouldn't
 think it would be suitable, but what do you think of using Squishdot for
 this purpose? Also, is there a list of "powered by" sites on zope.org?
 
 I'm doing a site that has both public and private content - hence the need
 for subscriber-based access.
 

http://www.emedia.com.my 
is a newspaper site that runs on ZClass.  nothing much, but works

-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




[Zope] python product - newbie

2000-06-20 Thread Bak @ kedai

hi all,
Newbie alert blaring

i'm messing around with Boring product, and now wants to do more.  i have
problems when i got more than one class in a product.  this is what i wanted to
do.

create a guestbook (what else :)) product. GB.py with two classes - GB and
GBitem.  i can now load GB product, but can't add GBitem.  what do i need to do
to get the 'Add' selection box?

GB.py is available at http://203.106.2.206:8080/Tmp/GB

help, pointers, docs appreciated
thabks

-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




[Zope] nested dtml-in with sql method -namespace problem (?)

2000-06-18 Thread Bak @ kedai

hi all,
i have posted this question a while back, but got no replies.  maybe imy
question is a bit off or unclear.  so here it is again.  rephrased.

i have 2 sql methods.  sql1, and sql2.  sql 2 got the parameter for it's query
from sql1.  as follows:
--
dtml-in "sql1"
dtml-in "sql2(obj=myobj)"
do stuff
/dtml-in
/dtml-in
--

sql1 is just a query that returns myobj that will be used by sql2.  this used
to work on 2.1.6 but not anymore on 2.2

i guess tmyobj is not in the namespace.  even tried passing 
_.None, _,obj=myobj
but resulted the same error.

the traceback
raceback (innermost last):
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 187, in 
publish
  File /home/kdie/Zope-2.2.0b1-src/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 171, in 
publish
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
(Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/OFS/DTMLMethod.py, line 168, in __call__
(Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_String.py, line 500, 
in __call__
(Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_In.py, line 611, in 
renderwb
(Object: qry_msgs_by_par_id(par_id=0))
  File /home/kdie/Zope-2.2.0b1-src/lib/python/OFS/DTMLMethod.py, line 164, in __call__
(Object: show_subtree_index)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_String.py, line 500, 
in __call__
(Object: show_subtree_index)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_In.py, line 633, in 
renderwob
(Object: qry_msg_thread(par_id=obj_id))
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_Util.py, line 339, 
in eval
(Object: qry_msg_thread(par_id=obj_id))
(Info: qry_msg_thread)
  File string, line 0, in ?
  File /home/kdie/Zope-2.2.0b1-src/lib/python/Shared/DC/ZRDB/DA.py, line 444, in 
__call__
(Object: qry_msg_thread)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_String.py, line 500, 
in __call__
(Object: string)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/Shared/DC/ZRDB/sqlvar.py, line 168, in 
render
(Object: obj_id)
Missing Input: (see above)


any clues, hints are appreciated

thanks
-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




[Zope] sql and zope-2.2

2000-06-15 Thread Bak @ kedai

hi all,
i managed to upgrade my site from 2.1.6 to 2.2b1 with no problems (thanks Brian)
but now, something else cropped up.  what used to work on my 2.1.6 doesn't
anymore.  following are the sql snippets and tracebacks

--show_subtree_index

dtml-in "qry_msg_thread(_.None,_,par_id=obj_id)"

font size="-1"a class="root-msg" href="view_msg_html?obj_id=dtml-var obj_id" 
target="main"
- dtml-var username/a/font

/dtml-in

---

my sqlmethod

select *
from msg
where 
par_id=dtml-sqlvar obj_id type=int

---
and the traceback

---
Traceback (innermost last):
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 187, in 
publish
  File /home/kdie/Zope-2.2.0b1-src/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 171, in 
publish
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 112, in 
call_object
(Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/OFS/DTMLMethod.py, line 168, in __call__
(Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_String.py, line 500, 
in __call__
(Object: index_html)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_In.py, line 611, in 
renderwb
(Object: qry_msgs_by_par_id(par_id=0))
  File /home/kdie/Zope-2.2.0b1-src/lib/python/OFS/DTMLMethod.py, line 164, in __call__
(Object: show_subtree_index)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_String.py, line 500, 
in __call__
(Object: show_subtree_index)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_In.py, line 633, in 
renderwob
(Object: qry_msg_thread(_.None,_,par_id=obj_id))
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_Util.py, line 339, 
in eval
(Object: qry_msg_thread(_.None,_,par_id=obj_id))
(Info: qry_msg_thread)
  File string, line 0, in ?
  File /home/kdie/Zope-2.2.0b1-src/lib/python/Shared/DC/ZRDB/DA.py, line 444, in 
__call__
(Object: qry_msg_thread)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/DocumentTemplate/DT_String.py, line 500, 
in __call__
(Object: string)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/Shared/DC/ZRDB/sqlvar.py, line 168, in 
render
(Object: obj_id)
Missing Input: (see above)
--
i tried encapsulating the dtml method with dtml-with REQUEST just in case,
but still no go.
any help appreciated

-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




[Zope] monitoring zope

2000-06-14 Thread Bak @ kedai

hi again,
there were threads that talk about restarting Zope if and when it hangs.  i
know of the -Z option for z2.py and daemontools.

i know there's another one, a script maybe, with a peculiar name, but can't
really remember it.  any clues/url?

i wwant to give it a try

thanks
  -- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




[Zope] upgrade from zope-2.1.6 to zope-2.2.0b1

2000-06-13 Thread Bak @ kedai

hi all,
managed to install zope-2.2.0b1 ok.  default setting works fine, although i
only tested it minimally.  the quickstart barfs a traceback(reported
earlier).

upgraded from 2..1.6, here's what i did:
-tar everything under lib/python/Products; except for modules that comes with
zope 2.2
-untar in the new zope directory
-copied Data.fs to the newdir/var
-start Zope

Zope starts ok, but i can't get view or manage the site.  here's the traceback
---

Traceback (innermost last):
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 222, in 
publish_module
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 187, in 
publish
  File /home/kdie/Zope-2.2.0b1-src/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 162, in 
publish
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/BaseRequest.py, line 425, in 
traverse
  File /home/kdie/Zope-2.2.0b1-src/lib/python/ZPublisher/BaseRequest.py, line 501, in 
old_validation
(Object: broken)
AttributeError: (see above)

-

i use UserDb for authentication, got a few ZClass of my own, SiteSummary, and a
few other zope products.

can anyone shed some light ?
thanks

-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




Re: [Zope] Re: Fwd: Re: [Zope] PoPy module

2000-06-05 Thread Bak @ kedai

On Mon, 05 Jun 2000, Thierry MICHEL wrote:

  2. Whether Auto-commit mode is on or off on ZPoPyDA  the new postgres
  7.0 syntax 
   "select * from foo limit 20 offset 10" returns all records of foo and
  not only 20 !
With PyGreSQLDA it works :-)
 
 That's running every where, it's strange that's not running on your system.
 Do you have packed the database of Zope ? Do you have create a new object ?

i will vouch for this, although i'm using postgres 6.5 (from rpm).  i packed
the database,  stop and start zope.  create a zpopyda connection, and test the
connection with SQL query.  and limit doesn't work.

  
 PygresqlDA runs ok because it doesn't deal with cursors ... :-)
 
 Thierry
 [EMAIL PROTECTED]


___
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 )




[Zope] postgres DA

2000-06-02 Thread Bak @ kedai

hi all,

what's the current status of ZPygreSQLDA and ZPoPyDA? if i were to choose,
which should i use?  and the reasons for using it?

i understand that ZPoPyDA is level 2 thread safety, and not quite sure what
ZPygreSQLDA thread safety is.

docs, pointers, explanation sought!

thanks

 -- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )




[Zope] Re: Fwd: [Zope] postgres DA

2000-06-02 Thread Bak @ kedai

 I can only say that we started writing PoPy and ZPoPyDA because pygresql
 (and the adapter based on it) are *not* thread safe. we were experimenting
 deadlocks in zope when you mix db access from sql methods and external
 methods in the same page.

quoting DAroadmap at 
http://www.zope.org/Members/petrilli/DARoadmap
"""

Level 2

Level 2 database adapters must be safe to use in a multi-threaded 
Zope instance. This can take multiple behaviour
paterns:

Internal locking/mutexes for single DA access

Global locking through the transaction manager if appropriate

While a sub-optimal solution, it should be usable on any 
application that has minimal, or infrequent, database access.
This means that all access paterns will be serialized.

In addition, all DAs at this level must release the Python global 
interpreter lock.
"""
i assume ZPoPyDA conform to the above statement.  will you make ZPoPyDa into
level 3 anytime soon?

 
 on the other hand PoPy is pretty new and, before using it in production,
 needs more testing. i think it will stabilize pretty soon, because we will
 use it to build the web sites for our customers really soon now and that 
 will apport a lot of testing/debugging.
 

i will try ZPoPyDA on my personal site, and will inform you of any
misbehaviour.  BTW, what symptoms should i look out for if ZPoPyDa misbehave? 
Zope locking/not responding?

 
make your choice and be happy, 
made mine already, thanks, and 

"""
I'll be back!
"""


 federico
 
 -- 
 Federico Di Gregorio
 MIXAD LIVE System Programmer   [EMAIL PROTECTED]
 Debian GNU/Linux Developer  Italian Press Contact[EMAIL PROTECTED]
   The reverse side also has a reverse side.  -- Japanese proverb
-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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 )