Re: [Zope-dev] more __call__ ...

2000-09-27 Thread Chris Withers

Jim Fulton wrote:
  http://a.site/folder/object/myobject
 
  myobject contains dtml-var standard_html_header
  standard_html_header contains dtml-var mynavigator
 
 Is myobject a DTMLMethod? Some kind of container?

Sorry... a good example for myobject would be a DTML Document.

 I don't see how it can contain a var tag if it's not
 DTML.  If it is DTML, I don't see where mynavigator
 fits in.

It is DTML, containing the line dtml-var standard_html_header
standard_html_header is a DTML Method containing dtml-var mynavigator
mynavigator is an object of meta_type 'Navigator' and it's the __call__
method of the Navigator product that I'm having trouble writing :-S

So, if I give my product a class attribute of isDocTemp=1, what
signature should I give my product's __call__ method so it picks up the
DTML namespace?
  
 def __call__(self, ignored, md): ...

This, of coruse, begs the question as to what 'ignored' is, but I
probably don't want to know ;-)

 No: self.nav_header(None, md)

ok..

  In any case, what is self in __call__(self, ...) and what should it be
  in nav_header(self, ...)?
 
 Python method signatures always begin with an argument that is the instance
 to which they are bound.

Okay, so in the __call__ case, self will be the mynavigator object?

Anyway, the isDocTemp thing seems to be getting somewhere.

md is a TemplateDict, and that's a stack of InstanceDict's, right?
Now, from what I've seen from playing, the object I've been looking for
all along is the one whose InstanceDict is on the top of the md stack.

So, two questions:

1. How can I get the top most InstanceDict out of md? is _pop the only
way? If so, I would guess I do:

x = md._pop(1)
md._push(x)

   to get the InstanceDict without disturting the namespace stack?

2. How would I turn the InstanceDict, x, back into an object? From
reading pDocumentTemplate.py, I would guess:

obj = x.self

   Is that right?

well, thanks for all the help, I _think_ the end is in sight now ;-)

cheers,

Chris

PS: Once I've got that object, can I still use aq_chain(obj,1) to get
the list of obj and its containing parents? (In essence, the PARENTS'y
type thing I've been looking for all along ;-)

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] bouncing e-mail

2000-09-27 Thread Tom Deprez

Hi,

Has somebody noticed some problems with my e-mail? It looks like my account
was turned of at zope-dev. Since I didn't do it, it must be an automatic
thing. So my q'n had someone of you problems with my e-mail?

Tom.

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Soft links again

2000-09-27 Thread Toby Dickenson

On Wed, 27 Sep 2000 09:06:18 -0400, Shane Hathaway
[EMAIL PROTECTED] wrote:

 Also, there's currently a buglet in
acquisition that makes it so that you can only perform the actions on
the symlink which "anonymous" is allowed to do.


Woooh! Someone else that agrees this is a bug in Acquisition.

Full report and patch at
http://classic.zope.org:8080/Collector/1066/view

Toby Dickenson
[EMAIL PROTECTED]

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Soft links again

2000-09-27 Thread Shane Hathaway

Toby Dickenson wrote:
 
 On Wed, 27 Sep 2000 09:06:18 -0400, Shane Hathaway
 [EMAIL PROTECTED] wrote:
 
  Also, there's currently a buglet in
 acquisition that makes it so that you can only perform the actions on
 the symlink which "anonymous" is allowed to do.
 
 Woooh! Someone else that agrees this is a bug in Acquisition.
 
 Full report and patch at
 http://classic.zope.org:8080/Collector/1066/view

Not only are you 100% correct, but we were planning to do the same
thing!  You were several steps ahead of us.

The patch works perfectly, although I added a couple of comments.

Sorry the patch didn't get applied sooner.

Shane

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] structure text

2000-09-27 Thread nw_moriarty us

I asked, some time ago, why the StructuredText.py did not work with the example 
provided in the triple quotes but my email has been patchy.  Did anybody reply as to 
why the :: does not work all the time?

Nigel




--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.



___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




[Zope-dev] ZCatalog with UTF-8 Chinese

2000-09-27 Thread Sin Hang Kin

Dear Developer:

Trying to short-cut UNTEXTINDEX to handle UTF-8 Chinese, I need some help.

After reading some code of query, I think the regular expression operations
which in parse, quotes and parse2 were not safe for utf8 string. So, I
decide to emulate what they do. However, I do not understand what getlexicon
is doing and I would like to learn what  q should looks like before it is
passed to evaluate. I do not understand that vocabulary seems to store like
integer, is getlexicon a step to look up the string to convert them to
integer? I am getting lost.

Could some experienced developer help me out of these?

Rgs,

Kent Sin
-
kentsin.weblogs.com
kentsin.imeme.net


def query(self, s, default_operator = Or, ws = (string.whitespace,)):

"""

This is called by TextIndexes. A 'query term' which is a string

's' is passed in, along with an index object. s is parsed, then

the wildcards are parsed, then something is parsed again, then the

whole thing is 'evaluated'

"""

# First replace any occurences of " and not " with " andnot "

s = ts_regex.gsub('[%s]+and[%s]*not[%s]+' % (ws * 3), ' andnot ', s)

# do some parsing

q = parse(s)

## here, we give lexicons a chance to transform the query.

## For example, substitute wildcards, or translate words into

## various languages.

q = self.getLexicon(self._lexicon).query_hook(q)

# do some more parsing

q = parse2(q, default_operator)

## evalute the final 'expression'

return self.evaluate(q)





___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope] secure management with Site Access?

2000-09-27 Thread Rob Miller


David Elkins writes:

 Have you tried setting up something like zope.domain.com with the https
 SiteRoot and Apache pointing directly at manage?

