Re: [Zope] using a dictionary returned from an external method

2000-10-24 Thread Ender

Matthew Wilbert wrote:
> 
> I have some DTML that needs to call an external method that returns a dictionary.  I 
>don't have any problem referencing the resulting dictionary by doing something like
> 
> 
> 

> .
>  .
> 
> However, I need to do this for several keys, and I don't
> want to call externalMethod several times.  Is there a
> way to assign the method result to another variable, or
> is it possible that DTML is smart enough not to do the
> call multiple times?  Or is there some other approach
> that I am not even thinking of?





i know dtml will cache results on the same method call in a single
request which generally makes it efficient to do stuff like




cheap skate;)


and i'm guessing the same should apply to external methods.

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] LoginManager 0.8.8b1 examples/suggestions?

2000-10-24 Thread Morten W. Petersen

[Jason Byron]

| Does anyone have any LoginManager 0.8.8b1 example 
| code?  It almost looks like you can extend the system
| using plugins, but I don't know how that's done.
| Anyone else have luck doing this?  If so then do you
| have any examples/suggestions?

Yes.  After adding your LoginManager instance, you should add four
methods of some sort within the UserSource object.

The four methods are:

userAuthenticate
userExists
userRoles
userDomains


Here's the External methods I used just to make the logins work; you'll
have to implement them to fit your system:

def userAuthenticate(self, REQUEST, username, password):

if username == 'morten' and password == 'morten':

return 1

else:

return 0


def userExists(self, REQUEST, username):

return 1


def userRoles(self, REQUEST, username):

return 'Manager', 'Owner'


def userDomains(self, REQUEST, username):

return []


| All I want is a simple ZODB/cookie based system, but I
| can't get the Generic User Source to work.

HTH then.  =)

-Morten

___
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,I have a question.:(

2000-10-24 Thread Dylan Chi



I have a question about Squishdot.
Error:
Traceback (innermost last):  File 
/wwwnodes/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in 
publish_module  File 
/wwwnodes/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in 
publish  File 
/wwwnodes/zope/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, in 
zpublisher_exception_hook  File 
/wwwnodes/zope/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 169, in 
publish  File 
/wwwnodes/zope/Zope-2.1.6-src/lib/python/ZODB/Transaction.py, line 237, in 
commit  File 
/wwwnodes/zope/Zope-2.1.6-src/lib/python/ZODB/Connection.py, line 327, in 
commit    (Info: (('Products.Squishdot.Squishdot', 
'Article'), '\000\000\000\000\000\000\242\032', ''))  File 
/wwwnodes/zope/Zope-2.1.6-src/lib/python/ZODB/FileStorage.py, line 632, in 
store    (Object: 
/wwwnodes/zope/Zope-2.1.6-src/var/Data.fs)OverflowError: (see 
above)


[Zope] limiting tree

2000-10-24 Thread Bak @ kedai

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

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

-- 

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

Just bring it!


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




[Zope] using a dictionary returned from an external method

2000-10-24 Thread Matthew Wilbert

I have some DTML that needs to call an external method that returns a dictionary.  I 
don't have any problem referencing the resulting dictionary by doing something like



 .
.
 .

However, I need to do this for several keys, and I don't
want to call externalMethod several times.  Is there a
way to assign the method result to another variable, or
is it possible that DTML is smart enough not to do the
call multiple times?  Or is there some other approach
that I am not even thinking of?

Any suggestions will be greatly appreciated.

Thanks,

Matt Wilbert
[EMAIL PROTECTED]

___
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


___
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] LoginManager 0.8.8b1 examples/suggestions?

2000-10-24 Thread Jason Byron

Does anyone have any LoginManager 0.8.8b1 example 
code?  It almost looks like you can extend the system
using plugins, but I don't know how that's done.
Anyone else have luck doing this?  If so then do you
have any examples/suggestions?

All I want is a simple ZODB/cookie based system, but I
can't get the Generic User Source to work.

Thanks in advance.

__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.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] The Great Python (and Perl) Method Renaming Poll

2000-10-24 Thread Michael Bernstein

Michel Pelletier wrote:
> 
> We will be conducting a community poll to decide what to call Python
> (Perl, insert your language here) Methods.
> [snip]
> So, before the poll, we are calling for nominiations from the
> community.  Please send me an email containing one or more candidate
> names.  These names will be added to the list.  No pre-screening will be
> done, so please exercise some discretion if your favorite name is more
> tounge-in-cheek than practical (you never know what the masses will
> decide though!).
> 
> Later this week, I will create a web poll where you can vote for your
> favorite.

I would like to suggest that instead of a plurality vote, we
use a 'Borda count', also known as an 'preferential' or
'single-transferable' ballot. Those of you who followed the
recent ICANN election should be familiar with it.

It works like this:

All votes consist of ranking the availble choices according
to desireability (if there are six choices, you would number
them 1-6, each choice must be uniquely ranked, not all
choices must be ranked).

All voters first choices are tallied. If, at this point, one
choice has achieved over 50% of the vote, the vote is over.

If no choice has achieved 50%, the choice with the fewest
votes is removed, and the voters who voted for that choice
have their second choice counted and distributed. If at this
point one of the choices acheives 50%...etc. Lather, Rinse,
Repeat.

This method has the advantage of better representing peoples
true choice, since no one is tempted to vote for a choice
that they simply disapprove of less, because 'otherwise
they're throwing away their vote'.

In a five-way race for example, a plurality may consist of
25% of the vote, thereby ensuring that 75% of the voters
will be pissed off. With a Borda count though, the winner
could be everyone's second-favorite choice, thus better
representing what people want.

There's a few other wrinkles to this, such as situatuions
where not all choices have been ranked. If a voter has only
ranked four choices and a fifth runoff phase is neccessary,
their ballot is discarded, and the 50% mark is recalculated
for that phase to account for the reduced number of ballots.

Cheers,

Michael Bernstein.

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




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

2000-10-24 Thread Bak @ kedai

On Wednesday 25 October 2000 09:58, Patrick Koetter wrote:
> Hi Zopistas,
>
> I want to include the owner (from acl_users) of a page in my HTML-output.
>
> Unfortunately I'm not able to produce what I want.
>
> Any hints?
>
> Thanks,
>
> p@rick
>

i would think that 

is what you want

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

-- 

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

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


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




Re: [Zope]

2000-10-24 Thread Phil Harris

How about (sort of tested):



  

  ignore the error or otherwise report it


hth

Phil
- Original Message -
From: "Jens Grewen" <[EMAIL PROTECTED]>
To: "kosh" <[EMAIL PROTECTED]>
Cc: "Zope Maillist" <[EMAIL PROTECTED]>
Sent: Wednesday, October 25, 2000 2:14 AM
Subject: Re: [Zope] 


