[Zope-dev] Problem by counting the number of result of database query

2000-07-29 Thread Bruno Nana

 Hi,

 I have one problem with a Zmethod.

 Here is the method:

 select *,summe=sum(count(*))
 from neuigkeiten
 where
 (
 username like '%!--#var suche--%' or
 autorloginname like '%!--#var suche--%' or
 headline like '%!--#var suche--%' or
 textfeld like '%!--#var suche--%')
 order by headline

 That is i want to select some data from database and save the number
of data
 who are found in summe.(Number found:dtml-var  summe is ok)
 There is no error at this level, but there is a problem when i list
the
 result in the dtml document. There are more data as i need.

 Please would you help me to resolv this problem!!

 Thank

 Bruno



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




[Zope-dev] MethodGeddon

2000-07-29 Thread Chris Withers

http://www.zope.org/Wikis/zope-dev/MethodGeddon

Just been reading about this and I was wondering how is coming along...

Is it in the fishbowl under another name or should it be in the
fishbowl?

Shane, would the argument list be a management tab for methods?
That sounds cool to me :-)

I reckon 'self' should always be the equivalent of the python 'self' or
not exist to avoid confusion. I guess that means it wouldn't get used
much since it would be the actual method-object (and I thought that was
an oxymoron ;-) but with the possibility opf things like __render__ and
__call__, who knows...

The argument list would be great, 'cos you could then be able to specify
additional arguments of type 'binding' which might be any of the
following from you list: (select by dropdown? ;-)

 Bind to the object containing a method,

 Bind to the object that acquired a method, and possibly

 Bind to the object containing the method in the context of the object that acquired 
the method, and maybe even

 When a method is defined in a ZClass, bind to the instance in such a way that 
attribute lookup is performed in the baseclasses of the class defining the method 
(aka bind to "super").

So you could get to any or all of those as you need in your method. Of
course, new users wouldn't have to worry about this until they needed to
do something that used it.

The other option would be to have these automatically bound to certain
names (like _ is now) but perhaps that would be more confusing?

Thoughts and comments would be great :-)

cheers,

Chris

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




[Zope-dev] AcquisitionMadness

2000-07-29 Thread Chris Withers

Evan,

I wonder if the changes Shane suggested in MethodGeddon would make
Simplified Acquistion suffice for what Steve was asking about?

Also can you explain how from the example:
Two path acquisition: A contains B1 and C1, B1 contains B2, C1 contains
C2

How (Natural Acquisition):
A.B1.B2.C1 == (((C1 o A) o (B1 o A)) o ((B2 o B1) o (B1 o A)))

equates to:
"Roughly speaking, search the objects in the reverse of the order they
were mentioned in, along the shortest physical path between each
object."

and how it differs in effect from:

A.B1.B2.C1 == (((C1 o A) o (B1 o A)) o (B2 o (B1 o A)))

(which is what I think simplified Acquisition would return...)

cheers,

Chris

PS: This might just be explaining how the (x o y) notation actually
tells you where the object's attribute comes from :S
(in the above example, how, in each case, the notation explains where C1
comes from...)

PPS: What's happening with the Zope-Dev Wiki? Is it being fazed out?

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




[Zope-dev] Renaming ZClass instances in 2.2.0

2000-07-29 Thread Steve Alexander

In Zope 2.2.0, I can't rename ZClass instances.

When you rename something, lib/python/OFS/CopySupport.py's
_verifyObjectPaste() method gets called with the object you're renaming
as an argument. The method checks that the current user is authorized to
create objects of that kind, and that the current user is authorized to
create that object in the current context.


The problem seems to be that, in the case of renmaing a ZClass instance,
when the ZopeSecurityPolicy tries to get a __roles__ attribute for the
instance you're renaming, it can't find one.

I'm way out of my depth here, but I can get it to work again by adding
to the function PersistentClassDict() in lib/python/ZClasses/ZClass.py
(line 195 or so):

dict['__roles__']=('Manager',)

so that it looks like this:


def PersistentClassDict(doc=None, meta_type=None):
# Build new class dict
dict={}
dict.update(Template.__dict__)
if meta_type is not None:
dict['meta_type']=dict['__doc__']=meta_type
if doc is not None:
dict['__doc__']=doc
dict['__roles__']=('Manager',)
return dict

This only works for ZClasses defined after the change, though.

I have absolutely no idea what the side-effects of this change are, and
I'm not even entirely sure what it does :-)

It seems to fix the problems of renaming DataSkin-derived ZClasses too.


I've looked though the recent CVS checkins, and I can't see a fix for
this yet. I've also looked through the Collector, and I can't see this
problem reported.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

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




Re: [Zope] 2.2.0, LoginManager and ZPatterns

2000-07-29 Thread Aleksander Salwa


 Of course, I need to customize and test my LoginManager instance, so
 new troubles may arise soon :)
 

So I'm back ;)

On Mon, 24 Jul 2000, Bill Anderson wrote:

 for doing so. You can search the archives, and it would be a decent idea
 to look at the Membership *alpha* product, as it is an example.
 

Where I can find this 'Membership' product ? (I've tried 
www.zope-treasures.com and 'Search' on www.zope.org).

Anybody knows about any other examples of simple, but useful UserSources ?

