[Zope] backing up

2000-10-13 Thread matt

Is there a nice way to backup dtml documents and methods from a certain point
in the object tree onwards without having to save all the other objects too?

regards
Matt


___
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 regular expression help

2000-10-13 Thread Peter Bengtsson

[ this might be more of a Python question, but it's got a lot to do with the web and 
is to be used in Zope ]

I want to replace all occurences of email address's and URLs in a textstring, to mailto:%s">%s and %s.
Must admit that I am not an regex expert, and I wasn't able to find a "precompiled" 
regex for neither email nor URL.

Or is there anything available from the zope/python stack? 



___
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] Converting PHP3 -> Zope

2000-10-13 Thread andres

Take a look at my HOWTO:

www.zope.org/Members/Mamey/PHP

On Fri, Oct 13, 2000 at 09:47:17AM -0200, Mario Olimpio de Menezes wrote:
> 
> Hi,
> 
>   I'm planning to convert (migrate) a entire site from php3 to
> zope and i'm looking for suggestions, hints, etc on this.
>   It's a GPL management school system done in php3+postgresql, and
> any user must be authenticated against a database and his privileges
> are those from the postgresql. The system is in portuguese
> (www.univates.br/sagu) if someone is interested.
>   Does somebody have experience in such kind of migration
> (conversion) and can give me some "in advance" advice to avoid this or
> that or don't do this, etc, etc?
>   Any comments?
> 
> []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 )
> 
> 

-- 
--
Andres Corrada-Emmanuel   Email: [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 )




Re: [Zope] Tiny tables

2000-10-13 Thread andres

The problem with the TinyTable and TinyTablePlus products is that they use
the tokenize.py module which treats any field value as a possible Python expression.
Since ":" is a special token in Python, it gets interpreted as such. One
quick way to get around this is to quote your field value -

"criteria:tokens"

You may have to deal with the quotes later on, although I think they get
stripped after the value survives the tokenize.py module.

On Fri, Oct 13, 2000 at 08:08:34AM +1300, Graham Chiu wrote:
> 
> I would like to run some regular reports based upon
> sqlmethods.  The input to these are a mixture of normal
> values, and some tokenised values.
> 
> I tried storing these in tiny tables, but it doesn't seem
> that tiny tables allow one to store tokens.  If I specify
> the value as say, criteria:tokens, it gets changed to just
> criteria.
> 
> Any suggestions as to how to store the input as tokens for
> my reports?
> 
> --
> Graham Chiu
> 
> ___
> 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 )
> 
> 

-- 
--
Andres Corrada-Emmanuel   Email: [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] Creating Recursive Folders

2000-10-13 Thread Jason Spisak

Zopists,

I am trying to use DTML to create folders within folders for me 3 levels
deep.
Two levels works, but 3 won't.  For example:

This works:



 


 





But this:



 


 

  






Throws an unathorized no matter who I am. How can I get 3 levels of
recursion.  I tried using 'let' to stand for the object, with no luck.

BTW, I accidently sent the last post to dev, forgive me.

All my best,

Jason Spisak
[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 )




Re: [Zope] Fw: mysqldb

2000-10-13 Thread knight

Have you run ldconfig after editting the /etc/ld/so/conf file? Run
ldconfig -v | grep mysqlclient and see if the library appears. If so,
everything is all set.

Also try an ls -l /usr/local/mysql/lib/libmysql*.

Knight
[EMAIL PROTECTED]

On Fri, 13 Oct 2000, Dale Lance wrote:

> Hi,
> I am trying to build ZMySQLDA 1.20
> mysql has been built successfully on RedHat 7.0 and resides in
> /usr/local/mysql
> I have followed the instructions for editing /etc/ld/so/conf adding
> /usr/local/mysql/lib/mysql
> /usr/local/mysql/lib
> /usr/local/mysql
> to it. (just tomake sure)
> yet I still get the following error
> anyone know where mysqlclient is supposed to be?
> 
> Dale
> 
> 
> > gcc -shared  _mysqlmodule.o  -L/usr/local/mysql/lib -lmysqlclient -o
> > _mysqlmodule.so
> > /usr/bin/ld: cannot find -lmysqlclient
> > collect2: ld returned 1 exit status
> > make: *** [_mysqlmodule.so] Error 1
> > Traceback (innermost last):
> >   File "build.py", line 14, in ?
> > import MySQLdb
> >   File "MySQLdb.py", line 19, in ?
> > from _mysql import *
> > ImportError: No module named _mysql
> >
> >
> 
> 
> 
> ___
> 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] Non-existing Zope-Security!!!

2000-10-13 Thread knight

Also, consider adding an accessrule. This won't stop them from using
__no_before_traverse__ or _SUPPRESS_ACCESSRULE but it will make it
'appear' there is nothing more than the current level.

knight
[EMAIL PROTECTED]

On Fri, 13 Oct 2000, Tim Cook wrote:

> Stephan Goeldi wrote:
> > 
> > OK let me state that I don't think so (subject line). I had to choose this
> > subject, because it seems to me, that nobody was interested in my previous
> > attempts to get information about my problem. So here is my newbie (?)
> > question again:
> > 
> > I have the folders:
> > 
> > /www/folder1
> > /www/folder2
> > 
> > Apache redirects domain1 to folder1 and domain2 to folder2.
> > The manager of folder1 is able to browse to /www and see what folders exist
> > there. He shouldn't, because he only exists in the acl_user of /www/folder1.
> > He even can look into the folder /www/folder2 (but not into the objects).
> > 
> > Is it possible to disable the access for the folder1-manager above folder1?
> > It doesn't seem to me. If it really isn't possible, there is no security at
> > all for ISP uses of Zope. But I'm sure, there should be a possibility.
> > 
> > I even created a local role in /www/folder1 too. Even with the local role I
> > can browse /www and /www/folder2!
> > 
> > Any suggestions?
> 
> Create the user in the top level folder that they are allowed to
> see. 
> Not in the /www folder
> 
> HTH,
> -- Tim Cook --
> Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT
> Free Practice Management 
> 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 )
> 
> 


___
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 Acquisition & NameSpace Help Needed.....

2000-10-13 Thread Dieter Maurer

J Kinsley writes:
 > /FrameSet - DTML Method
 > .
 > XXX - How can I negate this?  IE. 

 >  
 > 
 > 
 > 
 > 
 > XXX - I do not think calling REQUEST.set() is the best way to
 > accomplish this.  What is a better way?
It is ineffective, as you do not use "topframe" later (in *this*
request).
 > 
 > 
 > 
 >  
 >  
 >  
 > 
 > .

 > XXX - I can not get this to work at all.  Topframe should be set or
 > true if the visitor arrived in the /Files Folder from the top level
 > frameset and /Files/ViewFrame will be loaded into the view_frame
 > target.
The frameset and its frames parts are fetched in *different* requests.
The "REQUEST.set" only affects the REQUEST object for the
frameset. The REQUEST objects for the frame components are
not affected.

You have two options:

 * a session product (there are some around on zope.org)
   it allows you to save information across web requests

 * passing the additional information through a query string
   key=value pair (do not forget to "url_quote_plus")

 > XXX - If this method is called from the top level FrameSet method,
 > how to I access dir and file from the original request?
see above.



Dieter

___
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] Authentication headers & firewall port redirection

2000-10-13 Thread Dieter Maurer

Roland C. Reumerman writes:
 > Now it seems that somehow the combination of Zope-generated authenticated 
 > headers and the firewall redirection rule do not match: does the header 
 > include URL information? That would imply it tries to access 
 > www.datadistilleries.com:8080/ddsn (Zope generated port) instead of plainly 
 > www.datadistilleries.com:80/ddsn (firewall listen port).
I know, that basic authentication is sent by the browser on a
domain basis. I do not know, where the domain information originates,
but it may well be Zope.

You may want to use Shanes excellent "tcpwatch" utility to
analyse what really happens between the server and
your browser.


Alternatively, you may have a look at SiteAccess.
This Zope product helps you handle these forms
of redirection. Even, if your authentication problem
could be solved without it, you will soon hit
other problems that require SiteAccess.
Thus, go directly for it.



Dieter

___
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] Variable name use in with statement

2000-10-13 Thread Dieter Maurer

Burchill, Scott B. writes:
 > 
 > I am finding myself doing the following and am sure
 > there is a simpler way to do this.
 > 
 > Any help would be greatly appreciated!  Thanks.
 > 
 > 
 >   
 > 
 >   
 > 
 >   
 > 
 >   
 > 
 >   
 > 
 >   
 > 
 >   
 > 
If you are sure, that only these values can occur in
"selection" (as I expect, as otherwise, it would not be a selection),
then you can use:




Dieter

___
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] Medusa Monitor

2000-10-13 Thread Dieter Maurer

Hung Jung Lu writes:
 > I know that, the stupid log file thingy. But you'll have to write an 
 > independent thread to display the log file (or peek the file manually each 
 > time), or implement some CString stuff to capture the file output (if that 
 > is possible).
As I understand it, the logging module can be customized to stuck
its log into a variable in Zope itself, viewable through the
web. You may search the list archive to find the corresponding post.
Maybe, you find it, too, via zope.org.

 > It'll be more fun if all this is already done, and the user can just tap 
 > into the monitor console screen (even remotely).
 > 
 > A good monitor should actually display hit information, memory usage, etc, 
 > and preferably with charts, all in real time. Too much to ask? I don't think 
 > so. :)
Of cause, you can ask for it. However, someone must implement it.


Dieter

___
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] Tiny tables

2000-10-13 Thread Dieter Maurer

Graham Chiu writes:
 > I tried storing these in tiny tables, but it doesn't seem
 > that tiny tables allow one to store tokens.  If I specify
 > the value as say, criteria:tokens, it gets changed to just
 > criteria.
Probably, This is a ZPublisher feature. It interpretes
":" suffixes of form variable and parameter names
to call for a type conversion of the value.