| Hi,
|
| I am not quite sure if this is what you want but may this helps
|
| 
|   
|  do something
|   
| 
|
| This is not resolving the URL.
| If you found a solution let me know.
|
| Jens Grewen
|
|
| - Original Message -
| From: "kosh" <[EMAIL PROTECTED]>
| To: <[EMAIL PROTECTED]>
| Sent: Tuesday, October 24, 2000 10:56 PM
| Subject: [Zope] 
|
|
| > What would be the correct dtml-if contrstruct for this behavior?
| >
| > I want to check and see if zope can resolve a url to a valid object.
| >
| > Ie does http://foo.com/bar/foo get you to a valid page or is it not
| > found.
| >
| > I need something like http://foo.com/bar/foo> that way I can
know
| > when to rewrite the url based on zope finding the object or not.
| >
| > Thanks
| > Kosh
| >
| >
| > ___
| > 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 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-var owner? author? editor?

2000-10-24 Thread Patrick Koetter

Hi Zopistas,

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

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

Any hints?

Thanks,

p@rick

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

2000-10-24 Thread Jens Grewen

Hi,

I am not quite sure if this is what you want but may this helps


  
 do something
  


This is not resolving the URL.
If you found a solution let me know.

Jens Grewen


- Original Message -
From: "kosh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 24, 2000 10:56 PM
Subject: [Zope] 


> What would be the correct dtml-if contrstruct for this behavior?
>
> I want to check and see if zope can resolve a url to a valid object.
>
> Ie does http://foo.com/bar/foo get you to a valid page or is it not
> found.
>
> I need something like http://foo.com/bar/foo> that way I can know
> when to rewrite the url based on zope finding the object or not.
>
> Thanks
> Kosh
>
>
> ___
> 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] SuperUser cannot own ;-)

2000-10-24 Thread Bill Anderson

Max M wrote:
> 
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
> Withers
> 
> > I suppose you've just installed Zope and you're logged in as "Superuser"
> > And that's the problem.
> > The superuser cannot own folder, files etc.
> 
> ...and I'd still like to know why ;-)
> 
> Well I for one have accidently removed view privilliges for administrators
> in a folder, at that time I was very happy to be able to log in as super and
> restore those proviliges, or else I would have had to remove the directory
> and start fresh.

And you can still do that. You just can't _create_ new items as
'bootstrap user'.

> 
> Perhaps it is also to avoid trojan horses being executed by super.

:^)=

--
E PLURIBUS LINUX


___
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] Modifiable local variables

2000-10-24 Thread Ender

Sean McGrath wrote:
> 
> Hello all,
> 
> I am trying to use the DTML engine outside of Zope, and would like to be
> able to create local variables in my DTML documents. Because I have no
> access to Zope, I can't do REQUEST.set, nor can I use the method shown on
> http://www.zope.org/Members/Duncan/LocalVars. So, the questions is, what is
> the recommended way to create modifiable variables using DTML, without
> using Zope?
> 
> Thanks in advance


i've used dtml outside of zope, but i tend to pass it most of the
variables it needs and let it do the rendering. 

you should be able to pass an empty dict to the dtml as the mapping
arguement and set variables inside of that, although you might have to
wrap it with attributing setting methods so that it can be used from
dtml. or you can use a dtml-let clause to create the proper variables.






long live the pyxies:)

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 )




[Zope] AW: [Zope] newbie inquiry about zope

2000-10-24 Thread Patrick Koetter

Phew Aharon,

many questions...
Did you take a closer look at zope.org? I think many questions are answered
within the site. But let's get going...

>1) Could Zope help me keep track of who is reading what and match people up
for discussion?

You could track down people with cookies :-( or sessions :-)
Both can be achieved with zope. I'd go for sessions - though I am not a
programmer. From what I know and what I think your idea is aiming to
sessions would help you to set up framework powerfull enough to reach your
goals.
Besides how to you deal with people who won't allow cookies?

Then you could analyse the informatios gathered within the sessions and
provide a "People who read this, also read that" ;-)

>2) Could Zope help me personalize the fonts and other display settings for
each user? How
>about letting users create their own bookmarks within the texts?

As for the bookmarks I don't know, but the fonts etc. could be done with
'skins'. I've seen a project on zope.org that promoted such functions.
See also 



>3) Could Zope help me manage user created content and the relations between
content and its
>creators?

yupp.

>4) Could Zope handle right to left text and non-Latin character sets?

Is that a job for zope? To me this seems to be a Browsers job e.g.

in the  section of the HTML that is sent to the Browser. Or am I
missing something?


>5) What are the advantages/disadvantages to developing this site with Zope
as opposed to
>MySQL and PHP?

I can't comment on that, since I am not a programmer. For me it's a
elaborated framework that provides functions needed for managing content
e.g. versions, authentification ;-) etc.
Get a closer insight at 
AFAIK you'd have to develop these basic functions from scratch if you use
plain MySQL and PHP.


>6) Could Zope help me make the same content available to ordinary web
browsers and wireless
>devices in different formats?

Are you after WAP? There is code that does that...


and then there's XML... :-)

>7) Since we are going to be having discussion, we might want to stream
voice between users
>and also stream pre-recorded voice. Any support for that?

Hmmm, do you mean something like 'Zope Streaming Server' AFAIK I haven't
read about that...
But why stream this from zope? There are other servers that are spezialised
on that. I'd use a combination; zope as a frontend to provide the paths and
the specific information bound to the stream

>8) Where can I find speed benchmark information about Zope?

What is it that you want to measure?
Anyway: There was a benchmark a while ago in the news. I couldn't find it
immediately which doesn't mean it's not there...


>9) Where can I find virtual server and collocation hosting for my site if I
want to use zope,
>or do I have to administrate my own server?



But let's think of your projects requirements first.
What would you need to get the baby of the ground?

Developing
1. If you use zope you will need zope :-|
2. You will have to develop a few Zope Products by yourself, either to
implement features that aren't there yet or to customize and mingle other
Products. That means you will need to have shell access to the machine you
build your site on.
3. You will need at least ftp-access to your zope-dir in order to implement
the new products. If you use only one machine, which I do not recommend, you
are done with 2.)
4. ZODB (the Database zope runs on...) is a good database. Still many
developers have their reasons to use a second DB mostly a relational
Database e.g. Oracle or MySQL

Serving
1. If your site hits the net and is a hit, you'll probably need: bandwidth
and response time are needed. Reasonably for serving that starts from 2Mbps
upwards.
2. If you go for ISPs they provide both: bandwitdh and short response times.
Furthermore the offer features as backup (who does it regularly???) and
probably better firewalling that you can do at your own. If you decide to
take care of that by yourself, you will have to take care not only of the
development but also of the above mentioned features plus a few more.
Also if you want to stream media you'd be off good if you have a streaming
proxy in order to take load of the machine that runs the server, when the
going gets tough. Streaming proxys aren't cheap. ISPs can provide you with a
solution that will serve not only your domain but also others. That makes it
a lot cheaper and again you won't have to deal with the Streaming Proxy.