I want to convert quickly my site to work with LoginManager (I used GUF
before). I have folder with users data (login, password, and some
properties needed in my site) in Zope. Every user is an instance of my
ZClass. How to simply get it work with LoginManager ?
What requirements (if any) are about class representing user ?
Will be enough to customize (how ?) class GenericUserSource, or should
I write my own ?

Things seems easy, when reading help/API.txt (but there is nothing about
user class). But when looking into source of GenericUserSource... :(

Shed some light on it, please :)


ololo


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




Re: [Zope] 2.2.0, LoginManager and ZPatterns

2000-07-29 Thread Bill Anderson

Aleksander Salwa wrote:
 
  Of course, I need to customize and test my LoginManager instance, so
  new troubles may arise soon :)
 
 
 So I'm back ;)
 
 On Mon, 24 Jul 2000, Bill Anderson wrote:
 
  for doing so. You can search the archives, and it would be a decent idea
  to look at the Membership *alpha* product, as it is an example.
 
 
 Where I can find this 'Membership' product ? (I've tried
 www.zope-treasures.com and 'Search' on www.zope.org).

http://www.zope.org/Members/Bill/Products/Membership

Has the most current version.
 
 Anybody knows about any other examples of simple, but useful UserSources ?
 
 I want to convert quickly my site to work with LoginManager (I used GUF
 before). I have folder with users data (login, password, and some
 properties needed in my site) in Zope. Every user is an instance of my
 ZClass. How to simply get it work with LoginManager ?
 What requirements (if any) are about class representing user ?
 Will be enough to customize (how ?) class GenericUserSource, or should
 I write my own ?
 
 Things seems easy, when reading help/API.txt (but there is nothing about
 user class). But when looking into source of GenericUserSource... :(
 
 Shed some light on it, please :)

Never used GUF, so I wouldn't be that much help :/
Went from straight UserFolder to Membership :)

Login manager is fairly new, and ZPatterns, which it sits upon, is also in a state of
evolution. As a result, not many are experienced with it, and little documentation 
exists.
There are reasons these aren't released  version 1.0 ;)

As for learning how to use them the source and the zope-dev list would be good sources.
IMO, discussions on them, especially at that level, belong on zope0dev fo rnow. Others 
may
not share that opinion.

Bill


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 I can find my password ? if I losted it..

2000-07-29 Thread Jonathan Desp

Hi,

I'm searching in several mailing list, but I didnot get the answer, I don't
remember my password, because I have several data.fs and now I'm trying to
write all my password for each data.fs, do you know how to get the password
somewhere ? In which file ? If I open the data.fs with for example cutehtml,
I'll see the source code, anyone here know an important keywords to search
in the source code of data.fs or something ?

Very truly yours,


Jonathan Desp
Chairman and CEO, Atomasoft Inc.
Matter will become software
http://www.atomasoft.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] How I can find my password ? if I losted it..

2000-07-29 Thread Marcin Kasperski

Jonathan Desp wrote:
 
 Hi,
 
 I'm searching in several mailing list, but I didnot get the answer, I don't
 remember my password, because I have several data.fs and now I'm trying to
 write all my password for each data.fs, do you know how to get the password
 somewhere ? In which file ? If I open the data.fs with for example cutehtml,
 I'll see the source code, anyone here know an important keywords to search
 in the source code of data.fs or something ?
 

What about changing superuser password (via python zpasswd.py run from
command line), logging as superuser and changing your password via web
interface?

--
Marcin.Kasperski | For waterfall, milestones are commitments. For   
  @softax.com.pl | iterative development, they are decision points. 
Marcin.Kasperski | (Martin) 
@bigfoot.com |

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




Re: [Zope] Zope for secure transactions?

2000-07-29 Thread Marcin Kasperski

 1. Can Zope support SSL or https?

AFAIK without support of some other tool not.

 2. Is there some way in Zope through which i can use secure transactions.

I suspect that yes, although I have not done it. You should be able to
use Apache-SSL as frontend to Zope (employing ProxyPass). There is also
another method, which can work and even be simpler: stunnel (generic SSL
encryption wrapper). I have not run it with zope but I saw it running
perfectly as frontend to POP3/IMAP mail server.


--
Marcin.Kasperski | A reusable framework that is developed by itself will
  @softax.com.pl | probably not be very reusable. (Martin)  
Marcin.Kasperski |  
@bigfoot.com |

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




[Zope] 2.2.0 problem

2000-07-29 Thread shortie



hello zopers,

i have compiled it from source and start it as 
root.
but when i try 'lynx http://localhost:9080', i get 
nothin.
lynx just display message 'HTTP request sent; waiting for 
response.'

my plateform is redhat 6.2.

the zope start message is as following:

[root@firewall Zope2]# ./start -P 
9000--2000-07-29T13:13:30 PROBLEM(100) ZServer Computing default 
hostname--2000-07-29T13:13:30 INFO(0) ZServer Medusa (V1.18) started 
at Sat Jul 29 21:13:0 Hostname: 
firewall.ecbc.com.tw 
Port:9080