Pointing a virtual host directly at manage I can do, but where do I put the
SiteRoot?  If I put an https SiteRoot in a directory, then plain ol'
unencrypted access won't be happening... all of the URLs inside the site
will point to 'https://' instead of 'http://', right?  Or am I missing
something?

 You could additional add
 in a rewrite/proxy command to redirect to the SSL side for
 www.domain.com/manage.

Again, getting Apache to do the right thing I've got figured out.  It's
just the SiteRoot causing the problem; all of the links inside the folder
with the SiteRoot will be either 'http' or 'https', but I'm looking for
some solution that will allow either, depending on the previous REQUEST.  I
know that SiteRoot is basically a special kind of access rule, maybe a
smarter access rule can be used instead of a SiteRoot...

Thanks for your feedback, and please let me know if there's something that
I'm not seeing.

rob

___
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] WorldPilot has the bits...

2000-09-27 Thread Alastair Burt

John Chandler [EMAIL PROTECTED] writes:

   Any ideas how the sync would be done?
   
  
  WorldPilot has the ability to do this, allegedly.
 
 WorldPilot's Palm side of things was still broken last I checked (last week,
 IIRC) - it was complaining of login errors, though you could login happily
 through other means. Get the freshest version of the software you can as it
 might be fixed now.

The CVS version works better.  I have got it to synch memos, todos and
addresses with no problem.  The calendar entries get transferred but when
they appear on the web page the times and dates are awry.

--- Alastair



___
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-27 Thread Kapil Thangavelu

"Bak @ kedai" wrote:
 
  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?

i would factor your sql methods into logical groups and give dedicated
connections to groups which might have signifigant concurrent access.
Giving dedicated connections to every method is not productive as you
just increase concurrency problens on the db side. 

an example might be a dedicated connection for user related info,
sessions, etc. and another for a news system.

 anybody know whether PoPy is threadsafe already?

some reference regarding threadsafety as defined by the python dbi from
the db-sig group.

BEGIN REF
Integer constant stating the level of thread safety the interface
supports. Possible values are: 
  0
= Threads may not share the module.
  1
= Threads may share the module, but not connections.
  2
= Threads may share the module and connections.
  3
= Threads may share the module, connections and cursors.


 Sharing in the above context means that two threads may use a
resource without wrapping it using a mutex semaphore to
 implement resource locking. Note that you cannot always make
external resources thread safe by managing access using a
 mutex: the resource may rely on global variables or other
external sources that are beyond your control. 
END REF

First this is in regards to the underlying python lib that drives the
DA. both PyGre and PoPy are thread safety 1. Words have been said to the
effect that the developers of PoPy would like to raise the thread safety
of PoPy to 2. I'm not sure if D'arcy(author PyGre) has any such plans,
however he is a contributor to Postgres and does maintain PyGre.  PyGre
did not use to conform to the python DBI, since it was written to
support the features of Postgres, there is a now a wrapper around it
provide this abstraction. PoPy was built to support the python DBI. I
bring this info up because the DA for PyGre is dated and does not appear
to be supported, but its important to realize that this DA is just a
thin wrapper around the underlying db access lib, and for Postgres both
of these are being worked on.

if you really want a thread safe DA you're going to have to look towards
the commercial DBs. rumor has it that someone at DC is writing a new
Oracle adaptor.

 thanks and sorry to be a bone head :)

no worries, if people never asked than we would all be learning by trial
and error.

  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 )




Re: [Zope] Version Control in Zope / Managing releases

2000-09-27 Thread Marcin Kasperski

Nils Kassube wrote:
 
 The thread at the ZEO list is indeed very interesting.
 
 I wanted to write something like this:
 
 http://lists.zope.org/pipermail/zope-zeo/2000-September/000131.html
 
 Nice to see someone else having the same thoughts.

I strongly commit the thoughts described in the letter cited above. For
the applications I develop, I use CVS to version control, merge changes,
tag important revisions etc. I develop in test environment, create code
distributions based on tags and migrate it to production environment.
Working in teams I use merge functionality sometimes. I can accept the
need to use some other version control tool but it should have the same
features.

ZCVSMixin does not solve the problems. It is not recursive. There is no
way to commit all the changes in the whole folder hierarchy. There is
also no way to import a bunch of changes based on a tag (which gathers
multiple folders). And the solution (exporting everything to filesystem)
is not the natural one.

Until the problem is solved, I will never use Zope to implement
important web application. This is sad - I like Zope, I use it to back
my private webpage and my company information webpage and I like many
Zope features.

I even considered creating everything as a Python products (their code
can be CVS-controlled) but such a method is out of any sense.

It seems to me that it would be easier to implement complete
version-control mechanisms within Zope (there is Undo, there are
versions, there is export/import) than to build better integration with
external VC tools, but this is just an opinion.

Regards
Marcin

--
http://www.mk.w.pl /
 Marcin.Kasperski | Moje prywatne strony: http://www.kasperski.prv.pl 
   @softax.com.pl |   
 @bigfoot.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 )




Re: [Zope] secure management with Site Access?

2000-09-27 Thread Frank Tegtmeyer


 with the SiteRoot will be either 'http' or 'https', but I'm looking for
 some solution that will allow either, depending on the previous REQUEST.  I

It has not to depend on the last request, it has to depend on the actual 
request. Actually there are some examples in the SiteRoot documentation 
how to write access rules to manipulate URLs. They only have to be 
extended to keep the protocol in place.

I need this myself too but didn't have the time and Python knowledge to 
figure it out. If somebody does, please announce it here :)

Fro those who cannot program Python it would be a nice extension to 
SiteRoot to have a property "keep protocol" or something like that.
This would simplify it's use for this purpose dramatically.

