[Zope-dev] strange permission errors again

2000-06-17 Thread Robin Becker

After the latest round of CVS updates I am again getting strange requests for 
authorisation in
unusual places. No matter that I use my admin to try and validate they still occur.

Typical piece of code is

 dtml-with "_.namespace(SUB=include.ZGA_Eval(sub))"
  dtml-if "_.len(SUB)0"
   NAVDATA[dtml-var sequence-index].flag=dtml-var sequence-index;
   NAVSTATE=new Array();
   dtml-in SUB
NAVSTATE[dtml-var sequence-index]=new Object();
NAVSTATE[dtml-var sequence-index].ref = 'dtml-var "_['sequence-item'][0]"';
NAVSTATE[dtml-var sequence-index].label = 'dtml-var "_['sequence-item'][1]"';
   /dtml-in
   NAVDATA[dtml-var sequence-index].sub=NAVSTATE;
  dtml-else
   NAVDATA[dtml-var sequence-index].flag=-1;
  /dtml-if
 /dtml-with

Brian fixed this up before and it has crept back in somehow.

Zope Error

Zope has encountered an error while publishing this resource. 

Unauthorized

Sorry, a Zope error occurred.

Traceback (innermost last):
  File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 222, in 
publish_module
  File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 187, in publish
  File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 171, in publish
  File C:\Python\devel\Zope\lib\python\ZPublisher\mapply.py, line 160, in mapply
(Object: index_html)
  File C:\Python\devel\Zope\lib\python\ZPublisher\Publish.py, line 112, in call_object
(Object: index_html)
  File C:\Python\devel\Zope\lib\python\OFS\DTMLMethod.py, line 167, in __call__
(Object: index_html)
  File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_String.py, line 502, in 
__call__
(Object: index_html)
  File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_In.py, line 691, in 
renderwob
(Object: NavData)
  File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_With.py, line 146, in render
(Object: _.namespace(SUB=include.ZGA_Eval(sub)))
  File C:\Python\devel\Zope\lib\python\DocumentTemplate\DT_Util.py, line 327, in eval
(Object: _.len(SUB)0)
(Info: SUB)
  File C:\Python\devel\Zope\lib\python\OFS\DTMLMethod.py, line 189, in validate
(Object: index_html)
  File C:\Python\devel\Zope\lib\python\AccessControl\SecurityManager.py, line 139, in 
validate
  File C:\Python\devel\Zope\lib\python\AccessControl\ZopeSecurityPolicy.py, line 158, 
in
validate
Unauthorized: SUB
-- 
Robin Becker

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

2000-06-17 Thread josh on

Is there a way to pass variables from one page to another using an a href
but not including them in the url after a ??

sorry, I know this is an html question, but I figured it was pretty zope
related.

josh on


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




Re: [Zope-dev] passing variables

2000-06-17 Thread Robin Becker

In article 000b01bfd866$1d2cc3c0$0fc550c2@joshon, josh on
[EMAIL PROTECTED] writes
Is there a way to pass variables from one page to another using an a href
but not including them in the url after a ??

sorry, I know this is an html question, but I figured it was pretty zope
related.

josh on


...
you can do anything with javascript of course
-- 
Robin Becker

___
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] From where does nothing spring from?

2000-06-17 Thread Evan Simpson

- Original Message -
From: "Graham Chiu" [EMAIL PROTECTED]
 dtml-var "REQUEST.set('error',f_Email.isNotEmail(f_Email,_))"

 where f_Email is an instance of the product, then the words

 'None'

 are returned as well, and render to the screen.

REQUEST.set returns None.  You want to use dtml-call instead of
dtml-var, to ignore the returned value.

Cheers,

Evan @ 4-am  digicool


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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: From where does nothing spring from?

2000-06-17 Thread Hung Jung Lu

--- In [EMAIL PROTECTED], Graham Chiu [EMAIL PROTECTED] wrote:
dtml-var "REQUEST.set('error',f_Email.isNotEmail(f_Email,_))"

This mistake happens all the time. :) Instead of "var", use "call".

  dtml-call "REQUEST.set('error',f_Email.isNotEmail(f_Email,_))"
  dtml-var "REQUEST.error"

(I think you face is red, now. ha! OK, I maybe wrong.)

---

If this is not the source of the problem, please provide also the function 
argument list. It's kind of hard to read the function without seeing the 
function header.

regards,

Hung Jung

(Thanks for encouraging me to make HappySession into a product!)




Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Instanciate a ZClass out of Zope

2000-06-17 Thread Oleg Broytmann