--2000-07-29T13:13:30 INFO(0) ZServer FTP server 
started at Sat Jul 29 21:13:30 20 
Authorizer:None Hostname: 
firewall.ecbc.com.tw Port: 
9021--2000-07-29T13:13:30 INFO(0) ZServer PCGI Server started at Sat 
Jul 29 21:13:30 0 Unix socket: 
/share/Zope2/var/pcgi.soc--2000-07-29T13:13:30 INFO(0) ZServer 
Monitor Server (V1.9) started on port 9099
--'Life is like boxes of chocolate, Forrest. You never 
know what you're gonnaget.' -- Forrest Gump (1994)Lo Chung-Chang 
(shortie)[EMAIL PROTECTED] 
ICQ#27118251Kaohsiung.Taiwan.Roc.Earth.Solar.Galaxy.Universe



[Zope] dtml-in 'one record per page' problem

2000-07-29 Thread Cesar A. K. Grossmann

Hi!

I'm using a report that must return one instance by page, but it's not
working very well... If the query returns more than one result, Zope
presents only two pages. I'm using Zope 2.1.6 in a Linux box.

Here are a excerpt of the dtml code used:

dtml-in
sqlQuery
size=1
orphan=1
overlap=0
start=query_start

  dtml-if sequence-start
dtml-if previous-sequence
  a href="dtml-var URLdtml-var
sequence-queryquery_start=dtml-var previous-sequence-start-number"
  (previous)/a

/dtml-if previous-sequence

table
  /dtml-if sequence-start

 ... a lot of trtd ...

  dtml-if sequence-end
/table
dtml-if next-sequence
  a href="dtml-var URLdtml-var
sequence-queryquery_start=dtml-var next-sequence-start-number"
(next)/a
/dtml-if next-sequence

  /dtml-if sequence-end

dtml-else
p
No records.
/p

/dtml-in

In case someone is wondering about the utility of a report with only one
record per page, all I can say is that this is a very big one record,
and the original idea was to present only one record at time.

-- 
César A. K. Grossmann [EMAIL PROTECTED] http://members.xoom.com/ckant/
http://www.halcyon.com/sciclub/cgi-pvt/instr/instr.html

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




Re: [Zope] 2.2.0, LoginManager and ZPatterns

2000-07-29 Thread Aleksander Salwa



On Sat, 29 Jul 2000, Bill Anderson wrote:

  Where I can find this 'Membership' product ? (I've tried
  www.zope-treasures.com and 'Search' on www.zope.org).
 
 http://www.zope.org/Members/Bill/Products/Membership
 
 Has the most current version.
  

Thanks !
Finally, I got it working by my own. It's rather simple, but it took few
hours to state it ;)


ololo


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Package for annotating pages?

2000-07-29 Thread Marcin Kasperski

Leading small website, I would like to give my users an ability to make
some annotations on those pages

I imagine sth like: somewhere on the page I have small form which client
can fill to comment the page contents.  Client opinion is kept somewhere
- but not yet visible. Some time later, the page administrator have an
option to browse comments and accept or reject them. Accepted notes are
visible as some decorations, which - after being clicked - show small
popup window with the note contents.

I consider implementing something from the scratch, but maybe there
exists some Zope package, which would help me more or less (either by
implementing my idea or by giving some other mechanisms with similar
purpose).

Regards

--
Marcin.Kasperski | A (cfg. management) tool can perform two functions:  
  @softax.com.pl | (1) Support a well defined and understood process.   
Marcin.Kasperski | (2) Act as something to blame when things don't work 
@bigfoot.com | out. (Mark Bools)

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Easiest way to possess 'creation_time' attribute?

2000-07-29 Thread Marcin Kasperski

What is the easiest way to force DTML Methods or documents in some
directory to be automatically annotated with 'creation time' attribute?

I got the problem while developing simple website news page (implemented
so the news are taken from dedicated subfolder and sorted via
bobobase_modification_time reverse):
- if I correct spelling in my news item, it gets 'modern' date
- if I export from one zope instance and import into another one, all
objects get the brand new bobobase_modification_time

Regards


--
Marcin.Kasperski | Users typically do not know exactly what they want   
  @softax.com.pl | and are unable to articulate all that they know. 
Marcin.Kasperski | (Parnas) 
@bigfoot.com |

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




[Zope] Worldpilot + UW-IMAP

2000-07-29 Thread Marcus Schopen

Hi there,

I´m using Worldpilot (newest alpha) on Linux (SuSE 6.4).
It worlks fine, but I can only create subfolders under the INBOX and no subsub-folders.
Subsubfolders are not needed, but I don´t want to create all my first level subfolders 
under
the INBOX, because other IMAP-Progs. (e.g. Netscape) display them as INBOX.subfolder.

Any ideas?

THANK YOU
Marcus

__

 (0   Marcus Schopen
 //\   Bielefeld, Germany
 V_/_
__


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Easiest way to possess 'creation_time' attribute?

2000-07-29 Thread Chris Withers

Marcin Kasperski wrote:
 
 What is the easiest way to force DTML Methods or documents in some
 directory to be automatically annotated with 'creation time' attribute?
 
 I got the problem while developing simple website news page (implemented
 so the news are taken from dedicated subfolder and sorted via
 bobobase_modification_time reverse):
 - if I correct spelling in my news item, it gets 'modern' date
 - if I export from one zope instance and import into another one, all
 objects get the brand new bobobase_modification_time

I'd love to know how to do this in general in Zope too...

cheers,

Chris

PS: the only way I can think of right now is to subclass DTML
document/method and override the add method to take a copy of
bobobase_modification_time and stroe it in an attribute/property called
creation time.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Talking about revision history

2000-07-29 Thread Marcin Kasperski

The zope Undo mechanics is nice for clearing simple mistakes, but the
screens filled with 'manage_edit by ...' does not provide too much
information. What I would like is some high level website revision
history. Below I discuss some ideas, please comment on them.

Before details, main motivation: as the main zopesite manager (call me
Stan ;-) ), I give my users permissions to edit parts of the website.
But I would like to see their activities from the high level, with
reports like 'at day such and such Johny the Spoiler performed change
which he named "proofing our department pages" and this change touched
the following objects: ...' (looks like info about saving a version
enriched with info about objects saved).