Regards, Frank

___
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] WorldPilot has the bits...

2000-09-27 Thread John Chandler

  WorldPilot's Palm side of things was still broken last I checked (last
 week,
  IIRC) - it was complaining of login errors, though you could login
 happily
  through other means. Get the freshest version of the software you can
 as it
  might be fixed now.
 
 The CVS version works better.  I have got it to synch memos, todos and
 addresses with no problem.  The calendar entries get transferred but
 when
 they appear on the web page the times and dates are awry.

Cheers for the update Alastair! I'll take a look when I next get a spare
moment...


John

--
 John Chandler  /  Software Developer  /  New Information Paradigms Ltd
   [ Linux in the office, AmigaOS in the home, PalmOS in the pocket ]

 The opinions above aren't those of my company...
   ...but then, they aren't really mine either.

___
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] Adding ZClass to a folder

2000-09-27 Thread brocken22

Hallo,
that's a dumb question.
How do you add a ZCLass to a subfolder.
That's my try:
-   dtml- with "SubFolderName.manage_addProduct['MetaTypeName']"
 dtml-call "ZClass_add(_.None, _, NoRedir=1)"

  /dtml-with

-- 
Sent through GMX FreeMail - http://www.gmx.net


___
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] Restricting URL access to certain objects

2000-09-27 Thread Chris Withers

Steve Alexander wrote:
 If you want this to be fairly transparent, perhaps based on a particular
 permission or property, then I think you'll need to patch part of Zope,
 probably HTTPRequest.py.

This is the basis of what my proposal on dev.zope.org was about.

This could then be extended so you have one permission/property per
protocol (HTTP/FTP/DAV/etc)

It would make things neater and probably more secure, but sadly no-oen
really seemed interested :-(

If anyone does do any patchign for this, please let the list knwo and
stick it in the collector for good measure, as well...

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Version Control in Zope / Managing releases

2000-09-27 Thread Chris Withers

Marcin Kasperski wrote:
 It seems to me that it would be easier to implement complete
 version-control mechanisms within Zope (there is Undo, there are
 versions, there is export/import) than to build better integration with
 external VC tools, but this is just an opinion.

I think that's right, and I'm sure all the hard work has been done. Just
needs someone to string it all together into a decent revision control
system...

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Apache + Zserver + SiteAccess + Search results from the catalog

2000-09-27 Thread neeloy_saha

Hi all,

The href generated for my search results is not resulting in right Links as
a result I am getting the 404 error.


** I have followed the "HOW-TO : Using Apache with Zserver(Not Zope.cgi)"
and implemented a complete virtual host:(second example)

   VirtualHost 192.168.81.132:80
#ServerAdmin [EMAIL PROTECTED]
#DocumentRoot /www/docs/host.some_domain.com
#ServerName host.some_domain.com
#ErrorLog logs/host.some_domain.com-error_log
#CustomLog logs/host.some_domain.com-access_log common
 ProxyPass /webradar http://192.168.81.132:8081/WebRadar3.0
 ProxyPassReverse /webradar http://192.168.81.132:8081/WebRadar3.0
 ProxyPass /misc_ http://192.168.81.132:8081/misc_
 ProxyPass /p_ http://192.168.81.132:8081/p_
/VirtualHost


** Installed a siteaccess root and in the base of the portal
folder(WebRadar3.0) ,gave the base as
   base : http://192.168.81.132/webradar
   path  : /

** everything seems to be working fineBUT the results from the search
has gone astray. 
   http://192.168.81.132/webradar/Members/pankaj_malhotra/readme.html - I
need this
   http://192.168.81.132/WebRadar3.0/Members/pankaj_malhotra/readme.html - I
am getting this 
   [ WebRadar3.0 is the name of my portal ]
  
** I have seen the "HOW-TO Mix Zcatalog/Zsearch with apache with apache. I
am getting the following
result.
dtml-in SiteIndex
  dtml-let itemPath="getpath(data_record_id_)"
 a href="dtml-SCRIPT_NAME;/dtml-itemPath;"xxx/a
  /dtml-let 
   /dtml-in
   I am getting this : http://webradar3.0/Members/neeloy_saha/dfsdf

Please help.

Thx in advance.

-neeloy
 

___
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] Version Control in Zope / Managing releases

2000-09-27 Thread Marcin Kasperski

 That's not to say that Greg's difficulties are unique.  I just don't
 think his solution is appropriate for most.  Synchronization is a major
 need for Zope.  In fact, I have some working code!  But *I need
 feedback*.
 
 http://dev.zope.org/Wikis/DevSite/Proposals/SynchronizationTab
 

The ideas presented on this page are very interesting. The main things
which can cause problems:
- how can one diff zope objects (diff on XML exports?);
- what about the scenario, in which CVS (or sth. else) repository is not
accessible from production server (I would like to export sth from
repository via tag and import it to production).

I would like to take a look at some working code...

Regards

--
http://www.mk.w.pl /
 Marcin.Kasperski | Kcik porad dla programistw: 
   @softax.com.pl |   http://www.softax.com.pl/prywatne/marcink/porady
 @bigfoot.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] Displaying all subobjects

2000-09-27 Thread brocken22

The second dumb question today:It's a horrible one
How to iterate over all subfolders?
"objectValues" shows only the same level, where the method resides.
Thanks.

-- 
Sent through GMX FreeMail - http://www.gmx.net


___
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 properties???

2000-09-27 Thread Lars Heber

Hello,

I urgently need to nest properties without creating methods.

My task is to create a number of public properties, which other users
shall use as values in their properties.