As far as I know, there is not escape possibility.
Can you change the ':' into a different character?


Dieter

___
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] and question

2000-10-13 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
 > ... get today's date into a dtml-var ...



Look at the "DateTime" documentation, if this does not give
you the needed date format.


Dieter

___
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] date comparison

2000-10-13 Thread michael angelo ruberto

hi,

i had tried something similar already without success. here is the error
your script caused:

DOH!


Zope Error
Zope has encountered an error while publishing this resource.

Error Type: TypeError
Error Value: unsubscriptable object

for some reason Zope just doesn't want to compare ZopeTime with
bobobase_modification_time. i started reading the readme i found for the
python DateTime method but it hasn't shed any light on the situation yet. i
will try doing it with javascript. i can write the modification dates of the
objects into arrays and do the comparisons using a scripting language that
works.

thanks

--

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kapil
Thangavelu
Sent: Wednesday, October 11, 2000 2:53 PM
To: michael angelo ruberto
Cc: [EMAIL PROTECTED]
Subject: Re: [Zope] date comparison


michael angelo ruberto wrote:
>
> i want to create an index page that displays whether or not a page has
been
> updated in the past 7 days or the past 20 days. however, i can't figure
out
> how to get the bobobase_modification_date to compare with ZopeTime. can
> someone give me a clue before i rush blindly down Zope's undocumented dark
> alleys.
>
> mike

untested




New

Somewhat New

Old




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 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] Thanks for the comments

2000-10-13 Thread Phil Harris

Rik,

I've upped both the Zope_book.lit and the Zope quick Reference.

The ZQR is not as readable as the zBook due to the formatting.  I'll get the
XML and reformat it to look a bit better.

hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: "Rik Hoekstra" <[EMAIL PROTECTED]>
To: "Phil Harris" <[EMAIL PROTECTED]>
Sent: Friday, October 13, 2000 8:25 AM
Subject: Re: [Zope] Thanks for the comments


>
>
> Phil Harris wrote:
> >
> > I'll stick onto my Zope members page
> >
> > http://zope.org/Members/philh
>
>
> except that the http://www.zope.org/Members/philh/zope_book.lit is dead
> ;-)
>
> Rik


___
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] Any examples of use of manage_addFile()?

2000-10-13 Thread Peter Bengtsson

Here you go.



This uploads a file in the current working directory.

thisID [ the id ] and thisTitle [ the Title ] are optional, and I don't know if you 
have to put '' double-apostrofies for the ID then.
You try.




- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 13, 2000 6:29 PM
Subject: [Zope] Any examples of use of manage_addFile()?


> I want to create a user-interface so that users can upload files to my Zope
> site.  I have done this with DTMLDocuments, however I don't quite understand how
> to get the file itself into the Zope site via ...
> 
> self.manage_addProduct['OFSP'].manage_addFile()
> 
> ..that is in Python.
> 
> I looked through the HOWTO's but didn't find anything.  Does someone have an
> example of a Form/DTMLMethod/Python script that does this sort of thing?
> 
> Thanks in advance,
> 
> 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 )
> 


___
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: Variable name use in with statement

2000-10-13 Thread Burchill, Scott B.

Ok, this worked :



  



Thanks for the direction, Jerry!

sbb

> -Original Message-
> From: Spicklemire, Jerry [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 13, 2000 2:58 PM
> To: '[EMAIL PROTECTED]'
> Cc: '[EMAIL PROTECTED]'
> Subject: Variable name use in with statement
> 
> 
> Scott Butchill wonders if:
> 
> "there is a simpler way to do this."
> 
> Not much simpler, but how about:
> 
> 
> 
>  
>   
>
> 
>
>   
>
> 
>
>   
>  
> 
> 

___
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] proxied proxies with Zope & Apache

2000-10-13 Thread Aaron Straup Cope

Hi,

I have Zope set up running with Apache/SSL using mod_proxy and the
SiteRoot product. Everything works fine.

The thing is, if I understand stuff correctly, all the requests to
https://hostname.com get handed off to Zope. I would like to be able use
the same hostname for plain old Apache-isms (cgi php etc) because the
users of the site shouldn't have to rememeber YA-hostname.

I would like to be able to do the following :

https://hostname/foo-->https://zope.hostname/foo -->http://hostname:8080/foo
https://hostname/bar-->/htdocs/bar

a) hostname:443
ProxyPass  /foo  https://zope.hostname/foo

b) zope.hostname:443
ProxyPass /   http:hostname:8080/

(where the SiteRoot in the Zope tree points to https://zope.hostname)

When I try to do this, regardless of whether I use mod_proxy or
mod_rewrite, Apache returns a 403 error :

"You don't have permission to access /documents on this server."

Should the Zope SiteRoot point to https://hostname instead of
https://zope.hostname?

I know that I could set up multiple ProxyPass statements (and
corresponding SiteRoot objects) in the Apache conf file, but I would
really prefer to set up a standalone Zope https setup (mostly for
administrative purposes) and then proxy those aspects of Zope that are
pubic automagically to the default Apache setup.

I am dreaming? The rewrite/proxy stuff is still like voodoo for me most
days so any advice or suggestions would be welcome. 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] Q: Advantages of storing ZODB in RDBMS