1) I would like to disable the ability to edit anything outside some
version. I guess that specifying some permissions in configuration would
do, but before I spoil sth I would like to ask whether someone performed
such a configuration and how was it defined?

2) Would be great, if attempt to edit outside of version prompted 
You are to edit this website outside any version. Choose to either 
join .dropdownlist of existingversions[JOIN]
create and join new version of name: ...[CREATE]
cancel edits[CANCEL]

3) Is it at all possible to check, whether some version is currently
empty (no unsaved edits) or not - and if not, what is unsaved?

4) Is it possible (with current zope) to get changes history with manual
edits grouped somehow 
   (I'd prefer - instead of having 17 times 'manage_edit by xaut' - to
see '17 manage_edit's by xaut')

5) CVS-like tagging mechanizm would be nice. Seems that version control
is completely implemented, the only thing left is a method to add a
comment at some places of database history - and to provide a method of
browsing them.

--
 www.mk.maxi.pl  | Even if we could state all of a system's 
Marcin.Kasperski | requirements, there are many details about a system  
  @softax.com.pl | that we can only discover once we are well into its  
@bigfoot.com | implementation. (Parnas)

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] probs. with _vti_xxxx folders - anyone using FrontPage + WebDAV ???

2000-07-29 Thread Marcus Schopen

Hi there,

I´m still looking for a solution to save files via WebDAV to Zope using FronPage 2000.
Zope has probs with these _vti_ folders which are required by FP2000 but can´t 
created
in Zope because of the beginning "_".

Any ideas?

Marcus

__

 (0   Marcus Schopen
 //\   Bielefeld, Germany
 V_/_
__


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] probs. with vti xxxx folders - anyone using FrontPage + WebDAV ???

2000-07-29 Thread Chris Withers

Marcus Schopen wrote:
 I´m still looking for a solution to save files via WebDAV to Zope using FronPage 
2000.
 Zope has probs with these _vti_ folders which are required by FP2000 but can´t 
created
 in Zope because of the beginning "_".

Find a way to change the name of the _vti folders in FrontPage ;-)

Then again, Dreamweaver has exactly the same problem with its content
commenting stuff 'cos it also tries to create _something folders.

I wonder why starting folders with _ is so bad in Zope?

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] What is the best method to enter more attributes about DTL Document?

2000-07-29 Thread Marcin Kasperski

Short and probably obvious problem: what can I do to be asked for more
properties while creating DTML Document (say I wanna be asked about
description and keywords which I use in meta tags)?

--
 www.mk.maxi.pl  | Even if we could state all of a system's 
Marcin.Kasperski | requirements, there are many details about a system  
  @softax.com.pl | that we can only discover once we are well into its  
@bigfoot.com | implementation. (Parnas)

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] create DTML-Source-link like on zope.org

2000-07-29 Thread Marcus Schopen

Hi there,

how is it possible to create "show DTML-Source"-link like on some sites on zope.org.

Thank you
Marcus
__

 (0   Marcus Schopen
 //\   Bielefeld, Germany
 V_/_
__


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: probs. with vti xxxx folders - anyone using FrontPage

2000-07-29 Thread Chris Withers

Maybe :-)

Chris

Marcus Schopen wrote:
 
 Hi Chris,
 
 may be Apache with rewrite-rules for these folders could be a way
 
 Marcus
 
 __
 
  (0   Marcus Schopen
  //\   Bielefeld, Germany
  V_/_
 __

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] create DTML-Source-link like on zope.org

2000-07-29 Thread Chris Withers

Put a link as follows on your page:

a href="view_source"show DTML-Source/a

Then create a dtml method called view_source.

What do you put in it? Well, see the following:

http://www.zope.org/view_source/view_source

*grin*

Chris

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




Re: [Zope] Starting Zope

2000-07-29 Thread Cary O'Brien

 Costagliola Giovanni wrote:
  
  Il gio, 27 lug 2000, Oleg Broytmann ha scritto:
   On Thu, 27 Jul 2000, Costagliola Giovanni wrote:
How can I to start Zope whit a different user than root and cath the
default HTTP port?
  
  Use different way - start Zope as root, catch port 80 and drop uid.
  
I receive an error becouse root hasn't granted the need privileges on
/Zope/var/ directory.
  
  This is a different error, not a problem with port 80, ah?
  
  I see Oleg, more exactly I would start ZServer with an user like 'zope', for
  example, but at the same time I want it links the port 80!
  
  I could use the root user simply but I'll lose my sleep :^)
  
  Can you give me some input?
 
 If you want to bind to ports 1024 you _must_ be root. ZXope can run as another user 