For example I'd like to create a public property enterpriseName with the
value "myEnterprise", and the users shall take this property when they
create the new property division with the value "myDivision in
myEnterprise", something like "myDivision in dtml-enterpriseName;".

Could you please help me?

By the way: Is it possible to insert special characters in properties,
like auml;?

Thanks in advance for your help.

With kind regards

Lars Heber



___
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] Displaying all subobjects

2000-09-27 Thread Phil Harris

How about,

Woah there boy!  This is completely untested and untried in any way,
caveat emptor!!

create an dtml-method called iterate:

with this contents:

dtml-in "objectItems()"
dtml-if "meta_type == 'Folder'"
dtml-call "id['iterate']"
/dtml-if
dtml-var idbr/
/dtml-in

The you can call this like so, from any other DTML_XXX:

dtml-var iterate

or

dtml-var "this()['iterate']"

Or
..

hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 27, 2000 11:20 AM
Subject: [Zope] Displaying all subobjects


 The second dumb question today:It's a horrible one
 How to iterate over all subfolders?
 "objectValues" shows only the same level, where the method resides.
 Thanks.

 --
 Sent through GMX FreeMail - http://www.gmx.net


 ___
 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] Displaying all subobjects

2000-09-27 Thread Phil Harris

Actually,

This would probably work a bit better (since the last one doesn't work at
all 9¬) )

dtml-in "objectItems()"
  dtml-if "meta_type=='Folder'"
dtml-call "restrictedTraverse(_['id']+'/iterate')(_.None,_)"
  /dtml-if
  dtml-var idbr
/dtml-in


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 27, 2000 11:20 AM
Subject: [Zope] Displaying all subobjects


 The second dumb question today:It's a horrible one
 How to iterate over all subfolders?
 "objectValues" shows only the same level, where the method resides.
 Thanks.

 --
 Sent through GMX FreeMail - http://www.gmx.net


 ___
 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 Dies with FastCGI

2000-09-27 Thread John Hayward-Warburton (Programming account)

"Ronald L. Roeber" wrote:

 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

 "ZServer uncaptured python exception, closing channel FCGIChannel
 connected 127.0.0.1:2198 at 87195b (socket.error:(32, 'Broken pipe')
 [path_to_Zope/Zserver/medusa/asynchat.py|initiate_send||211]
 [path_to_Zope/Zserver/medusa/asynchat.py|send|274])

I know this won't be much help, but this Apache:

Server: Apache/1.3.12 (Unix) mod_ssl/2.6.2 OpenSSL/0.9.5 PHP/4.0.0
mod_fastcgi/2.2.3 mod_perl/1.22

Running with Zope 2.2.1, FastCGI has run reliably since the program was
first started. There were problems around Zope 2.1, but they were cured by
stealing the latest FastCGI stuff from CVS. Now, it runs without any
difficulty. I wish I knew more.

...jhw



___
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] Displaying all subobjects

2000-09-27 Thread Chris Withers

Phil Harris wrote:
 dtml-in "objectItems()"
   dtml-if "meta_type=='Folder'"
 dtml-call "restrictedTraverse(_['id']+'/iterate')(_.None,_)"
   /dtml-if
   dtml-var idbr
 /dtml-in

How about this untested:

 dtml-in "objectItems()"
   dtml-if "meta_type=='Folder'"
 dtml-with sequence-item
  dtml-var iterate
 /dtml-with
   /dtml-if
   dtml-var idbr
 /dtml-in

cheers,

Chris

PS: I find this sort of thing is often best done in an external method.
Or a python product (see the __call__ thread on zope-dev for all the fun
you can have 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 )




[Zope] sorry I forgot subject

2000-09-27 Thread Luciano Caroti


Excuse me!!
In my previous post I forgot subject.
Luciano.:))


___
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] (no subject)

2000-09-27 Thread Luciano Caroti

Hi,
I would like to build a repository for dowloading software in Zope. The user
need to register and then I send him an URL inside email to access for
downloading file, but:

How can I automate the process of authentication and selective downloading,
is there an example or have you any website that explain this type of issue.
Thank you in advance .
Luciano Caroti



___
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] Yes it did! :-S

2000-09-27 Thread Chris Withers

Chris Withers wrote:
  With the new security policy in Zope 2.2, this is no longer necessary, and
  you can comment out the restriction. Just remove or comment out the
  'validate' method in the file Products/ZWiki/ZWikiPage.py and restart your
  Zope server.
 
 This is Zope 2.2.1 adn I did. Same problem... :-(

Of course, the server was actually running Zope 2.2.2, hence patching
2.2.1 wouldn't help :-S

On patching the right copy of ZWikiPage.py, everything works fine...

*embarrassed grin*

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] removing validate() didn't help :-(

2000-09-27 Thread Chris Withers

Martijn Pieters wrote:
 I have seen the same problem; the getSize method isn't accessible to
 RecentChanges, even though the Authenticated User has the View permission.

Yup, that's the one...

 With the new security policy in Zope 2.2, this is no longer necessary, and
 you can comment out the restriction. Just remove or comment out the
 'validate' method in the file Products/ZWiki/ZWikiPage.py and restart your
 Zope server. 

This is Zope 2.2.1 adn I did. Same problem... :-(

 If you still have problems, make sure that the Owner of the RecentChanges
 object has rights to 'View' the ZWiki pages.

RecentChanges is owned indirectly (through acquisition) by chris
(acl_users)

I'm a Manager, so I can view the pages... still no joy :-(

*sigh*

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] URL problem

2000-09-27 Thread Marc Breitenreicher

Hi,

I've got a little problem with thr URL returned by a catalog.

The catalog returns, for example, the URL /a/b/c/text.html 
But the link shall go to the URL /a/b/c
How can I manage this?