2000-10-13 Thread Spicklemire, Jerry

Daniel asked:

"Can anyone explain what the advantages are of using 
an RDBMS for Zope object storage over the standard file 
system storage?"

The folks I know that have asked for that feature have 
stated their concerns as being:

Keeping everything in a single large file is risky,
since if that file becomes corrupted, the entire 
Web Site will be down until recovery is complete.

The other side of that one goes something 
like, "As if we've never seen systems down
for RDBMS recovery".

Keeping data in a form that's more accessible by 
external systems is an advantage.

And the comeback for that is, "This stuff
is not tabular, it's Web Content, and Code". 
It's not like you can run queries against it,
and print reports.

Using an RDBMS that has online backup, and quick
recovery features is cheap insurance.

Cheap is relative. if you happen to have an
expensive RDBMS, maybe you can call using it
for one more applicaiotn "cheap".

Making a copy of data.fs is pretty easy, and
recovery is completed by copying over a 
damaged file. Not exactly rocket science.

Also, Tranalyzer makes it pretty painless to 
recover up to the last good update, which is 
usually more than you can get from a backup!

As you can see, I don't "get" the arguments, but that's what 
people say, and if they happen to be the people who can veto 
Zope, you try to find a way to meet their requirements.

Later,
Jerry S.



___
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] Access Control vs Publishing Protoco

2000-10-13 Thread Dieter Maurer

Seb Bacon writes:
 > OK, I think we're talking about the same thing now...but could you give me
 > an example of any object that would need to be traversable by Anonymous?
 > index_html, for example,  doesn't need to be traversable (I still prefer
 > 'listable').  Viewable TTW, yes, but that's all.
I do not agree with you:
  I should be able to list what I am able to view (in order to
  learn what I can view).
  
I think, more than 30 per cent of my objects are like "index_html".
They are designed to be viewed by Anonymous.

The others are not destined to be viewed but to be used as
components in viewed objects (like "standard_html_*").
The current Zope security requires that Anonymous has
view permissions for them, too. But this allows Anonymous to
view them in isolation which almost surely will give
strange results (exceptions, empty pages, etc.).

My primary concern (and maybe Chris') is, how can we prevent 
these objects to be viewed by Anonymous. If we succeed, then
Anonymous can do nothing at all with them and it is no longer
necessary to list them (for him).
Thus, a solution for this problem may also be a solution for
the other problem.

However, a "listable" permission would not solve the distinction
between directly viewable via the web and only indirectly viewable.


Dieter

___
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] Variable name use in with statement

2000-10-13 Thread Spicklemire, Jerry

Scott Butchill wonders if:

"there is a simpler way to do this."

Not much simpler, but how about:



 
  
   

   
  
   

   
  
 


___
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] Q: Advantages of storing ZODB in RDBMS

2000-10-13 Thread Daniel Dittmar

Can anyone explain what the advantages are of using an RDBMS for Zope
object storage over the standard file system storage?

Is it simply the convenience to have the data in one place (for backup
etc)? 

Does it scale better? In connection with ZEO?

I'm asking because I'm contemplating writing such a storage for a
specific RDBMS and I would like to know whether it's worth the trouble.

Daniel Dittmar

___
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 Debugging External Methods

2000-10-13 Thread Robert_J_Roberts

What are my options for debugging External Methods in Zope running on
Windows NT?

Is there ANY way to get the external method to run in a DOS window that I
can watch?

What little tricks/techniques have others use to make debugging external
methods easier/possible?

Thanks,

Robert J. Roberts
LMSI-SD&I
509.376.6343
[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 )




Re: [Zope] Ability to catalog "localFS objects" in the portal catalog

2000-10-13 Thread Jonothan Farr

There are some patches floating around to add cataloging to LocalFS objects. I
haven't gotten around to including them in the standard distro.

--jfarr

- Original Message -
From: "neeloy_saha" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, October 13, 2000 4:56 AM
Subject: [Zope] Ability to catalog "localFS objects" in the portal catalog


> Hi all,
>
> I have lots of old html/ documents that I want to publish through my zope
> portal. To ensure that I do not tweak html files I have used the LocalFS
> product, also I do not want to load the data.fs
>
> Now. I am running into search problems. How do i do a search the filesystem
> file? and also ensure that the search results come from both the filesystem
> files and the portal zcatalog.??
>
> Thx and regards.
>
> -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 )
>


___
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] LoginManager - with SQL?

2000-10-13 Thread Holger Lehmann

Well we use the UserDbFolder Product after havin the same/similar problems 
with the LoginManager :-)

- Holger