On Sat, 17 Jun 2000, FR Chalaoux wrote:
 I would like to instanciate a Zclass, I created in Zope, out of Zope web
 interface.
 I mean create objets, base on this ZClass, in ZODB with a python script
 out of Zope.
 
 What are the different solutions to do that ?
 Is there code exemples around ?

   http://www.zope.org/Members/taz/addZClasses

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


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




[Zope] Re: programatically generating images

2000-06-17 Thread Hung Jung Lu

Grüß Dich,

There are many freeware utilities out there for generating images 
on-the-fly. I don't know about Zope products, but I guess it's better for 
you anyway to handle the details by hand.

Check out these links. (I saved them recently from the Python list... 
haven't tried them myself, yet.)

http://www.fred.net/brv/chart/
http://piddle.sourceforge.net/
http://www.object-craft.com.au/paint_doc.html
http://www.object-craft.com.au/paint.tar.gz
http://www.manning.com/Grayson/chapt11.pdf

Alles Gute,

Hung Jung


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] newbie changingover to zope from html/cgi??

2000-06-17 Thread Rajil Saraswat

On Sat, 17 Jun 2000, Rajil Saraswat wrote:

 Hi,
 I am newbie to zope(infact installed it yesterday). Just impressed with
 its capabilities. But there are somethings i cant figure out. 
 
 I want to transfer a whole website containg javascript/html/cgi on
 zope. how do i do it. is it possible.
 
 Do i need to have zope on the ISP for my zope website to run.
 
 I only have ftp access on my ISP. Which files should i transfer so that
 the zope application works. btw i couldnot locate the files/database on my
 system about the webiste i am building. where is the database for the
 application kept.
 
 I donot know python but do know perl, can i add modules to zope in perl.
 
 Thanks.
 
 


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




[Zope] Transaction in zodb

2000-06-17 Thread Sin Hang Kin

Hi,

Is transaction build in of ZODB? I have a product which keep a counter
property and a inc method which will increase the property with a integer
amount. I would like to make sure that concurrent inc call will not cause
problem. Is ZODB automatically do transaction and prevent corrupt of data?

My class is like this:

class Cid(
OFS.SimpleItem.Item,   # A simple Principia object. Not Folderish.
Persistent,# Make us persistent. Yaah!
Acquisition.Implicit,  # Uh, whatever.
AccessControl.Role.RoleManager # Security manager.
):
"""Cid object.

Keep an integer value and provide an way to inc it.
"""

meta_type = 'Cid' # what do people think they're adding?

manage_options = ( # what management options are there?
 {'label': 'Edit',   'action': 'manage_main'},
 {'label': 'View',   'action': ''}, # defaults to index_html
 {'label': 'Security',   'action': 'manage_access'},
)

__ac_permissions__=( # what permissions make sense for us?
 ('View management screens', ('manage_tabs','manage_main')),
 ('Change permissions',  ('manage_access',)   ),
 ('Change Cid' , ('manage_edit',) ),
 ('View Cid',('',)),
 )

def __init__(self, id, title='', initval=0):
"""initialise a new instance"""
self.id = id
self.title = title
try:
self.counter = int(initval)
except:
self.counter= 0

def inc(self, increment=1):
""" inc counter """
self.counter = self.counter+increment
return

def __repr__(self):
'''aa'''
return self.counter

def __str__(self):
''' a '''
return str(self.counter)

def index_html(self):
''' return data '''
return self.counter

manage_main = HTMLFile('CidEdit', globals()) # Management Interface

def manage_edit(self, title, counter, REQUEST=None):
"""does this really need a doc string?"""
self.title = title
try:
self.counter = int(counter)
except:
pass
if REQUEST is not None:
return MessageDialog(
 title = 'Edited',
 message = "Properties for %s changed." % self.id,
 action = './manage_main',
 )

I add an object aaa of Cid and make the following call on dtml:

dtml-call "aaa.inc()"
Counter is now : dtml-var aaa

How could I prevent aaa get updated after inc() is call?


Rgs,

Kent Sin
-
kentsin.weblogs.com
kentsin.imeme.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] Transaction in zodb

2000-06-17 Thread Sin Hang Kin

Hi,

Is transaction build in of ZODB? I have a product which keep a counter
property and a inc method which will increase the property with a integer
amount. I would like to make sure that concurrent inc call will not cause
problem. Is ZODB automatically do transaction and prevent corrupt of data?

My class is like this:

class Cid(
OFS.SimpleItem.Item,   # A simple Principia object. Not Folderish.
Persistent,# Make us persistent. Yaah!
Acquisition.Implicit,  # Uh, whatever.
AccessControl.Role.RoleManager # Security manager.
):
"""Cid object.

Keep an integer value and provide an way to inc it.
"""

meta_type = 'Cid' # what do people think they're adding?

manage_options = ( # what management options are there?
 {'label': 'Edit',   'action': 'manage_main'},
 {'label': 'View',   'action': ''}, # defaults to index_html
 {'label': 'Security',   'action': 'manage_access'},
)

__ac_permissions__=( # what permissions make sense for us?
 ('View management screens', ('manage_tabs','manage_main')),
 ('Change permissions',  ('manage_access',)   ),
 ('Change Cid' , ('manage_edit',) ),
 ('View Cid',('',)),
 )

def __init__(self, id, title='', initval=0):
"""initialise a new instance"""
self.id = id
self.title = title
try:
self.counter = int(initval)
except:
self.counter= 0

def inc(self, increment=1):
""" inc counter """
self.counter = self.counter+increment
return

def __repr__(self):
'''aa'''
return self.counter

def __str__(self):
''' a '''
return str(self.counter)

def index_html(self):
''' return data '''
return self.counter

manage_main = HTMLFile('CidEdit', globals()) # Management Interface

def manage_edit(self, title, counter, REQUEST=None):
"""does this really need a doc string?"""
self.title = title
try:
self.counter = int(counter)
except:
pass
if REQUEST is not None:
return MessageDialog(
 title = 'Edited',
 message = "Properties for %s changed." % self.id,
 action = './manage_main',
 )

I add an object aaa of Cid and make the following call on dtml:

dtml-call "aaa.inc()"
Counter is now : dtml-var aaa

How could I prevent aaa get updated after inc() is call?


Rgs,

Kent Sin
-
kentsin.weblogs.com
kentsin.imeme.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] [Fwd: [Projet-zf] Etat des lieux Zope-France]

2000-06-17 Thread FR Chalaoux





Le ZWiki permet de faire cela, non?

FR.

"Sebastien Douche (ml)" wrote:

 Le Tue, Jun 13, 2000 at 06:01:44PM +0200, FR Chalaoux à écrit:
 # Salut à tous,

 Salut FR,
 content de te voir vivant :-)

 # Bon, je vois qu'il y une certaine excitation chez ZF et c'est bien normal vu
 # les dernières semaines de calme et l'agitation actuelle.
 # Enfin, pas tout à fait ;-)
 # Très bientôt, disons d'ici à dimanche, sera mise en place sur ZF un ZWiki
 # (ZFTools). Cette base connaissance contiendra le germe de futures ZClasses
 # qui permetterons à chacun d'entre nous de produire dans **son espace** des
 # objets qui enrichiront ZF automatiquement. Ce framework est proche de ZDP et
 # ZPTK.

 Super mais ne penses tu pas que notre interet soit de faire des docs que
 chacun (via authentification) puisse modifier, ce qui permettrais
 d'enrichir de facon interactive les documents ?

 --
 (°- Sébastien Douche
 //\ [EMAIL PROTECTED] [EMAIL PROTECTED]
 v_/_ LUG Parinux www.parinux.org

 ___
 Projet-zf mailing list  -  [EMAIL PROTECTED]
 http://www.zope-france.org/mailman/listinfo/projet-zf





RE: [Zope] newbie changingover to zope from html/cgi??

2000-06-17 Thread Rajil Saraswat

can i replace javascript with python/DTML. I have used drop down menus in
the pages using javascript. Is these available in Zope or is there some
way of using these.
Is there some book released on zope/DTML for reference. 
Does this mean a complete rewrite of the code is required of all the
javascript and cgi files , or is there some method to convert them to
DTML.
Thanks 
On Sat, 17 Jun 2000, Richard Folwell wrote:

 Hi Rajil,
 
   I want to transfer a whole website containg javascript/html/cgi on
   zope. how do i do it. is it possible.
 
 You would have to re-write the scripts, using DTML/Python as appropriate.  The HTML 
remains the
 same.
 
   Do i need to have zope on the ISP for my zope website to run.
 
 Yes.
 
   I only have ftp access on my ISP. Which files should i transfer so that
   the zope application works. btw i couldnot locate the files/database on my
   system about the webiste i am building. where is the database for the
   application kept.
 
 You will definitely need an ISP that provides Zope support before you can do this.  
The Zope
 database is normally:
 
 your Zope root/var/Data.fs
 
   I donot know python but do know perl, can i add modules to zope in perl.
 
 There are plans to provide Perl support, but this is for the future.  For the moment 
learn Python -
 if you already know Perl then it will be straightforward, since they cover similar 
territory.
 Python has some advantages over Perl, particularly for larger development works.
 
 Hope that helps,
 
 Richard
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   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] Big folders