I use ZCatalog with ZSearch and get the URL with dtml-var
"getpath(data_record_id_)"

Thanks for help

Marc

___
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] Bug or feature? :-)

2000-09-27 Thread Toby Dickenson

On Tue, 26 Sep 2000 14:30:56 -0400 (EDT), Jeff Hoffman
[EMAIL PROTECTED] wrote:

Hello, Zopers.

Try this:

Create a DTML Method in Zope. Give it an id of 'target', and give it the
following body:

  Woohoo!

Now manage the folder that it is contained in. Instant tab augmentation!
:-)

Theres been some discussion on this class of bug on zope-dev this
week. http://www.zope.org/Members/htrd/names is a list of other ids
that will change Zopes behaviour if used.


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] Tesh sues Vignette (fwd)

2000-09-27 Thread Jean Jordaan

Go Zope?

-Original Message-
From: Justin Mason [mailto:[EMAIL PROTECTED]]
Sent: 27 September 2000 02:07
To: [EMAIL PROTECTED]
Subject: [IRR] [cms-list] Tesh sues Vignette (fwd)

--- Forwarded Message

Date:Wed, 27 Sep 2000 11:17:37 +1100
From:David Walker [EMAIL PROTECTED]
To:  [EMAIL PROTECTED]
Subject: [cms-list] Tesh sues Vignette

Interesting Vignette story: John Tesh (yes, the bloke who used to front
Entertainment Tonight - his production company is doing a Web site) has sued
Vignette for promising and not delivering.

Tesh's suit reportedly claims Vignette and/or its agent claimed (in late
1999) that StoryServer provided:
* the ability to automatically syndicate content
* workflow support
* the ability to develop a Web site in 1-2 months
* support for "all standard scripting languages".
Then Vignette trainers allegedly told Tesh's people that these services were
not provided. 

The story is at
http://www.inside.com/story/Story_Cached/0,2770,9901_13_32_1,00.html 

Inside.com has in fact done some very interesting reporting on Vignette. It
was Inside that reported major media sites such as the Chicago Tribune were
having second thoughts about the technology. (That story was written by
ex-Tribune online journalist Jimmy Guterman.)

Inside.com speaks from a position of experience: from their URLs, they're
running StoryServer themselves.Presumably they have good reasons for making
the call that stories of Vignette's dubious functionality have some basis in
truth.

I am aware of at least one other firm which has felt there was a mismatch
between Vignette's marketing claims and the product's reality.

This mismatch certainly existed in Vignette's early days. See the article by
database-backed Web site guru Philip Greenspun:

http://philip.greenspun.com/wtr/vignette-old

This article contains the following glorious paragraph about the 1997-era
StoryServer:

"Vignette's StoryServer product does not do any of the things that their
marketing literature claims it does. It is not a content management system.
It is not a version control system. It is not a personalization system. The
only sense in which it might be any of these things is that a programmer
could use it to build one of these things. However, you could say the same
thing about the raw Unix operating system plus a C compiler. Sitting through
a meeting with them was for me a rather surreal experience. It would be
rather akin to hearing Adobe pitch PhotoShop as a payroll check processing
system."

Please note that Vignette's software does a lot more than it did in 1997,
and appears to do more now than it did in late 1999. The company certainly
seems capable of product improvement over time.

Has anyone else come across instances of Vignette exaggerating their
product's abilities? 

Regards,
David Walker

eChoice: http://www.echoice.com.au, mailto:[EMAIL PROTECTED] 
Journalism/analysis: http://www.shorewalker.com,
mailto:[EMAIL PROTECTED] 


 

--
Subscribe: http://www.camworld.com/cms/
More Info: http://cms.filsa.net/
Post: [EMAIL PROTECTED]



--- End of Forwarded Message

___
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-PTK] Apache + Zserver + SiteAccess + Search results from thecatalogcatalog

2000-09-27 Thread Tres Seaver

neeloy_saha wrote:
 
 Hi all,
 
 The href generated for my search results is not resulting in right Links as
 a result I am getting the 404 error.
 
 ** I have followed the "HOW-TO : Using Apache with Zserver(Not Zope.cgi)"
 and implemented a complete virtual host:(second example)
 
VirtualHost 192.168.81.132:80
 #ServerAdmin [EMAIL PROTECTED]
 #DocumentRoot /www/docs/host.some_domain.com
 #ServerName host.some_domain.com
 #ErrorLog logs/host.some_domain.com-error_log
 #CustomLog logs/host.some_domain.com-access_log common
  ProxyPass /webradar http://192.168.81.132:8081/WebRadar3.0
  ProxyPassReverse /webradar http://192.168.81.132:8081/WebRadar3.0
  ProxyPass /misc_ http://192.168.81.132:8081/misc_
  ProxyPass /p_ http://192.168.81.132:8081/p_
 /VirtualHost
 
 ** Installed a siteaccess root and in the base of the portal
 folder(WebRadar3.0) ,gave the base as
base : http://192.168.81.132/webradar
path  : /
 
 ** everything seems to be working fineBUT the results from the search
 has gone astray.
http://192.168.81.132/webradar/Members/pankaj_malhotra/readme.html - I
 need this
http://192.168.81.132/WebRadar3.0/Members/pankaj_malhotra/readme.html - I
 am getting this
[ WebRadar3.0 is the name of my portal ]
 
 ** I have seen the "HOW-TO Mix Zcatalog/Zsearch with apache with apache. I
 am getting the following
 result.
 dtml-in SiteIndex
   dtml-let itemPath="getpath(data_record_id_)"
  a href="dtml-SCRIPT_NAME;/dtml-itemPath;"xxx/a
   /dtml-let