(the
 -u user option), but it must be _started_ as root, if you want to bind to port 80.
 Period.
 
 Sorry, there is no other way, short of making Sope SUID, which is a very, very, very,
 very, very, very bad idea.
 

Well...

If you are running on Linux you could simply edit the kernel code to
elimitate the check on being root to bind to low ports.  That's what
we did. 

-- cary

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




Re: [Zope] Zope for secure transactions?

2000-07-29 Thread Cary O'Brien

  1. Can Zope support SSL or https?
 
 AFAIK without support of some other tool not.
 

If you have money ($12,000 us), but not programmers/time you can buy
a box to do this from Intel.  Plus it is very fast.

http://www.intel.com/netstructure/products/accel_7110.htm

(Not an Intel employee, but they did serve me a very nice
Breakfast while telling me about their products).

Or you could put Zope behind Apache-stronghold.

-- cary

  2. Is there some way in Zope through which i can use secure transactions.
 
 I suspect that yes, although I have not done it. You should be able to
 use Apache-SSL as frontend to Zope (employing ProxyPass). There is also
 another method, which can work and even be simpler: stunnel (generic SSL
 encryption wrapper). I have not run it with zope but I saw it running
 perfectly as frontend to POP3/IMAP mail server.
 
 
 --
 Marcin.Kasperski | A reusable framework that is developed by itself will
   @softax.com.pl | probably not be very reusable. (Martin)  
 Marcin.Kasperski |  
 @bigfoot.com |
 
 --__--__--
 


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




Re: [Zope] Starting Zope

2000-07-29 Thread Bill Anderson

Cary O'Brien wrote:

 Well...
 
 If you are running on Linux you could simply edit the kernel code to
 elimitate the check on being root to bind to low ports.  That's what
 we did.

Which is an even worse idea.

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 syntax

2000-07-29 Thread Kyle Burnett

so i have this loop and i want to count a variable:

dtml-in wherever

  dtml-if sequence-start
   dtml-var count-id
  /dtml-if

/dtml-in

but what i really want to count is specific values for id. so let's say
id=='value1', i want to try and do the following:

dtml-in wherever

  dtml-if sequence-start
   dtml-var "count-id=='value1'"
  /dtml-if

/dtml-in

but no luck. and i have tried several other make-shift syntaxes to no avail.

i do have some other logic that i could use over the course of the loop to
determine the count of distinct values but i was try to do it in far less
code.

anyone got an idea of how to rig this?

thanks in advance,
kyle 


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




Re: [Zope] Zope for secure transactions?

2000-07-29 Thread Bill Anderson

Cary O'Brien wrote:
 
   1. Can Zope support SSL or https?
 
  AFAIK without support of some other tool not.
 
 
 If you have money ($12,000 us), but not programmers/time you can buy
 a box to do this from Intel.  Plus it is very fast.
 
 http://www.intel.com/netstructure/products/accel_7110.htm
 
 (Not an Intel employee, but they did serve me a very nice
 Breakfast while telling me about their products).
 
 Or you could put Zope behind Apache-stronghold.

Or behind Roxen.

Or you can download the mxCrypto tools. There exists a patch to medusa/ZServer to 
provide
https capability. I haven't used it, so I can't speak as to the ease/difficulty in 
doing
so.


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

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




Re: [Zope] What is the best method to enter more attributes about DTL Document?

2000-07-29 Thread Bill Anderson

Marcin Kasperski wrote:
 
 Short and probably obvious problem: what can I do to be asked for more
 properties while creating DTML Document (say I wanna be asked about
 description and keywords which I use in meta tags)?

Short answer:
Create a new ZClass-based product that contains the thigs you need.


--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] password

2000-07-29 Thread Jonathan Desp

Hi,

the program zpasswd prompt.

they said:

If this program is called without command-line options, it will prompt
for all necessary information.  The available options are:

-u / --username=
Set the username to be used for the superuser

-p / --password=
Set the password

-e / --encoding=
Set the encryption/encoding rules.  Defaults to SHA-1. OPTIONAL

-d / --domains=
Set the domain names that the user user can log in from.  Defaults to
any. OPTIONAL.

Filename is not option, and should be the name of the file to store the
information in.

__

What I should write in this source code from zpasswd ? --

"""Zope password change system"""

__version__='$Revision: 1.8 $ '[11:-2]

import sys, string, sha, binascii, whrandom, getopt, getpass, os

try:
from crypt import crypt
except ImportError:
crypt = None

def generate_salt():
"""Generate a salt value for the crypt function."""
salt_choices = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" \
   "abcdefghijklmnopqrstuvwxyz" \
   "0123456789./"
return whrandom.choice(salt_choices)+whrandom.choice(salt_choices)

def generate_passwd(password, encoding):
encoding=string.upper(encoding)
if encoding == 'SHA':
pw = '{SHA}' + binascii.b2a_base64(sha.new(password).digest())[:-1]
elif encoding == 'CRYPT':
pw = '{CRYPT}' + crypt(password, generate_salt())
elif encoding == 'CLEARTEXT':
pw = password

return pw

def write_access(home, user='', group=''):
import whrandom
pw_choices = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" \
 "abcdefghijklmnopqrstuvwxyz" \
 "0123456789!"