2000-06-17 Thread Shane Hathaway

Jimmie Houchin wrote:
 
 I've been studying SQL this week because I've been thinking that I'll
 probably have to use a RDBMS to develop my site. Ideally and
 philosophically I like ZODB. Mountable ZODBs give me much of what I need
 with the possible exception of a big folder problems.
 
 My databases will have millions of objects in what would/will be single
 table/folders. From what I understand ZODB doesn't currently do big
 folders well.

It's more accurate to say that the current Folder implementation in Zope
does not handle a large number of subobjects well.  As I understand it,
to load any subobject, it must load *all* subobjects from ZODB.  A
"BTreeFolder", which promises to solve part of the problem, is in the
works.

ZODB itself, however, is and always was a great way to store just about
any kind of data.

Shane

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




RE: [Zope] newbie changingover to zope from html/cgi??

2000-06-17 Thread Stephan Richter

At 12:12 AM 6/18/00 +0530, you wrote:
can i replace javascript with python/DTML. I have used drop down menus in
the pages using javascript. Is these available in Zope or is there some
way of using these.

Javascript is client based, whereby Zope handles only server-side 
activities similar to CGI. You usually have no way to replace Javascript, 
except in a few places.

Is there some book released on zope/DTML for reference.

There is the ZDP (http://zdp.zope.org), which includes the ZQR (Zope Quick 
Reference) that lists all the tags, but is outdated. We are currently 
working on a model to include a DTML reference into the Zope Online Help 
System. That should appear at the end of the summer in the Zope distributions.

Does this mean a complete rewrite of the code is required of all the
javascript and cgi files , or is there some method to convert them to
DTML.

Yes, you have to convert everything to DTML by hand. If you understand Zope 
well, you will find that you can do many thing easier and shorter in Zope. 
For most everyday tasks you have usually already a product written for you.
I think before converting the entire site you should first learn Zope and 
Python till you feel comfortable and then redesign your site from scratch, 
since Zope's advanced features and object model will allow you to do things 
differently (read: The right way!).

Regards,
Stephan
--
Stephan Richter @ Digital Creations
Zope Documentation
Since you cannot reach this mailbox from the world yet, please reply to 
[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] Re: From where does nothing spring from?

2000-06-17 Thread Graham Chiu

In article [EMAIL PROTECTED], Hung Jung Lu
[EMAIL PROTECTED] writes
This mistake happens all the time. :) Instead of "var", use "call".

 dtml-call "REQUEST.set('error',f_Email.isNotEmail(f_Email,_))"
 dtml-var "REQUEST.error"

(I think you face is red, now. ha! OK, I maybe wrong.)

Not really, I continue to be confused by Zope syntax and so make these
errors all the time g

-- 
Regards,  Graham Chiu
gchiuatcompkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and 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] Big folders

2000-06-17 Thread Albert Langer

[AL] As well as an ETA for Btrees, in the absence of ZPatterns
documentation, could somebody please post URLs for specific references to
further information about Btrees in particular and Zpatterns in general,  -
eg email list archives and other Wickis particular thread URLs etc.

I've been studying the ZPatterns Wicki and code with a view to following up
on Kevin's earlier email reference to it which I posted to Zcommerce
recently. Didn't notice any explicit reference to Btree folders within
ZPatterns. As far as I can make out, Kevin is saying, and appears to be
right, that by designing for "Zpatterns" it should be feasible use either
ZODB or an RDBM without having to rewrite the whole application, and also
feasible to rewrite just the parts that are affected by different facilities
on different RDBMs to support more than one RDBM option. (Of course if a
Zope application is NOT designed from the start to do that, but simply
assumes the ZODB will be the only data source, this would not apply.
Unfortunately the two currently available Zope ecommerce products appear to
have taken that route).

However I got a strong impression ZPatterns may not be as useful as I
thought, in a recent exchange with Chris McDonough in an OpenACS bboard
(attached, with link to discussion). Any comments and references from Kevin
and other people more familiar with ZPatterns would be appreciated.