Am Fri, 13 Oct 2000 schrieben Sie:
> Has anyone been able to use LoginManager with a SQL db?  with or without
> encryption?
>
> I'm still baffled by this how-to:
> http://www.zope.org/Members/jok/SQL_based_LoginManager
>
> In this example, there are dtml-methods that do the work of the UserSource,
> but there is no retrieveItem?
>
> I would really love to get this working instead of having to revert back to
> older depreciated products.
>
> Thanks for any help!
>
> -e-
>
> From: "Aleksander Salwa" <[EMAIL PROTECTED]>
>
> > I remember I had some troubles trying to put methods rolesForUser,
> > domainsForUser, authenticateUser in UserSource class. They can be moved
> > to user class. I did so.
> > But your case is harder then mine, cause you don't have objects
> > representing users in ZODB. Maybe there are problems with retrieveItem
> > method ?
> > Maybe you should build wrapper class around your database
> > data - something like "pluggable brains" ?
> > I have no more ideas :(
>
> ___
> 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 )

-- 
---
catWorkX GmbH Hamburg
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 40 890 646-0
Fax: +49 40 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.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] dtml-with syntax question

2000-10-13 Thread Geoffrey L. Wright

Tim Cook writes:

 > I'm sure someone will correct me if I'm wrong. But I believe you
 > want:
 > 
 > 

Haven't tried it in my code yet, but thanks to your post I found the
section about _.getitem().  That'll come in handy all over the place,
so many thanks for the pointer!


//glw

___
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] Database Pack

2000-10-13 Thread Marcus Mendes

"Júlio Dinis Silva" wrote:
> 
> Hi all,
> 
> is there a way to do a pack to zodb without using the managment screens pack
> button?
> 
> Maybe a python script we could execute from the file system.
> 
> 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 )



Hello,

I'm using OracleStorage and I'd like know if can I pack my Database as I
do with data.fs. Are there any differences?

Thanks.

Marcus Mendes

___
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] Any examples of use of manage_addFile()?

2000-10-13 Thread complaw

I want to create a user-interface so that users can upload files to my Zope
site.  I have done this with DTMLDocuments, however I don't quite understand how
to get the file itself into the Zope site via ...

self.manage_addProduct['OFSP'].manage_addFile()

..that is in Python.

I looked through the HOWTO's but didn't find anything.  Does someone have an
example of a Form/DTMLMethod/Python script that does this sort of thing?

Thanks in advance,

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 )




[Zope] Ability to catalog "localFS objects" in the portal catalog

2000-10-13 Thread neeloy_saha

Hi all,

I have lots of old html/ documents that I want to publish through my zope
portal. To ensure that I do not tweak html files I have used the LocalFS
product, also I do not want to load the data.fs

Now. I am running into search problems. How do i do a search the filesystem
file? and also ensure that the search results come from both the filesystem
files and the portal zcatalog.??

Thx and regards.

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




[Zope] product.dat

2000-10-13 Thread Seb Bacon

In the Zope PTK there are a couple of products that have been packaged as
product.dats.
What format are these?  How do I do it?

Cheers
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] ZCatalog question. boolean and wildcards.

2000-10-13 Thread Hannes Grund

Im running Zope 2.2.2 on Linux 2.2.13.

When mixing boolean operators and wildcards '*' in queries within a Textindex
the 'AND' operator is replaced by 'OR'. 
Also, the possibility of constructing nested terms using brackets seems 
to be not supported (contrary to the chapter 'Searching and indexing' from the Zope 
book).
The setting is straightforward, several indexes (text-index, keyword-indexes)
are used indexing a about 5000 Zclasses.
Are there any patches to apply or what else can i do ?

Thanks in advance.

Hannes.

___
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] Variable name use in with statement

2000-10-13 Thread Burchill, Scott B.

I'm working on a simple auction site as a newbe challenge.  I am taking bids
on three static items, none will be added or removed.  I have a folder named
bid_records in which there is a folder for each item.  These item folders
have current bid information in properties and bid history in ZClass items
stored in them.

When I'm working with a specific auction item I have the name of the folder
in a REQUEST variable.  I am finding myself doing the following and am sure
there is a simpler way to do this.

Any help would be greatly appreciated!  Thanks.


  

  

  

  

  

  

  


--
Scott B. Burchill, MIS Manager
Ordway Center for the Performing Arts
345 Washington Street
St. Paul, MN  55102-1495

voice +1 (651) 282-3082
cell  +1 (651) 248-2713
pager +1 (612) 818-7600
fax   +1 (651) 224-1820
efax  +1 (508) 519-6133

http://www.ordway.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] dtml-sqltest and capital column names

2000-10-13 Thread Oliver Bleutgen

Talking to myself 
A slight correction to my patch so that
tablename.columname will be rendered as
to "tablename"."columnname".


146c146
< from string import find, split, join, atoi, atof
---
> from string import find, split, join, atoi, atof, replace
165,166c165,166
< if has_key('column'): self.column=args['column']
< else: self.column=self.__name__
---
> if has_key('column'): self.column='"'+replace(args['column'], '.', '"."')+'"'
> else: self.column='"'+replace(self.__name__, '.', '"."')+'"'