/dtml-in
I am getting this : http://webradar3.0/Members/neeloy_saha/dfsdf
 
 Please help.

You are using a *very* old version of the PTK (the 'SiteIndex' is
a giveaway);  try upgrading to the CVS version, or wait to the end
of the week for us to release a new tarball.  You will then be able
to spell your link as::

   dtml-in portal_catalog
dtml-let itemPath="getpath(data_record_id_)"
  a href="dtml-portal_url;/dtml-itemPath;"dtml-var Title/a
/dtml-let
   /dtml-in

If that doesn't help, something uglier is going to be needed.  I
believe we already have Collector issues on funny interactions
between SiteRoot-style virtual hosting and the catalog;  try a
collector search to see what turns up:

  http://classic.zope.org:8080/Collector

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   http://www.zope.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] Apology to Ethan [was: HowTo categorization]

2000-09-27 Thread Tim Cook

  When I volunteered to categorize the How-To's I told Ethan I
could do it in two weeks. Well, the good thing is that I came up
with more work to do. The bad thing is it's been three weeks and
I'm still only half (or a little more) finished.
But, Coming Soon! g

Tim Cook wrote:
 Two, definitely won't be a problem. So let's say 9/21/2000?

___
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] Nested properties???

2000-09-27 Thread Tim Cook

Lars Heber wrote:

 For example I'd like to create a public property enterpriseName with the
 value "myEnterprise", and the users shall take this property when they
 create the new property division with the value "myDivision in
 myEnterprise", something like "myDivision in dtml-enterpriseName;".
 
 Could you please help me?

As a folder property; enterpriseName
 In any subfolder, aquisition will find it.

...or maybe I don't understand the problem?
 


-- Tim Cook --
Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT
* It's easy to stop making mistakes. Just stop having ideas.  *
FreePM Project Coordinator http://www.freepm.org
OSHCA Founding Supporter http://www.oshca.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 )




Re: [Zope] Adding ZClass to a folder

2000-09-27 Thread Tim Cook

[EMAIL PROTECTED] wrote:
 How do you add a ZCLass to a subfolder.
 That's my try:
 -   dtml- with "SubFolderName.manage_addProduct['MetaTypeName']"
  dtml-call "ZClass_add(_.None, _, NoRedir=1)"
 
   /dtml-with
 
 --

Close. Try this.

dtml-with SubFolder
   dtml- with "ProductName.manage_addProduct['MetaTypeName']"
dtml-call "ZClass_add(_.None, _, NoRedir=1)"
/dtml-with
/dtmlwith SubFolder


-- Tim Cook --
Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT
* It's easy to stop making mistakes. Just stop having ideas.  *
FreePM Project Coordinator http://www.freepm.org
OSHCA Founding Supporter http://www.oshca.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 )




Re: [Zope] Displaying all subobjects

2000-09-27 Thread brocken22

Hallo Chris,
thanks for the quick reply, but the method is displaying all the objects
in the folder and I'd like to get only one metatype of
objects(i.e.ZClass-cars)but for all levels.

-- 
Sent through GMX FreeMail - http://www.gmx.net


___
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] BTreeFolder (easy?) questions

2000-09-27 Thread Dennis Nichols

1. Can I blithely use BTreeFolder in place of Folder without loss of 
functionality?

2. Can I successfully inherit from BTreeFolder in ZClasses (assuming that I 
uncomment registerBaseClass, which has been commented out in all 
BTreeFolder versions so far)?

--
Dennis Nichols
[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] Calling objects with arguments in a sequence

2000-09-27 Thread seb

Hi

I'm using the Photo product, instances of which I can call, with
arguments, like this:

dtml-var "my_photo(display='thumbnail')"

However, I can't work out how to pass arguments to each sequence item
when iterating over a sequence.

For example, I've tried:

dtml-in objectValues(['Photo'])"
dtml-var "_['sequence-item'](display='thumbnail')"
/dtml-in

(..not that I expect that to work :)

And I get

Error Type: TypeError
Error Value: call of non-function (type string)

I've tried various combinations of ways of calling the sequence-item,
but they all return the same error.  Could anyone suggest how I should
do this?  Thanks in advance...

Seb

___
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] Yihaw authorisation pbs

2000-09-27 Thread Didier Georgieff

Hello Soren,

It's me again (sorry to bother you so often).

1 - You report a pb in upload Yihaw Files on 2.2.0 but i have a 
similar problem under 2.1.6 (fresh install from source) with *both* 
FAQ and files. Other classes works fine.

I have a Yihaw user has Access content, Add Yihaw Objects, Add 
Yihaw Tops, Delete Objects, Manage Yihaw Objects, Manage 
Properties, Use Mailhost.

Adding FAQ or files makes an authorisation error and prompt for 
the login windows. 

+++ If i do an ESC, i have a traceback with :

"Unauthorized
"You are not authorized to access YihawFAQItem. 
"YihawFAQItem.createInObjectManager(REQUEST['id'],REQUEST))
"(Info: YihawFAQItem)

+++ If i give my manager login,it works fine.

Do i forgot some Permissions for the Yihaw user ?
Is it 2.1.6 related ?

2 - On your readme.txt you say that for having a control on 
Approval on news items we have to swich off "manage yihaw 
objects".

It seems that if I do this i'm unable to add any objects.
Am i right ?
If it's a problem, i'm thinking about just adding a ZopePermission 
for the Review in the Product/YihawDirectory, and test it in 
"send_notifications" and other needed methods instead of "manage 
yihaw objects".
Is it the right way to get a finer control ?

Thhaks in advance.
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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] Displaying all subobjects

2000-09-27 Thread Jeff Hoffman