BTW While Btrees might make ZODB usable with very large folders I can't see
how it would make it better than using an RDBM in that situation (hopefully
under Zope, using ZPatterns). Once you have a lot more data than fits in RAM
you are likely to also have a higher ratio of writes to reads than ZODB is
"aggressively optimized" for, and need an application design that explicitly
optimizes for relational operations on subsets of data rather than
navigating from one linked object to another as OODBMs are designed to do.
Using an OODBM like ZODB would mean a full disk seek for every item, which
RDBMs are designed to avoid. Likewise if you need concurrent external access
to the same data via ODBC I don't see how ZODB Btrees would help (eg for
ecommerce links to General Ledger and fulfilment etc).

What worries me is that in the absence of actual working examples of how to
handle RDBMs with ZPatterns, I have had to recommend that someone needing an
RDBM based application (Ecommerce) use the OpenACS ecommerce module and just
kludge a way to also use Zope for other things in parallel.

I'll be discussing the specific implications for ecommerce in Zcommerce, but
perhaps here is better for info on ZPatterns and RDBMs generally?

Also, although still not sufficiently well informed, I have a strong feeling
that the features of Postgresql as an ORDBM as opposed to an ODBM or an RDBM
are particularly relevant to Zope.

As well as a normal external Python API, Postgresql has the capability to
run scripting code as well as C functions inside the database engine as a
stored procedure language and also for dynamically loaded user defined data
types and comparison operators etc. It is a true "Object" Relational DBMS
rather than a conventional RDBMs. Already implemented for Tcl. If some
Zope/Python code was put inside it, designed to work with attribute
providers and especially indexing agents and rule agents for ZPatterns, it
strikes me that the combination could be incredibly powerful.

Has there been any discussion of that, or any thoughts now?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Jimmie Houchin
Sent: Sunday, June 18, 2000 7:12 AM
To: Kevin Dangoor
Cc: Zope Mailing List
Subject: Re: [Zope] Big folders

[JH]
Thanks, this is great info.

I was planning on developing with ZPatterns but haven't downloaded or
began yet. I wasn't aware that a Rack could do that. Cool.

I don't mind going to a RDBMS if necessary, but if possible I like
sticking with Zope/ZODB.

Does anyone have an eta on BTrees for ZODB?

Jimmie Houchin


Kevin Dangoor wrote:

 [snip]
[JH]
  My databases will have millions of objects in what would/will be single
  table/folders. From what I understand ZODB doesn't currently do big
  folders well.
 
  So I guess my question is, should I continue with the SQL and the RDBMS
  or is there a solution that I don't know about or understand with ZODB?

[KD]
 As Shane mentioned, there's a BTreeFolder in the works. Additionally, you
 can use the "Rack" from ZPatterns. If you design for a Rack, you can
switch
 to an RDBMS later on without having to change your application code. But,
 you might not need to switch to an RDBMS, because the current Rack
 implementation can store objects using BTrees within the ZODB. So,
 theoretically, you can have great big piles of objects within a single
Rack.

 Unfortunately, ZPatterns is still very new and there is not a lot of
 documentation. But, when you start playing with it, things become a bit
 clearer.

 Kevin




Chris McDonough ([EMAIL PROTECTED]) responded 

Re: [Zope] newbie changingover to zope from html/cgi??

2000-06-17 Thread George Donnelly

you do need zope to be installed on your isp (webhost). not all hosts will
allow it though. you should ask whether they have any policy about
long-running processes.

in order to install you need to download the appropriate version of zope,
ftp it into the appropriate place and then unpack it and there's more.

download zope and then take a good look at the included documentation. it
can be confusing but you'll just have to work thru it. there are also some
how-to's on the zope.org site that can help fill in some of the gaps.

as far as perl goes maybe this will help:
http://www.zope.org/Members/Mamey/PHP

as far as converting your previous site, it will most-likley not be a
one-click thing. it shouldn't be too difficult though. the strcuture and
organization that works well for html/perl stuff is not the optimal one for
zope. in zope you can break stuff down into pieces, like a header footer and
etc and then include them anywhere for example (maybe you are already doing
this with ssi.)

hth


Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
The man who tried his best and failed is superior to the man who never
tried. --Bud Wilkinson

 
 Hi,
 I am newbie to zope(infact installed it yesterday). Just impressed with
 its capabilities. But there are somethings i cant figure out.
 
 I want to transfer a whole website containg javascript/html/cgi on
 zope. how do i do it. is it possible.
 
 Do i need to have zope on the ISP for my zope website to run.
 
 I only have ftp access on my ISP. Which files should i transfer so that
 the zope application works. btw i couldnot locate the files/database on my
 system about the webiste i am building. where is the database for the
 application kept.
 
 I donot know python but do know perl, can i add modules to zope in perl.
 
 Thanks.


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