It would be nice if someone could comment whether this makes sense
for other dbs too.

cheers,
oliver


___
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] LoginManager - with SQL?

2000-10-13 Thread ed colmar


Has anyone been able to use LoginManager with a SQL db?  with or without
encryption?

I'm still baffled by this how-to:
http://www.zope.org/Members/jok/SQL_based_LoginManager

In this example, there are dtml-methods that do the work of the UserSource,
but there is no retrieveItem?

I would really love to get this working instead of having to revert back to
older depreciated products.

Thanks for any help!

-e-

From: "Aleksander Salwa" <[EMAIL PROTECTED]>
>
> I remember I had some troubles trying to put methods rolesForUser,
> domainsForUser, authenticateUser in UserSource class. They can be moved to
> user class. I did so.
> But your case is harder then mine, cause you don't have objects
> representing users in ZODB. Maybe there are problems with retrieveItem
> method ?
> Maybe you should build wrapper class around your database
> data - something like "pluggable brains" ?
> I have no more ideas :(



___
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] Authentication headers & firewall port redirection

2000-10-13 Thread Roland C. Reumerman

As stated in an email some time before I ran into some problems concerning 
accessing my password protected Zope site.

The situation:
* Zope 2.2.2 runs on a web server called www.datadistilleries.com on port 
8080
* the web site it offers is protected with Zope's own authentication 
mechanism
* the firewall redirects any HTTP requests for  
www.datadistilleries.com/ddsn (i.e., port 80) to 
www.datadistilleries.com:8080/ddsn.

However, one has to click 3 times on that Login link before the login dialog 
appears. Then it seems to build up a connection, but doesn't. I click on the 
login link again, and I'm in and everything works as expected.

Now it seems that somehow the combination of Zope-generated authenticated 
headers and the firewall redirection rule do not match: does the header 
include URL information? That would imply it tries to access 
www.datadistilleries.com:8080/ddsn (Zope generated port) instead of plainly 
www.datadistilleries.com:80/ddsn (firewall listen port).

BTW, it cannot run on port 80 because the default web server is already 
listening to that port.

Question: is it possible to somehow make Zope send HTTP authentication 
headers that have port 80 included instead of port 8080?

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




Re: [Zope] Fw: mysqldb

2000-10-13 Thread Bill Welch

In Debian, this library is in a separate packge.

On Fri, 13 Oct 2000, Dale Lance wrote:

> anyone know where mysqlclient is supposed to be?


___
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] How to see if two objects are the same (minor fix)

2000-10-13 Thread Tres Seaver

Ron Bickers <[EMAIL PROTECTED]> wrote:
> 
>  From my previous post, it looked like the parent was changing.  I had
> the first two lines swapped.  Fixed below.
> 
> 
> 
> I want to see if an object is the one aqcuired from the root, but I'm
> hitting walls.
> 
>   
>   
>   
> 
> This returns the following when in the root folder context:
> 
>   
>   
>   0
> 
> It returns the following in a folder where there is another myObject:
> 
>   
>   
>   0
> 
> What am I missing in the comparison?

You are seeing the result of a (mis)feature of acquisition:  the
objects you are comparing are actually AcquisitionImplicitWrappers
around the real 'myObject';  because the two wrappers are different,
and because the underlying object doesn't define a custom '__cmp__()'
method, the two wrappers are compared for identity (which is bogus).

I recently fixed this in response to a Collector issue:

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

You can get the patch from that page, or just wait for Zope 2.3
(RSN, I'm sure).

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 )




Re: [Zope] Non-existing Zope-Security!!!

2000-10-13 Thread Joachim Werner

> Create the user in the top level folder that they are allowed to
> see. 
> Not in the /www folder

That alone wouldn't do it if we are talking about "seeing the objects", e.g. by
calling the "objectIds" method in the root folder. You also have to switch off
the root folder's "Access contents information" rights for Anonymous and the
sub-tree managers. I think Zope security is really a bit weak here because the
standard settings are NOT blocking "Access contents information" and blocking
it makes programming a bit harder ...

BUT: You CAN configure it correctly if you want to.

Joachim

-- 
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] Fw: mysqldb

2000-10-13 Thread Oleg Broytmann

On Fri, 13 Oct 2000, Dale Lance wrote:
> anyone know where mysqlclient is supposed to be?
> 
> > gcc -shared  _mysqlmodule.o  -L/usr/local/mysql/lib -lmysqlclient -o
> > _mysqlmodule.so
> > /usr/bin/ld: cannot find -lmysqlclient

   It supposed to be in the /usr/local/mysql/lib/libmysqlclient.so. Check
to see it's there. It is usually symlink to libmysqlclient.so.6.23.13 or
such. If it is not - find it on your system and put the directory to -L
flag, e.g

gcc -shared _mysqlmodule.o -L/usr/local/lib/mysql -lmysqlclient -o _mysqlmodule.so

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] Fw: mysqldb

2000-10-13 Thread jensebaer