ac_path=os.path.join(home, 'access')
if not os.path.exists(ac_path):
print '-'*78
print 'creating default access file'
acfile=open(ac_path, 'w')
pw = ''
for i in range(8):
pw = pw + whrandom.choice(pw_choices)
acfile.write('superuser:' + generate_passwd(pw, 'SHA'))
acfile.close()
os.system('chmod 644 access')

print """Note:
The super user name and password are 'superuser'
and '%s'.

You can change the superuser name and password with the
zpasswd script.  To find out more, type:

%s zpasswd.py
""" % (pw, sys.executable)

import do; do.ch(ac_path, user, group)

def main(argv):
short_options = ':u:p:e:d:'
long_options = ['username=',
'password=',
'encoding=',
'domains=']

usage = """%s [options] filename

If this program is called without command-line options, it will prompt
for all necessary information.  The available options are:

-u / --username=
Set the username to be used for the superuser

-p / --password=
Set the password

-e / --encoding=
Set the encryption/encoding rules.  Defaults to SHA-1. OPTIONAL

-d / --domains=
Set the domain names that the user user can log in from.  Defaults to
any. OPTIONAL.

Filename is not option, and should be the name of the file to store the
information in.

Copyright (C) 1999 Digital Creations, Inc.
""" % argv[0]

try:
if len(argv)  2:
raise "CommandLineError"

optlist, args = getopt.getopt(sys.argv[1:], short_options,
long_options)

if len(args) != 1:
raise "CommandLineError"

access_file = open(args[0], 'w')

if len(optlist)  0:
# Set the sane defaults
username = 'superuser'
encoding = 'SHA'
domains = ''

for opt in optlist:
if (opt[0] == '-u') or (opt[0] == '--username'):
username = opt[1]
elif (opt[0] == '-p') or (opt[0] == '--password'):
password = opt[1]
elif (opt[0] == '-e') or (opt[0] == '--encoding'):
encoding = opt[1]
elif (opt[0] == '-d') or (opt[0] == '--domains'):
domains = ":" + opt[1]

# Verify that we got what we need
if not username or not password:
raise "CommandLineError"

access_file.write(username + ':' +
  generate_passwd(password, encoding) +
  domains)

else:
# Run through the prompts
while 1:
username = raw_input("Username: ")
if username != '':
break

while 1:
password = getpass.getpass("Password: ")
verify = getpass.getpass("Vefify password: ")
if verify == password:
break
else:
password = verify = ''
print "Password mismatch, please try again..."