On Wed, 27 Sep 2000 [EMAIL PROTECTED] wrote:

 Hallo Chris,
 thanks for the quick reply, but the method is displaying all the objects
 in the folder and I'd like to get only one metatype of
 objects(i.e.ZClass-cars)but for all levels.

Try creating a DTML Method called 'iterate' (tested):

  ul
  dtml-in objectItems
dtml-if "meta_type == 'DTML Method'"
  lidtml-var id
/dtml-if
dtml-if "meta_type == 'Folder'"
  lidtml-var id
  dtml-var "_['sequence-item'].iterate(_['sequence-item'], _)"
/dtml-if
  /dtml-in
  /ul

The first dtml-if, the one comparing for meta_type == 'DTML Method', is
the one where you specify what you're looking for. In this example, it's
looking for DTML Methods. Change it to 'cars', if that's what you want.

--Jeff

---
Jeff K. Hoffman   704.849.0731 x108
Chief Technology Officer  mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.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] Where the ZODB resides?

2000-09-27 Thread Ryan Booz

Thank you for the help yesterday some of you gave me with regards to the
Zope DB and how files are stored and such.  I obviously have A LOT of
reading to do.  But I'm excited about it.

The only other question I have before diving in to the point of no
return, is where Zope can be installed.  Currently I have it in the /usr
partition of my web server.  However, since this computer is only
intended to be a web server, most of the 12 GB HD is for "web space".
Where I'm putting accounts for school and such.  So, if the ZODB is
actually stored in the Zope directory, it probably won't be long before
it runs out of space.  Is it OK, to put it into the "web" partition so
that it has plenty of space to grow?  I only ask because I remember
reading somewhere that it shouldn't be placed where httpd can get to it
or something.

Thanks for the help again!

Ryan Booz
Belleville Mennonite School
Tech Coordinator


___
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] Baseclass:Folder or ObjectManager

2000-09-27 Thread brocken22

Hallo,
my ZClass has as base-class Objectmanager and not Folder.
When I try to add(let's call it PastaClass)programmatically PastaClass to
an instance of Pastaclass I get a mistake.Adding it with the
management-interface everythings o.k.Why??
Do I have to subclass folder??
Thanks. 

-- 
Sent through GMX FreeMail - http://www.gmx.net


___
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] Baseclass:Folder or ObjectManager

2000-09-27 Thread brocken22

This is the traceback I get:
When I add the zclass to a normal folder(even with the script)everything
is fine.??

Error Type: AttributeError
Error Value: seek

Traceback (innermost last):
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\Zop\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 171, in publish
  File C:\Zop\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: klassenbauer)
  File C:\Zop\lib\python\ZPublisher\Publish.py, line 112, in call_object
(Object: klassenbauer)
  File C:\Zop\lib\python\OFS\DTMLMethod.py, line 167, in __call__
(Object: klassenbauer)
  File C:\Zop\lib\python\DocumentTemplate\DT_String.py, line 502, in
__call__
(Object: klassenbauer)
  File C:\Zop\lib\python\DocumentTemplate\DT_With.py, line 146, in render
(Object: So)
  File C:\Zop\lib\python\DocumentTemplate\DT_With.py, line 146, in render
(Object: manage_addProduct['LWL'])
  File C:\Zop\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval
(Object: LwlSeite_add(_.None, _, NoRedir=1))
(Info: _)
  File string, line 0, in ?
  File C:\Zop\lib\python\OFS\DTMLMethod.py, line 163, in __call__
(Object: LwlSeite_add)
  File C:\Zop\lib\python\DocumentTemplate\DT_String.py, line 502, in
__call__
(Object: LwlSeite_add)
  File C:\Zop\lib\python\DocumentTemplate\DT_With.py, line 146, in render
(Object: LwlSeite.createInObjectManager(REQUEST['id'], REQUEST))
  File C:\Zop\lib\python\DocumentTemplate\DT_Util.py, line 337, in eval
(Object: manage_addImage('grafik',grafik))
(Info: grafik)
  File string, line 0, in ?
  File C:\Zop\lib\python\OFS\Image.py, line 338, in manage_addImage
(Object: CatalogAware)
  File C:\Zop\lib\python\OFS\Image.py, line 187, in manage_upload
(Object: grafik)
  File C:\Zop\lib\python\OFS\Image.py, line 220, in _read_data
(Object: grafik)
AttributeError: (see above)

-- 
Sent through GMX FreeMail - http://www.gmx.net


___
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] Set access rule

2000-09-27 Thread Mario Olimpio de Menezes

On Tue, 26 Sep 2000, Martijn Pieters wrote:

 
 Looking over your mail again, it seems that there is already an AccessRule
 registered, but it is of the wrong type. You can't remove it with the Add
 interface, because that triggers the error.

how could it happens? I did a fresh install of zope 2.2.1! I purged the
entire directory tree (/usr/lib/zope) before installing!

[]s,
Mario O.de Menezes"Many are the plans in a man's heart, but
IPEN-CNEN/SP is the Lord's purpose that prevails"
http://curiango.ipen.br/~mario Prov. 19.21
   http://www.revistalinux.com.br



___
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] webdav security

2000-09-27 Thread Júlio Dinis Silva

Hello all!

Lets say that anyone can do "cadaver www.myhost.com" and after that a "ls" 
listing my content. I know the user will see the objects processed, but just 
the fact that he can see my structure is bad for security.

How do I disable the webdav access, if possible?

Best Regards,
Júlio Dinis Silva
_
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] Icons?

2000-09-27 Thread César A. K. Grossmann

Hi

Where I can find some icons with the correct size to be used in Zope?
All the icons I can find have the size of 32x32 or something like it...