- Original Message -
From: "jensebaer" <[EMAIL PROTECTED]>
To: "Dale Lance" <[EMAIL PROTECTED]>
Sent: Friday, October 13, 2000 2:43 PM
Subject: Re: [Zope] Fw: mysqldb


> Hi Dale,
>
> put this in your setup or/and setup.in file under
> ../lib/python/Products/ZMySQLDA/MySQLdb-0.1.2/
>
> *shared*
> # Only one line should be uncommented.
> # Adjust -L and -I as necessary for your local configuration.
> # If you have dynamic MySQL libraries, they will need to be on your
> # LD_LIBRARY_PATH at runtime.
> _mysql _mysqlmodule.c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient
> # Uncomment for Windows
> #_mysql
> _mysqlmodule.c -L/mysql/lib/opt -I/mysql/include -lmysqlclient -lwsock32
>
>
> or may _mysql
>
_mysqlmodule.c -L/usr/local/lib/mysql -I/usr/local/include/mysql -lmysqlclie
> nt
>
> Jens
>
> - Original Message -
> From: "Dale Lance" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, October 13, 2000 1:59 PM
> Subject: [Zope] Fw: mysqldb
>
>
> > Hi,
> > I am trying to build ZMySQLDA 1.20
> > mysql has been built successfully on RedHat 7.0 and resides in
> > /usr/local/mysql
> > I have followed the instructions for editing /etc/ld/so/conf adding
> > /usr/local/mysql/lib/mysql
> > /usr/local/mysql/lib
> > /usr/local/mysql
> > to it. (just tomake sure)
> > yet I still get the following error
> > anyone know where mysqlclient is supposed to be?
> >
> > Dale
> >
> >
> > > gcc -shared  _mysqlmodule.o  -L/usr/local/mysql/lib -lmysqlclient -o
> > > _mysqlmodule.so
> > > /usr/bin/ld: cannot find -lmysqlclient
> > > collect2: ld returned 1 exit status
> > > make: *** [_mysqlmodule.so] Error 1
> > > Traceback (innermost last):
> > >   File "build.py", line 14, in ?
> > > import MySQLdb
> > >   File "MySQLdb.py", line 19, in ?
> > > from _mysql import *
> > > ImportError: No module named _mysql
> > >
> > >
> >
> >
> >
> > ___
> > 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] Fw: mysqldb

2000-10-13 Thread Dale Lance

Hi,
I am trying to build ZMySQLDA 1.20
mysql has been built successfully on RedHat 7.0 and resides in
/usr/local/mysql
I have followed the instructions for editing /etc/ld/so/conf adding
/usr/local/mysql/lib/mysql
/usr/local/mysql/lib
/usr/local/mysql
to it. (just tomake sure)
yet I still get the following error
anyone know where mysqlclient is supposed to be?

Dale


> gcc -shared  _mysqlmodule.o  -L/usr/local/mysql/lib -lmysqlclient -o
> _mysqlmodule.so
> /usr/bin/ld: cannot find -lmysqlclient
> collect2: ld returned 1 exit status
> make: *** [_mysqlmodule.so] Error 1
> Traceback (innermost last):
>   File "build.py", line 14, in ?
> import MySQLdb
>   File "MySQLdb.py", line 19, in ?
> from _mysql import *
> ImportError: No module named _mysql
>
>



___
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] Converting PHP3 -> Zope

2000-10-13 Thread Mario Olimpio de Menezes


Hi,

I'm planning to convert (migrate) a entire site from php3 to
zope and i'm looking for suggestions, hints, etc on this.
It's a GPL management school system done in php3+postgresql, and
any user must be authenticated against a database and his privileges
are those from the postgresql. The system is in portuguese
(www.univates.br/sagu) if someone is interested.
Does somebody have experience in such kind of migration
(conversion) and can give me some "in advance" advice to avoid this or
that or don't do this, etc, etc?
Any comments?

[]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 )




Re: [Zope] Non-existing Zope-Security!!!

2000-10-13 Thread Tim Cook

Stephan Goeldi wrote:
> 
> OK let me state that I don't think so (subject line). I had to choose this
> subject, because it seems to me, that nobody was interested in my previous
> attempts to get information about my problem. So here is my newbie (?)
> question again:
> 
> I have the folders:
> 
> /www/folder1
> /www/folder2
> 
> Apache redirects domain1 to folder1 and domain2 to folder2.
> The manager of folder1 is able to browse to /www and see what folders exist
> there. He shouldn't, because he only exists in the acl_user of /www/folder1.
> He even can look into the folder /www/folder2 (but not into the objects).
> 
> Is it possible to disable the access for the folder1-manager above folder1?
> It doesn't seem to me. If it really isn't possible, there is no security at
> all for ISP uses of Zope. But I'm sure, there should be a possibility.
> 
> I even created a local role in /www/folder1 too. Even with the local role I
> can browse /www and /www/folder2!
> 
> Any suggestions?

Create the user in the top level folder that they are allowed to
see. 
Not in the /www folder

HTH,
-- Tim Cook --
Cook Information Systems | Office: (901) 884-4126 8am-5pm CDT
Free Practice Management 
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 )