So lets see, what I would do:
I'd get two machines (bid + medium) that run the same OS; preferably Linux
since it's cheap and there are enough people out there by now who really now
their way around that OS. OTOH you'd should decide where to go first and
decide on the ressources after that.
I'd get an ISP that houses my big machine. Use the other machine to de

Re: [Zope] Calling objects by name

2000-10-24 Thread Phil Harris

Danny,

Try something like



or



hth

Phil

- Original Message - 
From: "Danny William Adair" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 24, 2000 6:50 PM
Subject: [Zope] Calling objects by name


| How can I render an object in DTML if I have its id as a string?
| I would like to construct its name as a string and then call the object
| variable by its name.
| (Meaning I will have to make sure such an object exists)
| 
| tia,
| 
| CU+Prost,
| 
| Danny
| 
| 
| ___
| 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-in returning null

2000-10-24 Thread Phil Harris

Diego,

Do you mean that you want at least one input tag appearing at all times?

If so, try this:


  ">

  ">


hth

Phil


- Original Message - 
From: "Diego Rodrigo Neufert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 24, 2000 4:24 PM
Subject: [Zope] dtml-in returning null


| Hi...
| 
| I want to do something like this...
| 
| 
| ">
| 
|  But, if InMethod return nothing it display this  tag one time
| 
| There's a way to do that??
| 
| Thanks
| -- 
| ---
| Diego Rodrigo Neufert
| -webmaster
| ---
| (Magic Web Design)
| (email) ([EMAIL PROTECTED])
| (curitiba) (pr)
| 
| ___
| 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] redirect

2000-10-24 Thread Aleksander Salwa


On Tue, 24 Oct 2000, Joaldo Junior wrote:

> how to for that function REDIRECT understand a variable.
> 
> ex.
> 
> http://zope.org/index.htm?cod= test>')">

DTML tags can't be nested.
Try:
http://zope.org/index.htm?cod='+test)">

[EMAIL PROTECTED]