TIA
-- 
 +-+-+
 | César A. K. Grossmann   | Capacitação Solidária   |
 | [EMAIL PROTECTED]| http://www.uol.com.br/umminuto/ |
 | http://members.xoom.com/ckant/  | Clique e doe - é de graça   |
 +-+-+
   http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html
The nice thing about egotists is that they don't talk about other
people.
-- Lucille S. Harper

___
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] Calling objects with arguments in a sequence

2000-09-27 Thread Tres Seaver

seb [EMAIL PROTECTED] wrote:
 
 I'm using the Photo product, instances of which I can call, with
 arguments, like this:
 
 dtml-var "my_photo(display='thumbnail')"
 
 However, I can't work out how to pass arguments to each sequence item
 when iterating over a sequence.
 
 For example, I've tried:
 
 dtml-in objectValues(['Photo'])"
 dtml-var "_['sequence-item'](display='thumbnail')"
 /dtml-in
 
 (..not that I expect that to work :)
 
 And I get
 
 Error Type: TypeError
 Error Value: call of non-function (type string)
 
 I've tried various combinations of ways of calling the sequence-item,
 but they all return the same error.  Could anyone suggest how I should
 do this?  Thanks in advance...

You were very close -- the trick here is that 'objectValues' returns
real objects, not IDs.  Try this (untested)::

  dtml-in "objectValues( [ 'Photo' ] )"
   dtml-let photo=sequence-item !-- alias so we can use in expr! --
dtml-var "photo( display='thumbnail' )"
   /dtml-let
  /dtml-in

Tres.
-- 
===
Tres Seaver[EMAIL PROTECTED]
Digital Creations "Zope Dealers"   http://www.zope.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] Help

2000-09-27 Thread Michael A Ricciardi

Heya,

I'm a zope newbie. What I need to do if possible is reference a signed
jar  class file from one page.
How do I import the class  jar file so the page can access it? Or where
can I find some info on the subject.

Thanks
 Michael



___
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] Fwd: Re: [Zope] Why do session vars suddenly disappear?

2000-09-27 Thread Joachim Werner

Hello!

 Maybe it's because I don't understand the Zope mechanisms completely yet, 

I think so ;-)


 but I sometimes have a hard time preserving some variable state between one 
 and the other web page.

This is not possible without additional measures. How should Zope know that you
have visited that other web page before? HTTP is a stateless protocol that
doesn't per se keep track of your "session".

Fortunately there are a couple of so-called SESSION management tools to help you
(and in one of the next Zope versions session management will be integrated).

Check for products like HappySession or FS Session. They keep track of the
users (e.g. by using cookies) and make any variables you store to the session
namespace available for later use on other pages.

 This happens most often when I call one dtml-method from another one. If the 
 called dtml-method in its turn also calls some other dtml-method which needs 
 some dtml-var from the first template, almost inevitably a Zope error screen 
 appears with some 'unknown variable' or whatever message.

For this (getting REQUEST variables transported to another method than the one
that was called by the form) there is a procedure that works without sessions.
You can just set the variables in the REQUEST for the next page again:

E.g. you received a "Name" variable:

dtml-call "REQUEST.set('Name',Name)" stores the variable to the REQUEST.

 I cannot reproduce this fully yet, maybe in my next mail. The same misery 
 happens when opening a document with frames. The separate frames seem to 
 hold no knowledge of any previously set vars.

see above. For the web server the frameset is just a set of independent HTTP
requests. Only with session tracking by cookies, authentication (logins) or
special session URLs that hold a user-specific ID this can be handled.

 Last but not least with Netscape 6 PR2 there seems to be no session state 
 possible whatsoever, no matter what I tried. Even a simple form is not able 
 to pass on its parameters to the receiving dtml-method.



Hope this helped.

Joachim
 
 Help!
 
 _
 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 )
-- 
Iuveno - Smart Communication


Joachim Werner


_

Marie-Curie-Straße 6
85055 Ingolstadt

Tel.: +49 841/90 14-325 (Fax -322)
Mobil: +49 179/39 60 327
E-Mail: [EMAIL PROTECTED][EMAIL PROTECTED]
WWW: www.iuveno.de/www.iuveno-net.de
---

-- 
Iuveno - Smart Communication


Joachim Werner


_

Marie-Curie-Straße 6
85055 Ingolstadt

Tel.: +49 841/90 14-325 (Fax -322)
Mobil: +49 179/39 60 327
E-Mail: [EMAIL PROTECTED][EMAIL PROTECTED]
WWW: www.iuveno.de/www.iuveno-net.de



___
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] BTreeFolder (easy?) questions

2000-09-27 Thread Kapil Thangavelu

Dennis Nichols wrote:
 
 1. Can I blithely use BTreeFolder in place of Folder without loss of
 functionality?

afaik, yes. btreefolders subclass from folders and reimplement the
setOb, getOb methods of a folder and the __getattr__ method, ie they
have the same external interface.

 2. Can I successfully inherit from BTreeFolder in ZClasses (assuming that I
 uncomment registerBaseClass, which has been commented out in all
 BTreeFolder versions so far)?

can't think of any reasons why not, although you might might want to
consider composition so you can allow yourself room to transition based
on experience.

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 )




[Zope] Add ZClass with other than Manager

2000-09-27 Thread Hendrik Naumann

Hi Zope Users and Developers

If created a ZClass with I want to Add also with an other user than 
Manager. Let's say Owner. I tried a lot ... I gave (for testing 
reasons) Owner the same rights as Manager (in this special folder).
I set the Foo_addForm und Foo_add methods to proxy Manager.

I there the posibility to Add an ZClass without writing an new 
Add_formular like in 
http://www.zope.org/Members/mukhsein/job_board_howto ?

Thank verry much

Hendrik Naumnn

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