[Zope] DTML Acquisition & NameSpace Help Needed.....

2000-10-13 Thread J Kinsley

I am building a framed site using Zope and I am trying to get
functionality that after hours of reading documentation I am
beginning to think is not possible, but since what I have read is so
obscure I have decided to post a message before giving up.

The code examples below *DO NOT* work, but are being used in an
attempt to illustrate what I am attempting to do as I thought it
would work.  After reading documentation for the last several hours I
am now more confused then when I started.

Given the following URL's:

http://./Files/?dir=/foo/bar/&file=baz.html
http://./?section=/Files&dir=/foo/bar/&file=baz.html

And the Following 


/index_html - DTML Method





/FrameSet - DTML Method

XXX - How can I negate this?  IE. 
 




XXX - I do not think calling REQUEST.set() is the best way to
accomplish this.  What is a better way?



 
 
 





/ViewFrame - DTML Method


 
 





XXX - I can not get this to work at all.  Topframe should be set or
true if the visitor arrived in the /Files Folder from the top level
frameset and /Files/ViewFrame will be loaded into the view_frame
target.  If the visitor came directly to /Files and topframe is unset
or false, then I want to redirect them back to the toplevel /FrameSet
to load the top frames then display the /Files/ViewFrame in the
view_frame target and pass along dir and file from the URL query
string.

/Files/Index - DTML Method










XXX - If this method is called from the top level FrameSet method,
how to I access dir and file from the original request?

/Files/ViewFrame - DTML Method


 
 
 




Over the last few days I have tried all sorts of things to make this
work, but all attempts have failed.  I am sure there is a very simple
solution that one of you Zope Gurus could quickly explain.  If you
are going to respond with RTFM, the please cite specific references
in the manual. ;-)

Thanks in advance.

Regards,
Jarrod Kinsley




___
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] Non-existing Zope-Security!!!

2000-10-13 Thread Stephan Goeldi

OK let me state that I don't think so (subject line). I had to choose this 
subject, because it seems to me, that nobody was interested in my previous 
attempts to get information about my problem. So here is my newbie (?) 
question again:

I have the folders:

/www/folder1
/www/folder2

Apache redirects domain1 to folder1 and domain2 to folder2.
The manager of folder1 is able to browse to /www and see what folders exist 
there. He shouldn't, because he only exists in the acl_user of /www/folder1. 
He even can look into the folder /www/folder2 (but not into the objects).

Is it possible to disable the access for the folder1-manager above folder1? 
It doesn't seem to me. If it really isn't possible, there is no security at 
all for ISP uses of Zope. But I'm sure, there should be a possibility.

I even created a local role in /www/folder1 too. Even with the local role I 
can browse /www and /www/folder2!

Any suggestions?

TIA
-goe-

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




Re: [Zope] and question

2000-10-13 Thread Paul Zwarts

Hi there,

I've been having problems with DateTimes as well. My colleague and I (using Zope
201) found a problem with the module that causes any dbase timestamp to be rendered
to a non-standard UNIX time that has an annoying DST appended if in the Daylight
savings time zone, thus leaving the timestamp as useless when performing expressions
against it.

In our situation we used a scan from pos 0-29 to trap the proper timestamp syntax.
Then from there, I use an expression as follows:

   
  
  
 
 

 
  
   

This is just a small part of the code, and im sure there is a better way, but  hey,
it works.

Dont know if this helps you, but perhaps will give you an idea

Cheers,

--
Paz
Oratrix Development BV
http://www.oratrix.com
GRiNS SMIL Editor
-



___
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] Access Control vs Publishing Protoco

2000-10-13 Thread Seb Bacon

Oh dear, I fear that this is going round and round and round in circles a
bit, and that no-one else is following it, but here goes anyway :>

> The "traversable" permission would be an additional requirement
> to view any object. Its main purpose would be to distinguish
> between "use via Web" and "use in DTML only".
> "standard_html_*" would be usable in DTML but could not be viewed
> via the web. They would not give "traversable" permission to
> Anonymous.
> Many DTML objects, however, would need to give the "traversable"
> permission even to Anonymous in order to be useful.

OK, I think we're talking about the same thing now...but could you give me
an example of any object that would need to be traversable by Anonymous?
index_html, for example,  doesn't need to be traversable (I still prefer
'listable').  Viewable TTW, yes, but that's all.

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] Zope nominated for Webtechniques Web Tools Awards

2000-10-13 Thread Martijn Pieters

Zope has been nominated for the Webtechniques Webtool Awards, and the
pollboxes are open!

Go vote by putting you email address (or any email address you like ;)) at
the end of the following URL:

  http://www.webreview2.com/cgi-bin/poll/ballot_gen.pl?<[EMAIL PROTECTED]>

So, I voted at the URL ending in ballot_gen.pl?[EMAIL PROTECTED] Every
email address can vote once.

Go give Zope a great showing!

-- 
Martijn Pieters
| Software Engineer  mailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   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 )