/--\
| `long long long' is too long for GCC |
\--/



___
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] problem(100) ZServer Computing local hostname on windows install

2000-10-24 Thread Richard Lanham



when I try to start zope on windows machine i 
get:problem(100) ZServer Computing local hostname
 
then it says:ZServer Medusa (V1.16.4.3) started 
at... timestamp... hostname: 
dsl1254-096...isp.net Port:8080
 
then the FTP server 
starts:authorizer:nonehostname: rlhomeport:8021
 
the PCGI server starts:inet socket port: 
8090
 
Monitor Server starts on port 8099
 
The dos window seems to hang after 
this.
 
when I start a browser and goto http://localhost:8099/manage I get an 
number, apparently an error:972402587.52
 
back in the dos window, I see:ZServer 
uncaptured python exception, closing channel  
: Get/ manag 
[c:\programfiles/home/zserver/medusa/asyncore.py|75] 
[c:\programfiles/home/zserver/medusa/asyncore.py|handle_read_event|327] 
[c:\programfiles/home/zserver/medusa/asynchat.py|handle_read|110] 
[c:\programfiles/home/zserver/pcgi.server.py|found_terminator|146]>


[Zope] Modifiable local variables

2000-10-24 Thread Sean McGrath

Hello all,

I am trying to use the DTML engine outside of Zope, and would like to be 
able to create local variables in my DTML documents. Because I have no 
access to Zope, I can't do REQUEST.set, nor can I use the method shown on 
http://www.zope.org/Members/Duncan/LocalVars. So, the questions is, what is 
the recommended way to create modifiable variables using DTML, without 
using Zope?

Thanks in advance




___
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] newbie inquiry about zope

2000-10-24 Thread Andy McKay

[..]
My questions are:
1) Could Zope help me keep track of who is reading what and match people up
for discussion?
[..]
4) Could Zope handle right to left text and non-Latin character sets?

Think of it this way: Zope can do anything you can program in python.
Anything you cant program, have a look at Zope.org to see if somebody has
done it before.

5) What are the advantages/disadvantages to developing this site with Zope
as opposed to MySQL and PHP?

You can use MySQL as a relational database and it makes sense for large
amounts of content in certain formats.

6) Could Zope help me make the same content available to ordinary web
browsers and wireless devices in different formats?
7) Since we are going to be having discussion, we might want to stream voice
between users and also stream pre-recorded voice. Any support for that?

See my first answer.

8) Where can I find speed benchmark information about Zope?
9) Where can I find virtual server and collocation hosting for my site if I
want to use zope, or do I have to administrate my own server?



___
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 by name

2000-10-24 Thread Danny William Adair

How can I render an object in DTML if I have its id as a string?
I would like to construct its name as a string and then call the object
variable by its name.
(Meaning I will have to make sure such an object exists)

tia,

CU+Prost,

Danny


___
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] newbie inquiry about zope

2000-10-24 Thread Aharon



I have just started looking at zope for the site I 
am developing. I was wondering if anyone could tell me whether it sounds like an 
appropriate tool to use.
 
The basic idea of my site is to be a sort of 
multi-user-dimension for text. Meaning, we'll have various books available in a 
database, and people can log on and read a chapter or a whole book. The 
innovative part is that we will track which users are reading which texts, and 
let people interact with others reading the same text as them. We will also 
provide some other features, including user customization of fonts and colors, 
and the ability for users to write new texts to be included in the content 
library. People will be able to read, write, and discuss with each other. To 
enable serious literary analysis of diverse documents, we will have a number of 
text-parsing tools available to readers. One other important thing to mention is 
that we will have a lot of text in non-Latin character sets, including right to 
left languages.
 
My questions are:
1) Could Zope help me keep track of who 
is reading what and match people up for discussion?
2) Could Zope help me personalize the fonts and 
other display settings for each user? How about letting users create their own 
bookmarks within the texts?
3) Could Zope help me manage user created content 
and the relations between content and its creators?
4) Could Zope handle right to left text and 
non-Latin character sets?
5) What are the advantages/disadvantages to 
developing this site with Zope as opposed to MySQL and PHP?
6) Could Zope help me make the same content 
available to ordinary web browsers and wireless devices in different 
formats?
7) Since we are going to be having discussion, we 
might want to stream voice between users and also stream pre-recorded voice. Any 
support for that?
8) Where can I find speed benchmark information 
about Zope?
9) Where can I find virtual server and collocation 
hosting for my site if I want to use zope, or do I have to administrate my own 
server?
 
Any input about any of these questions would be 
greatly appreciated. I apologize for my ignorance.
 
Thanks,
Aharon


[Zope] Cookie problem with IE5, 5.5, ...

2000-10-24 Thread Menard . Jean-Francois

> I developped a toggle button to let the users hide/show the menus.
> 
> I use a cookie to store the current value.  The code I use is:
> 
> 
>
> 
>
> 
> 
> 
> 
> in a dtml method.  It works great in netscape, but not in IE 4, 5 or 5.5.
> Why???
> 
> I know I could use a session product, but I'm worried about session
> expiration.  Could I set one of these products to expirate ***only*** when
> the browser is closed?
> 
> And, why a session variable doesn't exist?  It's the ONLY thing I miss
> from ASP...
> 
> Jean-François Ménard
> Intranet DPAS
> Pratiques d'affaires et orientations
> *(514) 840-3000  poste 3939
> *  (514) 840-5585
> *  [EMAIL PROTECTED]
> * 855 Ste-Catherine est, 6e étage
>   Montréal, Qué. H2L 4P5
> 

___
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] Don't think so

2000-10-24 Thread mindlace

Chris Withers wrote:
> 
> Paul Winkler wrote:
> >
> > Hi,
> >
> > Has anyone run up against a limitation on the number of
> > users that can be in
> > one acl_users folder? Either a hard limit or a practical
> > limit?
> 
> IIRC, zope.org's acl_users has about 11,000 people in it without too
> many problems...

We've found that it needed to become a btree folder. Half because btrees
optimize some things and half because the UI for btrees cut the
management page from 3mb to 300k.

~ethan

___
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] normal result with acquisition?

2000-10-24 Thread Tom Deprez

Assume following :

Folder1
  sql
  show_abc
  method_showdata
  Folder2
show_abc

method_showdata has among it the following code :


  

   

  


1) When you call this function from Folder1 : show_abc of folder1 is used

2) When you call this function from Folder2 : show_abc of folder1 is used

--> what you wouldn't expect?

However:

3) Removing the  tag (and moving selectallcentres to folder1),
Calling method_showdata in Folder2 : show_abc of folder2 is used. 

--> what you would expect

Am I overlooking something of the acquisition here? Why does it uses in the
second case (2) not show_abc?

Thanks in advance,

Tom.

___
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] ZWiki on Zope.org Site

2000-10-24 Thread Praveen Katiyar

Hi,
I am a zope NewBie and am learning how to use Zwiki.
Can any one  Please mail me the Customised version of Zwiki which is in
existence 
On Zope.org. I want to develop some thing same with some extra features.
Existing Zwiki requires me to tweak some DTML code with which I am not much
familiar.

Thanking ,

Regards,
Praveen Katiyar
Infosys Towers,27, Bannerghatta Raod
Bangalore-560076
Ph: 91-80-6588668 Xtn. 1288
E-mail: [EMAIL PROTECTED]  
Great minds have purposes, little minds have wishes >
>Regards,Rr


___
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] MailHost: bcc broken ?

2000-10-24 Thread Holger Lehmann

Hi Paul,

Thanks for that response, but .

I can send single email with one recipient without problems.
I need to use a bcc: for about 4000 users. No way doing that halfway 
performant with a  ...  statement.

I am thinking of the 
bcc: user1, user2, user3  user4000
header.
It ought to get parsed in the MailHost product and sent directly to the 
proper smtp-host 

Holger


Am Dienstag, 24. Oktober 2000 18:16 schrieb Paul Zwarts:
> Hi,
>
> Im using this:
>
> 
> To: <>
> From: <>
> Subject: 
>
> Hi,
>
> blah blah
>
> 
>
>
> Im supposing that the double brackets is due to the fact that the email
> address itself is encapsulated with brackets as well as the variable being
> passsed.
>
> 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 )

-- 
---
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-in returning null

2000-10-24 Thread Max M

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Diego
Rodrigo Neufert

>
>   ">
>
> But, if InMethod return nothing it display this  tag one time
>There's a way to do that??



">



will probably suffice

Max M. W. Rasmussen,Denmark.   New Media Director
private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
-
Specialization is for insects.  -  Robert A. Heinlein


___
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] SuperUser cannot own ;-)

2000-10-24 Thread Max M

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Withers

> I suppose you've just installed Zope and you're logged in as "Superuser"
> And that's the problem.
> The superuser cannot own folder, files etc.

...and I'd still like to know why ;-)

Well I for one have accidently removed view privilliges for administrators
in a folder, at that time I was very happy to be able to log in as super and
restore those proviliges, or else I would have had to remove the directory
and start fresh.

Perhaps it is also to avoid trojan horses being executed by super.


Max M. W. Rasmussen,Denmark.   New Media Director
private: [EMAIL PROTECTED] work: [EMAIL PROTECTED]
-
Specialization is for insects.  -  Robert A. Heinlein


___
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-in returning null

2000-10-24 Thread Diego Rodrigo Neufert

Hi...

I want to do something like this...


">

 But, if InMethod return nothing it display this  tag one time

There's a way to do that??

Thanks
-- 
---
Diego Rodrigo Neufert
-webmaster
---
(Magic Web Design)
(email) ([EMAIL PROTECTED])
(curitiba) (pr)

___
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] MailHost: bcc broken ?

2000-10-24 Thread Paul Zwarts

Hi,

Im using this:


To: <>
From: <>
Subject: 

Hi,

blah blah




Im supposing that the double brackets is due to the fact that the email address
itself is encapsulated with brackets as well as the variable being passsed.

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] redirect

2000-10-24 Thread Christian Scholz

Hi!

> how to for that function REDIRECT understand a variable.
> 
> ex.
> 
> http://zope.org/index.htm?cod= test>')">

use

http://zope.org/index.htm?cod='+test)">

with "" you will enter the python scope and thus no dtml syntax is allowed
anymore. Instead you have to use python syntax (test should be a string
btw, otherwise use _.str(test) to make it one).

cheers,
  Christian

___
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] Refreshing :-)

2000-10-24 Thread Chris Withers

Max Møller Rasmussen wrote:
> This works nicely, but when writing Zope products I get really frustrated. I
> cannot easily automate my tests.
> 
> I put my products into C:\mxmZope\lib\python\Products\name and edit them
> from there, but trying to edit just a simple syntax error means a restart of
> Zope. That gets tired real fast. Especially when all you have to do to make
> mistakes is forgetting a comment under a method etc.

Try Shane Hathaway's Refresh product:

http://www.zope.org/Members/hathawsh/Refresh

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] SuperUser cannot own ;-)

2000-10-24 Thread Chris Withers

Marc Breitenreicher wrote:
> 
> I suppose you've just installed Zope and you're logged in as "Superuser"
> And that's the problem.
> The superuser cannot own folder, files etc.

...and I'd still like to know why ;-)

*stir* *stir*

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] Simple Question?

2000-10-24 Thread Chris Withers

Noah wrote:
> In my file "add_art_html" I want to add this code:
> 
> But when I try to view it I get a KeyError.
> I also tried:
> 

If Steve A's patch ever makes it into the core, you could do:

&dtml-/mojo/editor/edit;

...and it'd be great if the Traversal Interface could also be used to
implement:



...but sadly, for now, you need to do:



...or, slightly more tasty:


 


enjoy ;-)

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]

2000-10-24 Thread kosh

What would be the correct dtml-if contrstruct for this behavior?

I want to check and see if zope can resolve a url to a valid object.

Ie does http://foo.com/bar/foo get you to a valid page or is it not
found. 

I need something like http://foo.com/bar/foo> that way I can know
when to rewrite the url based on zope finding the object or not. 

Thanks
Kosh


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

2000-10-24 Thread Chris Withers

Hi Kathy,

> Error Type: SyntaxError
> 
> Error Value: invalid syntax
> 
> Troubleshooting Suggestions

It looks like your addEntry.py file has some syntax mistakes in it
(think mis-spelled, badly indented or otherwise defective python ;-) Try
comparing it with what it should be and see if the problem goes away
when you correct any mistakes.

cheers,

Chris

PS: Please post only plain text to this list (Plain Text as opposed to
MIME encoded should be an option on your mail program) as the message
you posted came out pretty screwed up on Netscape Communicator ;-)

___
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] Mass Mailing (newbie)

2000-10-24 Thread Gregory Haley

hi yvonne,

you can use the zope send mail method to pull data from a database.  the
problem
is with pulling in the text.  sendmail appears to send only literal
text, i.e., it does not parse html markup.  we are using a mysql
database to pull text and a second to pull names and emails, etc.  to
prevent the text from coming out as a single string, i have an external
python method that takes the string of text and writes out the lines as
lines of <= 75 chars, it also reinserts double line breaks,
as in between paragraphs.  

we use something like this:

you will need the MailHost product, and you will need to add a sendmail
method in your directory.  

ciao!
greg.

DBA/web programmer
venaca.com

***
 

  
  
  



 
To:   <>
From: <[EMAIL PROTECTED]>
Subject: 











"clean_content" is the name of the python external method.

This may not be ALL of the code, as i am really chopping some things out
of the actual dtml file for illustrative purposes.

a couple of warnings, in case you haven't used dtml sendmail.  you can
use nice indented tags within a  or  but not other
wise.  the left margin is, in my experience anyway, fairly inviolable.

as this is working now, if sendmail gets a bad address, it strangles
everything from the point of the error forward.  so, you should check to
make sure your emails are exactly correct -- i was doing a bulk mailing
of about 100 emails, and it died after the 6th one.

i don't know how to put in a trap into the method so that the mail
server catches the return mail but does not pass them to the zope
mailhost.  

ciao!
greg. 

> Yvonne Totty wrote:
> 
> Hi!
> 
> I need to send out mass mailings from time to time
> (newsletters, announcements and the such).
> 
> Is there an easy way to get this done? I already
> have the email addy's in the database.
> 
> TIA,
> Yvonne
> ~~~
> Yvonne Totty
> Database Engineer
> -
> Wolverine: You actually go outside in these things?
> Cyclops: Well, what would you prefer? Yellow spandex?
>

___
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] MailHost: bcc broken ?

2000-10-24 Thread Holger Lehmann

Hi all,

I wanted to use bcc in a mail generated though a 
... (Included in MailHost) tag.

But it did not work. All I got was a junk line like this:
subject: foo barbcc: user1, user2, user3

mark the missing carriage return and/or line feed between the subject and the 
bcc line.

Anyone got any ideas ?

- Holger

-- 
---
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] AW: [Zope] Trying to follow tutorial

2000-10-24 Thread Oliver Bleutgen

> 2. logout as superuser (e.g. close all browsers...)

Ha, 
I always wanted to bring in a IMNSHO better way to "logout"
- it works at least in IE.

try http://log:[EMAIL PROTECTED]

So the cached login/password are overwritten by
log/meout and zope (or every other server) brings
up the login dialog (as long as log/meout are not
valid ;))
Should also work handy as a link in html (untested).

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] Apache in front of ZServer

2000-10-24 Thread Oliver Bleutgen

> * [EMAIL PROTECTED] (JXrn Helge B. Dahl)

> On a second thought: What I _really_  want (I think, unless someone
> tells me differently :-) ) is a conditional ProxyPass, to tell apache
> to redirect everything _unless_ the URI is /static (or something).

> But this is probably something for apache geeks.

Jørn,

I ain't no apache geek, but I took a look at
two nice how-tos on zope.org.
The first one 
http://www.zope.org/Members/anser/apache_zserver/

describes how to get apache to work with zope via 
proxypass etc., and the second one describes how
to achieve what you describe above ... and I don't
find it anymore on zope.org :(

Anyway, 

this is what you want:

  RewriteEngine On
  RewriteRule ^/local/ - [L]
  RewriteRule ^/(.*) http://localhost:10080/my_host/$1 [P]


The [L] stops the rewriting-process if and only if the uri is of the
form http://yourhostname/local/
If not it goes on and passes the request to localhost port 10080,
directory my_host, where zope resides (at least on my server).
Combine that with virtual-host directive of apache and you are
as flexibel as one can get.
Naturally /local need not to be the only folder which isn't proxied
to zope.
The only problem is that apache doesn't care for zope's authentication
machinery, I would love to have a module for apache which could enable
that (nice dream...). But it may be solvable by using mysql/postgres as
a userdatabase for zope & apache...

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 )




[Zope] M2Crypto problem

2000-10-24 Thread Erik Myllymaki

I'm trying to use M2Crypto to access some https pages through an external
method, but I get this error:

SSLError: SSLEAY_RAND_BYTES: PRNG not seeded

How do I seed the PRNG?

I am using the windows binary of M2Crypto-0.05-snap3

Thanks,

Erik Myllymaki
[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] redirect

2000-10-24 Thread Phil Harris

http://zope.org/index.htm?cod=' + test)">

- Original Message - 
From: "Joaldo Junior" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 24, 2000 3:38 PM
Subject: [Zope] redirect


> how to for that function REDIRECT understand a variable.
> 
> ex.
> 
> http://zope.org/index.htm?cod= test>')">
> 
> ___
> 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] redirect

2000-10-24 Thread Daniel Rusch

http://zope.org/index.htm?cod='+_.str(test))">

You can't (and don't need to) put dtml tags inside dtml tags. 

Joaldo Junior wrote:
> 
> how to for that function REDIRECT understand a variable.
> 
> ex.
> 
> http://zope.org/index.htm?cod= test>')">
> 
> ___
> 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] Looking for short term Zope contractor

2000-10-24 Thread Daniel Rusch

If you don't find the person(s) you are looking for, let me know. I am
an experienced Zope/Python/SQL/HTML/JavaScript/Unix/Windows developer.
Additionally, I have an excellent working relationship with two other
developers with similar skills. Unfortunately, we are located in
Wisconsin.

Dan



Robert Miller wrote:
> 
> Hi,
> 
> I'm looking for someone to work on a short (2-3 weeks long) Zope
> project.  The details of the project are fairly straightforward; we have
> a relatively small database of information that is currently being
> injected into MySQL, and we'll need this database to be
> viewable/searchable from the web.
> 
> The job is in San Francisco, and, while physical proximity is not
> absolutely necessary, preference will be given to those who are local.
> Interested parties should email a resume (text only, no attachments,
> please) to me at [EMAIL PROTECTED]
> 
> Thanks for your time and attention, and we now return you to your
> regularly scheduled [EMAIL PROTECTED] mailing list traffic.
> 
> -rob
> 
> --
> +--+
> Rob Miller
> Director of Systems Engineering
> International Space Sciences Organization
> [EMAIL PROTECTED]
> +--+
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

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




Re: [Zope] redirect

2000-10-24 Thread Rik Hoekstra

> 
> how to for that function REDIRECT understand a variable.
> 
> ex.
> 
> http://zope.org/index.htm?cod= test>')">

You can't nest dmtl tags

try :

http://zope.org/index.htm?cod=' + test)">

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 )




[Zope] redirect

2000-10-24 Thread Joaldo Junior

how to for that function REDIRECT understand a variable.

ex.

http://zope.org/index.htm?cod=')">

___
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] Apache in front of ZServer

2000-10-24 Thread A.J. Rossini

> "JHBD" == JXrn Helge B Dahl <[EMAIL PROTECTED]> writes:

JHBD> On a second thought: What I _really_ want (I think, unless
JHBD> someone tells me differently :-) ) is a conditional
JHBD> ProxyPass, to tell apache to redirect everything _unless_
JHBD> the URI is /static (or something).

The ugly solution, until you find a clean one, is to have a second
apache process :-), and the first proxy-forwards to either Zope or the
second Apache.  (I'm doing something like that for our home server, so
I'm intrigued as to whether you can provide a clean solution...).

best,
-tony

-- 
A.J. RossiniRsrch. Asst. Prof. of Biostatistics
BlindGlobe Networks (home/default)  [EMAIL PROTECTED]  
UW Biostat/Center for AIDS Research [EMAIL PROTECTED]
FHCRC/SCHARP/HIV Vaccine Trials Net [EMAIL PROTECTED]

FHCRC: M/Tu: 206-667-7025 (fax=4812) | Voicemail is pretty sketchy
CFAR:   W/F: 206-731-3647 (fax=3694) | Email is far better than phone
UW:Th/F: 206-543-1044 (fax=3286) | Change last 4 digits of phone for fax

___
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] Apache in front of ZServer

2000-10-24 Thread Phil Harris

Jorn,

I'm no Apache GrandMaster but couldn't you use the [p] option of a
RewriteRule to make it proxy if the url matches a pattern:

RewriteEngine on
RewriteRule !^(/static/.*) http://myserver.com:8080$1 [p,l]

Or something along those lines.

hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: "Jørn Helge B. Dahl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 24, 2000 1:40 PM
Subject: Re: [Zope] Apache in front of ZServer


> * [EMAIL PROTECTED] (JXrn Helge B. Dahl)
>
> | | for the other part of serving static content, it really depends what
you
> | | want but here are two ways to do it.
> | |
> | | 1.use the LocalFileSystem product,
> | |
http://www.zope.org/Products/Members/jfarr/Products/LocalFS/LocalFS-0.9.6.tg
> | | z
> |
> | That I already do, so that one is okay.
> |
> | | 2.use Apache to intercept calls to a specific dir before passing
it onto
> | | Zope, e.g. use a RewriteRule.
> |
> | Yup, this is what I need. I think was being unclear about what I really
> | -wanted: I want to still be able to use php and such thing, even if I
> | serve Zope from root. So the RewriteRule does the trick?
>
> On a second thought: What I _really_  want (I think, unless someone
> tells me differently :-) ) is a conditional ProxyPass, to tell apache
> to redirect everything _unless_ the URI is /static (or something).
>
> But this is probably something for apache geeks.
>
> Thanks anyway.
> --
> Jørn Helge B. Dahl
> http://falch.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 )




[Zope] Mass Mailing (newbie)

2000-10-24 Thread Yvonne Totty



Hi!
 
I 
need to send out mass mailings from time to time
(newsletters, announcements and the 
such).
 
Is 
there an easy way to get this done? I already
have the email addy's in the 
database.
 
TIA,
Yvonne
~~~
Yvonne Totty
Database Engineer
-
Wolverine: You actually go outside 
in these things?Cyclops: Well, what would you prefer? Yellow 
spandex?
 


[Zope] AW: [Zope] Trying to follow tutorial

2000-10-24 Thread Patrick Koetter

Hi J.J.,

this problem is a result of the restrictions applied by zope. Nothing is
wrong with that.
It is just that it's not explained thouroughly or most people new to zope
tend to overread that in the manual ;-)

Here's what You do:
1. Login as the Superuser (the primary account provided after installing
zope) and create a new user in path_to_zope/acl_users '(e.g. Koos). Provide
Password when asked in the form and apply the role 'manager' to that user.
2. logout as superuser (e.g. close all browsers...)
3. login as the user you have just created
4. go on with the tutorial...

This should help you to get going with zope.
Besides that, working with zope is worth every minute of it :-)

p@


> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von
> Schut, Koos (Koos)
> Gesendet: Dienstag, 24. Oktober 2000 13:34
> An: '[EMAIL PROTECTED]'
> Betreff: [Zope] Trying to follow tutorial
>
>
> Hi all, I am trying to follow the quick tutorial and immediately run into
> things I do not understand. I am trying to create a folder as explained in
> the docs.
> I get the error:
>
> Error Type: SuperCannotOwn
> Error Value: Objects cannot be owned by the superuser
>
> This is the example in which "Stan" needs to create a folder. Can anyone
> tell me
> what goes wrong and how to get it right?
>
> Cheers.
>
> J.J. Schut
> Integration Specialist
> Avaya
> The Former Enterprise Networks Group of Lucent Technologies
> tel. +31 (0)30 609 7835
> fax. +31 (0)30 609 7650
> 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 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] Trying to follow tutorial

2000-10-24 Thread Marc Breitenreicher

I suppose you've just installed Zope and you're logged in as "Superuser"
And that's the problem.
The superuser cannot own folder, files etc.

Add a "User Folder" and add a new User in that folder.
Then you have to restart Zope and log in as the new user.
Now the new user can add as much folder as you want.

Hope this helps

Marc

> 
> Hi all, I am trying to follow the quick tutorial and immediately run into
> things I do not understand. I am trying to create a folder as explained in
> the docs.
> I get the error:
> 
> Error Type: SuperCannotOwn
> Error Value: Objects cannot be owned by the superuser
> 
> This is the example in which "Stan" needs to create a folder. Can anyone
> tell me
> what goes wrong and how to get it right?
> 
> Cheers.
> 
> J.J. Schut
> Integration Specialist
> Avaya
> The Former Enterprise Networks Group of Lucent Technologies
> tel. +31 (0)30 609 7835
> fax. +31 (0)30 609 7650
> 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 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] Apache in front of ZServer

2000-10-24 Thread Jørn Helge B. Dahl

* [EMAIL PROTECTED] (JXrn Helge B. Dahl)

| | for the other part of serving static content, it really depends what you
| | want but here are two ways to do it.
| | 
| | 1.use the LocalFileSystem product,
| | http://www.zope.org/Products/Members/jfarr/Products/LocalFS/LocalFS-0.9.6.tg
| | z
| 
| That I already do, so that one is okay.
| 
| | 2.use Apache to intercept calls to a specific dir before passing it onto
| | Zope, e.g. use a RewriteRule.
| 
| Yup, this is what I need. I think was being unclear about what I really
| -wanted: I want to still be able to use php and such thing, even if I
| serve Zope from root. So the RewriteRule does the trick?

On a second thought: What I _really_  want (I think, unless someone
tells me differently :-) ) is a conditional ProxyPass, to tell apache
to redirect everything _unless_ the URI is /static (or something).

But this is probably something for apache geeks.

Thanks anyway.
-- 
Jørn Helge B. Dahl
http://falch.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] How do you guys/gals test Zope products from Python?

2000-10-24 Thread Max Møller Rasmussen

I am using Zope and Python 1.5.2 on Win2000. I guess that it is a fairly
simple setup.

My Zope site is in a folder called c:\mxmZope, and my vanilla Python is in
C:\Program Files\Python.

usually when I write Python I just use PythonWin to edit and run my scripts.
I then write test in the buttom of my file that shows that everything works.


This works nicely, but when writing Zope products I get really frustrated. I
cannot easily automate my tests.

I put my products into C:\mxmZope\lib\python\Products\name and edit them
from there, but trying to edit just a simple syntax error means a restart of
Zope. That gets tired real fast. Especially when all you have to do to make
mistakes is forgetting a comment under a method etc.

I cannot run the program from my PythonWin or IDLE as they are set to the
standard Python enviroment. Do other set os.path.append('ZopeDir') or
something and the comment that out when running or what?

The error messages I get that way are also rather lacking. Reloading the
file in the browser, reading the source and getting a traceback like the one
below, for a method I know exists. But dissapeared because of some, probably
minor, typing mistake.

-
  ... SNIP
  File C:\mxmZope\lib\python\ZPublisher\Publish.py, line 162, in publish
  File C:\mxmZope\lib\python\ZPublisher\BaseRequest.py, line 380, in
traverse
  File C:\mxmZope\lib\python\ZPublisher\HTTPResponse.py, line 529, in
notFoundError
NotFound: (see above)
--

I am shure that there must be a better way, but what is it? How do you guys
edit and test your products? Even .asp is far better than the way I am doing
it now.

At least I dont have to restart the server when I make a simple mistake, I
can also easily put in testcode and Response.Writes to se what is happening.

I love Python among other things because of the nice traceback and debugging
features, but I feel that they are somewhat lost when developing Zope.

Shurely it must be me being ignorant here.

Regards Max M

"There must be more than just this." - V-ger

___
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] serving java applet fails

2000-10-24 Thread Umesh Soni

hi all,

I'm having problems serving up the EIRC java chat-client from within zope.

I have uploaded two java archives EIRC-gfx.jar and EIRC.jar as file 
objects via the management screen. Zope has recognised these as 
'application/java-archive' content types.


I am using the following dtml (which is in the same folder as the two
java archives) to serve the applet














http://eirc.sourceforge.net/">






Eteria IRC Client

 Sorry, but you need a Java 1.x enabled browser to use EIRC.





The applet loads (and runs) fine when served from from the filesystem
with apache.

When served from zope it appears to load ok and is even rendered
within the browser -but at the last moment fails to run with the
following browser error;

Applet EIRC can't start: ERROR

Any thoughts?

umesh

___
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] Trying to follow tutorial

2000-10-24 Thread Rik Hoekstra



> 
> Hi all, I am trying to follow the quick tutorial and immediately run into
> things I do not understand. I am trying to create a folder as explained in
> the docs.
> I get the error:
> 
> Error Type: SuperCannotOwn
> Error Value: Objects cannot be owned by the superuser
> 
> This is the example in which "Stan" needs to create a folder. Can anyone
> tell me
> what goes wrong and how to get it right?

This is related to the tutorial not being up to date with the current
zope version, but is simply remedied.

Go to the management interface and add a zope user in the acl_users
folder. Give it Management rights. Shut you browser, reopen it and
authenticate as the user you just entered. Get on with the tutorial...

hth

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 )




[Zope] Trying to follow tutorial

2000-10-24 Thread Schut, Koos (Koos)

Hi all, I am trying to follow the quick tutorial and immediately run into
things I do not understand. I am trying to create a folder as explained in
the docs.
I get the error:

Error Type: SuperCannotOwn
Error Value: Objects cannot be owned by the superuser

This is the example in which "Stan" needs to create a folder. Can anyone
tell me 
what goes wrong and how to get it right?

Cheers.

J.J. Schut
Integration Specialist
Avaya
The Former Enterprise Networks Group of Lucent Technologies
tel. +31 (0)30 609 7835
fax. +31 (0)30 609 7650
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] Sendmail examples

2000-10-24 Thread steve smith

Hi Tony,

Thanks for taking the time to answer. The "MailHost" object seems to be the
key. I tried going around it (using the SMTPHost attribute, from memory),
without much luck. Also learnt that one needs at least modest knowledge of
SMTP syntax when forming the option lines!

Thanks again,

Steve

-Original Message-
From: Tony McDonald [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 24 October 2000 8:35
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Zope] Sendmail examples


At 10:01 pm +1000 22/1/01, steve smith wrote:
>Anyone have any good, real-world examples using DTML-Sendmail tags? Would
>especially appreciate examples integrating SQL queries.
>
>Ta!
>
>Steve
>

What, you mean including ones that send mail into the future? :)
(couldn't resist).

Assuming you've set up a MailHost object called 'MailHost'

Set up a  with variables: recipient, name and comments and make
the ACTION URL the following piece of DTML (with appropriate sugar
around it)


To: Feedback Recipient <>
From: Zope Feedback Form 
Subject: Feedback from the web



Feedback from : 
Comments:



hth
tone
--
Dr Tony McDonald,  FMCC, Networked Learning Environments Project
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5116
A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope


___
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] ZGDChart product...

2000-10-24 Thread zope

Hi.

This is really a great product.

Unfortunately, I'm not able to create a chart with multiple columns using a 
ZSQL Data Method.
Multiple columns with a DTML-Method works fine.

Do I miss something. Any ideas?

Thanks for any help. Regards, Marc Ludwig ([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] Sendmail examples

2000-10-24 Thread Tony McDonald

At 10:01 pm +1000 22/1/01, steve smith wrote:
>Anyone have any good, real-world examples using DTML-Sendmail tags? Would
>especially appreciate examples integrating SQL queries.
>
>Ta!
>
>Steve
>

What, you mean including ones that send mail into the future? :) 
(couldn't resist).

Assuming you've set up a MailHost object called 'MailHost'

Set up a  with variables: recipient, name and comments and make 
the ACTION URL the following piece of DTML (with appropriate sugar 
around it)


To: Feedback Recipient <>
From: Zope Feedback Form 
Subject: Feedback from the web



Feedback from : 
Comments:



hth
tone
--
Dr Tony McDonald,  FMCC, Networked Learning Environments Project 
http://nle.ncl.ac.uk/
The Medical School, Newcastle University Tel: +44 191 222 5116
A Zope list for UK HE/FE  http://www.fmcc.org.uk/mailman/listinfo/zope

___
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] Apache in front of ZServer

2000-10-24 Thread Jørn Helge B. Dahl

* "Phil Harris" <[EMAIL PROTECTED]>

| Jorn,
| 
| It's perfectly possible, you just need to do a little work ;)

That's OK, that way it'll be more fun :-)

| Your proxy pass will be something like this:
| 
| ProxyPass / http://myserver.com:8080/
| ProxyPassReverse http://myserver.com:8080/ /

I had that one already figured out. but I thought the ProxyPassReverse
directive was to be the other way around: To be exactly like the
ProxyPass directive?

| for the other part of serving static content, it really depends what you
| want but here are two ways to do it.
| 
| 1.use the LocalFileSystem product,
| http://www.zope.org/Products/Members/jfarr/Products/LocalFS/LocalFS-0.9.6.tg
| z

That I already do, so that one is okay.

| 2.use Apache to intercept calls to a specific dir before passing it onto
| Zope, e.g. use a RewriteRule.

Yup, this is what I need. I think was being unclear about what I really
-wanted: I want to still be able to use php and such thing, even if I
serve Zope from root. So the RewriteRule does the trick?

Thanks Phil,
-- 
Jørn Helge B. Dahl
System Administrator
http://falch.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] Apache in front of ZServer

2000-10-24 Thread Phil Harris

Jorn,

It's perfectly possible, you just need to do a little work ;)

Your proxy pass will be something like this:

ProxyPass / http://myserver.com:8080/
ProxyPassReverse http://myserver.com:8080/ /

for the other part of serving static content, it really depends what you
want but here are two ways to do it.

1.use the LocalFileSystem product,
http://www.zope.org/Products/Members/jfarr/Products/LocalFS/LocalFS-0.9.6.tg
z

2.use Apache to intercept calls to a specific dir before passing it onto
Zope, e.g. use a RewriteRule.

hth

Phil


- Original Message -
From: "Jørn Helge B. Dahl" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 24, 2000 9:39 AM
Subject: [Zope] Apache in front of ZServer


> Hi all!
>
> I am aware of http://www.zope.org/Members/anser/apache_zserver>,
> but I am looking for at way to make Apache serve Zope from the root URL.
>
> It is possible to make the apache front end
>  be served by zope backend
> , but what really want is to make apache
> frontend  be served by Zope, and still be
> able to serve static content from selected locations. Example:
>
> <- Zope w/Apache frontend
>   <- Apache static
>
> Am I clear? Is it possible to do that without NameVirtualHost?
> --
> Jørn Helge B. Dahl
> System Administrator
> http://falch.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 )




[Zope] Apache in front of ZServer

2000-10-24 Thread Jørn Helge B. Dahl

Hi all!

I am aware of http://www.zope.org/Members/anser/apache_zserver>,
but I am looking for at way to make Apache serve Zope from the root URL.

It is possible to make the apache front end
 be served by zope backend
, but what really want is to make apache
frontend  be served by Zope, and still be
able to serve static content from selected locations. Example:

<- Zope w/Apache frontend
  <- Apache static

Am I clear? Is it possible to do that without NameVirtualHost?
-- 
Jørn Helge B. Dahl
System Administrator
http://falch.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] Updating auto incrementing counter in a propertysheet

2000-10-24 Thread Max Møller Rasmussen

From: Bill Anderson [mailto:[EMAIL PROTECTED]]

>Is it more important that they be in an order, or that they be in a
>specific sequential list?

Actually what is important is that they are integers and in a specific
order. So the datestamp method isn't that feasible for me.

(I'm trying to make a "fake tree" for a diskussion product.)

It is really easy to implement and doesn't use recursion, so traversing the
tree is done with a simple for loop.

It uses a dictionary with tupples as keys to emulate the recursive
structure. Simple example here if anybody cares.


-

class fakeTree:
def __init__(self):
#create tree and insert root element
self.treeKeys = {}
self.treeKeys[0] = (0,)
self.tree = {}
self.tree[(0,)] = ''

def insert(self, id, parent, value):
# create new key
keyList = list(self.treeKeys[parent])
newKeyList = keyList.append(id)
newKeyTuple = tuple(newKeyList)
self.treeKeys[id] = newKeyTuple
# insert in tree with new tuple key
self.tree[newKeyTuple] = value

def print(self):
sortedKeys = treeKeys.keys()
sortedKeys.sort()
spacesInIndent = 3
for key in sortedKeys:
print key
print spacesInIndent * len(key) * ' ' + treeKeys[key]

tree = fakeTree()
tree.insert(1, 0, 'max m')
tree.insert(2, 0, 'gitte')
tree.insert(3, 1, 'magnus')
tree.print()


___
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] Updating auto incrementing counter in a propertysheet

2000-10-24 Thread Max Moller Rasmussen

From: Aleksander Salwa [mailto:[EMAIL PROTECTED]]

>> 
>> 

>In the above line --- do you want to set up new value for ZClass property,
>isn't it ?
>If so, you have to use manage_changeProperties method of property sheet.

Yes I am afraid that this is the problem. That seems like such a messy
solution too.

I will try and make a Python based product instead, for this particular
solution. My current zClass solution allready seem to be a bit verbose for
my liking.

And the program logic isn't to nice in dtml either.

Regards Max M

___
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] Simple Question?

2000-10-24 Thread Noah

This seems like a simple question.
How do I include a Method in a different folder?

I have two folders and two methods:

/editor/
edit

/mojo/art/
add_art_html

In my file "add_art_html" I want to add this code:

But when I try to view it I get a KeyError.
I also tried:


I tried some complicated things with  and
, but I couldn't get this to work; although,
 at least did not give a KeyError.


Yours,
Noah



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