while 1:
print """
Please choose a format from:

SHA 

[Zope] Evaluate Zope for New App

2000-07-29 Thread G. Alan Tucker

Hi,

I am in the process of evaluating the best architecture for a new
Internet-based service that we are going to offer to the Japanese market. I
would like to evaluate Zope, and I want your opinions on whether Zope as a
solution is adequate, competitive, or the best one available.

From my perspective, I am a firm believer that Python is a great language,
and very efficient to build and maintain, and that Zope will also enjoy a
bright future. But they are not as widely accepted as Java servlets / JSP /
EJB on the web server backend. So I may have to work to convince the CEO
that we should go against the industry on this matter, and any information
you could provide would be helpful.

One important point is that the interface will be all in Japanese. Please
confirm that Zope can handle Unicode and / or other 2-byte character sets.

The application will be designed for a financial industry to handle
transactions between independent agents and their providers. The agents will
get multiple quotations from multiple providers, while entering the customer
data only once into our service. The functionality looks something like
this.

1. The agent inputs about 100 pieces of data for the customer into our
system. The exact data will vary, depending on specific product. We will
store this information into our database.

2. The agent will choose several providers from a list.

3. The system will (mostly likely) use XML to send the customer data to the
chosen providers. The providers will return to us pricing and some
description of the product.

4. We will aggregate the quotations and present this to the agent. The agent
will choose a few of the quotations to present to the customer. The agent
will refresh the view, and print it for the customer.

5. If the customer chooses one of the products, the agent will enter the
order to the system. Since the customer data is already there, we only need
to pass a short XML message to the provider.

6. Our system will also have to track some information like which agents can
use which providers, as well as commission rates.

7. We will also provide some sales automation functionality to the agents,
but the exact details depends on the segment of the agent market we go
after. Some examples might include calculating commission rates, querying
customer birthdays to remind the agent to send them a card, etc.

In general our server will not provide that much processing of the customer
data, either during or after the transaction. Mostly we are saving it and
passing it between the agents and the providers. However this data does need
to be encrypted over SSL. I think we could do the SSL encryption on an edge
device, but I would be curious to find out how others have handled this with
Zope.

I would like the list to help me with the following.

- How suitable is Zope for this type of application?
- What is a common back-end data storage for Zope in this type of
application.
- We need scaleability and redundancy. How suitable is Zope for this?
- Any other comments or questions.

Best regards - g

-- 
 These || G. Alan Tucker  || Failure is not an option. . .
  Opinions || Tokyo, Japan|| 
Are My Own || [EMAIL PROTECTED] || It comes standard with Windows


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Starting Zope

2000-07-29 Thread Nitesh Dhanjani


chown the var directory to the zope user. This is what I do with my setup.



On Sat, 29 Jul 2000, Cary O'Brien wrote:

  Costagliola Giovanni wrote:
   
   Il gio, 27 lug 2000, Oleg Broytmann ha scritto:
On Thu, 27 Jul 2000, Costagliola Giovanni wrote:
 How can I to start Zope whit a different user than root and cath the
 default HTTP port?
   
   Use different way - start Zope as root, catch port 80 and drop uid.
   
 I receive an error becouse root hasn't granted the need privileges on
 /Zope/var/ directory.
   
   This is a different error, not a problem with port 80, ah?
   
   I see Oleg, more exactly I would start ZServer with an user like 'zope', for
   example, but at the same time I want it links the port 80!
   
   I could use the root user simply but I'll lose my sleep :^)
   
   Can you give me some input?
  
  If you want to bind to ports 1024 you _must_ be root. ZXope can run as another 
user (the
  -u user option), but it must be _started_ as root, if you want to bind to port 
80.
  Period.
  
  Sorry, there is no other way, short of making Sope SUID, which is a very, very, 
very,
  very, very, very bad idea.
  
 
 Well...
 
 If you are running on Linux you could simply edit the kernel code to
 elimitate the check on being root to bind to low ports.  That's what
 we did. 
 
 -- cary
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   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 syntax

2000-07-29 Thread Tim Cook

Kyle Burnett wrote:
 
 so i have this loop and i want to count a variable:
 
 dtml-in wherever
 
   dtml-if sequence-start
dtml-var count-id
   /dtml-if
 
 /dtml-in
 
 but what i really want to count is specific values for id. so let's say
 id=='value1', i want to try and do the following:
 
 dtml-in wherever
 
   dtml-if sequence-start
dtml-var "count-id=='value1'"
   /dtml-if
 
 /dtml-in
 
 but no luck. and i have tried several other make-shift syntaxes to no avail.
 
 i do have some other logic that i could use over the course of the loop to
 determine the count of distinct values but i was try to do it in far less
 code.

This may be what you already thought of. It does require a lot of
code if you have several things to count.  There may also be
cleaner ways to do it???

dtml-call "REQUEST.set('this_count', 0)"
dtml-in wherever
  dtml-call "REQUEST.set('current_id', _['sequence-item'])"
  dtml-if "current_id=='id_to_count'"
dtml-call "REQUEST.set('this_count', this_count+1)"
  /dtml-if current_id
/dtml-in wherever
I counted dtml-var this_count items.

(of course this is untested)g.

-- Tim Cook --
FreePM Project Coordinator - http://www.freepm.org
OS Healthcare Alliance Supporter - http://www.oshca.org

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




RE: [Zope] What is the best method to enter more attributes about DTL Document?

2000-07-29 Thread Chris McDonough

There's not a particularly obvious solution other than to define a
ZClass which inherits from DTML Document and exposes a constructor form
that asks for these properties as well as an edit form that does same.
See the ZClass tutorial on Zope.org at
http://www.zope.org/Documentation/Guides/ZDG-HTML/ZDG.html to get
started.

 -Original Message-
 From: Marcin Kasperski [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, July 29, 2000 1:00 PM
 To: Zope List Submission
 Subject: [Zope] What is the best method to enter more
 attributes about DTL Document?


 Short and probably obvious problem: what can I do to be asked for more
 properties while creating DTML Document (say I wanna be asked about
 description and keywords which I use in meta tags)?

 --
  www.mk.maxi.pl  | Even if we could state all of a system's  
  
 Marcin.Kasperski | requirements, there are many details about
 a system 
   @softax.com.pl | that we can only discover once we are well
 into its 
 @bigfoot.com | implementation. (Parnas)

 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   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] [FAQTS] ZOPE Knowledge Base Update -- July 30th, 2000

2000-07-29 Thread Fiona Czuczman


Hi Guys,

The latest entries to be entered into http://zope.faqts.com

regards,

Fiona Czuczman

Including:

- Benchmarking between Zope and Tomcat
- How can I get the Zope tutorial to work?
- Is there an easy way to simulate the functionality of a while loop in 
DTML?
- What is the best method to enter more attributes about DTML Document?
- How is it possible to create "show DTML-Source"-link like on some 
sites on zope.org?
- Is there an easy way to increment the month or year of the DateTime 
object?


## New Entries #


-
Benchmarking between Zope and Tomcat
http://www.faqts.com/knowledge-base/view.phtml/aid/5062
-
Fiona Czuczman
J. Atwood

Benchmarking between Zope and Tomcat

http://www.zope.org/Members/BwanaZulia/zope_benchmarks/tomcat1.html

(1 of 4 rounds)


-
How can I get the Zope tutorial to work?
http://www.faqts.com/knowledge-base/view.phtml/aid/5063
-
Fiona Czuczman
Amos Latteier

Here's what to do:

  * Get Zope 2.2, download it, install it.
  * Log in to Zope with the super user account.
  * Create a manager account by going to the User Folder and adding a 
new user, and giving them the Manager role.
  * Quit your browser to log out.
  * Log into Zope as the manager you just created.
  * Create a Zope Tutorial, by adding it from the product add list.
  * Now do the tutorial.


-
Is there an easy way to simulate the functionality of a while loop in DTML?
http://www.faqts.com/knowledge-base/view.phtml/aid/5065
-
Fiona Czuczman
Patrick Lewis

This is real ugly, but you asked (untested, but you get the idea):

dtml-try
  dtml-in "_.range(1000)"
dtml-if whileCondition  !-- Your logic test --
  !-- Do stuff in while loop --
dtml-else
  dtml-raise type="conditionFalse"errormsg/dtml-raise
/dtml-if
  /dtml-in
dtml-except conditionFalse
  !-- Fall out of 'while' loop.  --
dtml-else
  dtml-raise type="RangeError"Oops! Exception never 
raised./dtml-raise
/dtml-try

This only works if the loop will cycle less than 1000 times.  Needless 
to say, this is done a lot easier in Python.


-
What is the best method to enter more attributes about DTML Document?
http://www.faqts.com/knowledge-base/view.phtml/aid/5098
-
Fiona Czuczman
Chris McDonough

Problem:

Short and probably obvious problem: what can I do to be asked for more
properties while creating DTML Document (say I wanna be asked about
description and keywords which I use in meta tags)?

Solution:

There's not a particularly obvious solution other than to define a
ZClass which inherits from DTML Document and exposes a constructor form
that asks for these properties as well as an edit form that does same.

See the ZClass tutorial on Zope.org at

http://www.zope.org/Documentation/Guides/ZDG-HTML/ZDG.html

to get started.


-
How is it possible to create "show DTML-Source"-link like on some sites on zope.org?
http://www.faqts.com/knowledge-base/view.phtml/aid/5099
-
Fiona Czuczman
Chris Withers

Put a link as follows on your page:

a href="view_source"show DTML-Source/a

Then create a dtml method called view_source.

What do you put in it? Well, see the following:

http://www.zope.org/view_source/view_source


-
Is there an easy way to increment the month or year of the DateTime object?
http://www.faqts.com/knowledge-base/view.phtml/aid/5100
-
Fiona Czuczman
Jim Sanford

Problem:

Adding a numeric value increments the day. Incrementing the year is 
easily doable, but incrementing the month is significantly more 
difficult. So I'm just curious if there's a function that will actualy 
modify the parts of a DateTime object, or something way that I'm not 
thinking of to easily increment the month.

Solution:

dtml-var
"_.DateTime(_.str(ZopeTime().month()+1)+'/'+_.str(ZopeTime()
.day())+'/'+_.str(ZopeTime().year()))"

will give you a datetime object one month in the future


## Edited Entries ##


-
Is there a way I can grab the time value on my current system that Zope is running on 
with a MILLISECOND precision?
http://www.faqts.com/knowledge-base/view.phtml/aid/4964
-
Fiona Czuczman
Shane Hathaway

Works on 2.2.0:


Re: [Zope] Starting Zope

2000-07-29 Thread Bill Anderson

Nitesh Dhanjani wrote:
 
 chown the var directory to the zope user. This is what I do with my setup.
 


That will not let you bind to ports  1024.

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Starting Zope

2000-07-29 Thread Nitesh Dhanjani


yes, but it would solve the permission problem the original poster
mentioned.


On Sat, 29 Jul 2000, Bill Anderson wrote:

 Nitesh Dhanjani wrote:
  
  chown the var directory to the zope user. This is what I do with my setup.
  
 
 
 That will not let you bind to ports  1024.
 
 --
 Do not meddle in the affairs of sysadmins, for they are easy to annoy,
 and have the root password.
 


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Using Zope and Worldpilot on a large site

2000-07-29 Thread Bill Anderson

Paolo Bizzarri wrote:
 
 Hi Zopers,
 
 we would like to use Zope for an ISP, with more than 400.000 customers.
 Zope would be used with Worldpilot, in order to provide Webmail,
 Calendar, to do, etc.

THis demonstrates a problem or two with Worldpilot. I would defintiely _not_ use
worldpilot in that setting. Why not? Well, the sharing capability (IIRC) gives a list 
of
people on the system you can share with. Think about that for a moment. Four hundred
thousand people. One list. It would  be nice if it were possible for people to not 
appear
in the list, and for there to be groups.

THe way I would see that working is that by default, a user is not liste din the 
sharing
options, and has a checkbox to change it. Then, they could be seperated by groups, 
either
on some algorithm, or by other logical divisions (marketing, webusers, RD).

 
 Has anyone tried the scalability of Zope till this level ?

Well, what you are describing really isn't a test of Zope's scaleability.
, but rather workdpilots (and the machines's).  

Zope's scalability in this case is more a matter of resource usage, than a funtion of 
the
number of users. Thats is to say, what is the expected load of the machine/site. 
400,000
users will not access all at once, will they? Zope can be scaled accross multiple
machines, through the use of ZEO, so if your load gets too high, you can move to a ZEO
solution, adding machines as neccessary.

One caveat to that is that worldpilot stores data on the filesystem, so that data would
need replicated accross the sites. Perhaps NFS or Coda could server this function.

Well, I'll stop rambling now. ;)

 
 Many thanks in advance
 
 Paolo
 --
 Paolo Bizzarri - Responsabile Marketing  I3 Icube Srl
 Sede:   Via Ridolfi 15 - 56124 Pisa (PI), Italia
 E-mail: [EMAIL PROTECTED] WWW: www.icube.it
 Tel:(+39) 050 97 02 07  Fax: (+39) 050 31 36 588
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

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