Re: [Zope-dev] (no subject)

2009-05-12 Thread Malthe Borch
Chris McDonough  plope.com> writes:
> This is a pattern that happens over and over again in Zope
> development.  In my personal opinion, the original error was trying
> to make the subframework configurable at all.  Instead, the
> subframework should be replaceable easily, but it should itself be
> relatively rigid.  At very least, for subframeworks that really do
> require extra configuration (should be very few), this configuration
> should be done via highly specialized ZCML directives (or grokkers),
> as opposed to some very general adapter registration that can't be
> easily discerned from other adapter registrations by a newbie.

I agree very much that the various default Zope components could be
much more rigid; this would make it easier to understand the
application flow and better realize when to subclass or replace.

If rigid means less configurable, then perhaps components could be
made flexible by better adapting to the objects given to them,
e.g. use the interfaces system to tell what kind of functionality
objects inhibit and provide flexibility through this route.

As such, instead of attempting to look up a custom traverser for an
object, ask the object "do you provide your own traversal
logic?". Instead of components being primarily pluggable, they could
be adaptive.

\malthe

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


Re: [Zope-dev] (no subject)

2005-07-18 Thread Andreas Jung



--On 18. Juli 2005 23:18:59 +0530 Hitesh Shetty <[EMAIL PROTECTED]> 
wrote:



Can somebody tell me where can i get manuals on zodb




-aj


pgpn6cKqOkPTz.pgp
Description: PGP signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] (no subject)

2004-02-19 Thread Andreas Jung
Could you please ask a *detailed* question or ask for assistance in a 
particular problem??
-aj

--On Mittwoch, 18. Februar 2004 15:21 Uhr + Fábio Bruno 
<[EMAIL PROTECTED]> wrote:

Dear Sir or Madame
I'm workig with DTML methods and after putting the valors I can't see the
values again.I would like to know if some can help me on after put the
values can see them.
Yours faithfully,
Fábio Bruno
_
MSN Messenger: converse com os seus amigos online.
http://messenger.msn.com.br
___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -  http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )




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


Re: [Zope-dev] (no subject)

2003-02-08 Thread Casey Duncan
There are some existing products that might interest you. One is 
DocumentLibrary, a DMS system I wrote a while ago. Although it is not really 
maintained anymore, it could at least give you something to start from.

The other is ZopeVersionControl (available from cvs.zope.org), which is a 
product for performing application level (rather than database as Zope does 
out of the box) version control of Zope objects. To see how it is used you 
might also take a look at CMFStaging (also at cvs.zope.org).

Zope Corporation's Turbo Intranet might also interest you. It will give you a 
DMS w/version control and training on how to customize and extend it: 
http://www.zope.com/Training/Training/Training/TurboIntranetTraining

hth,

-Casey


On Saturday 08 February 2003 05:16 am, Anitha George wrote:
> Hi all
>I am trying to develop a Document Management System in zope.The 
> features that have to be implemented managing folders,maintaining versions 
> of an object,uploading a file,etc.I believe Zope supports all these 
> features. I am planning to build an interface above the Zope ZMI and use 
> these features. For this I have to understand which are the library files 
> which carry out this function of managing folders and maintaining versions. 
> Could any of you please help me out in understanding the Zope API i.e which 
> are the libraries and files used for the above mentioned features so that I 
> can implement it in my appication. Please help me out.I would be really 
> grateful.Thanks in advance.Awaiting a quick response.
> 
> Regards,
> Anitha


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



Re: [Zope-dev] (no subject)

2003-02-08 Thread Dario Lopez-Kästen
Hi,

First of all, I suggest that you start by looking into the following
Ready-To-Use Zope Apps:

CPS (www.cps-project.org), (www.plone.org), Silva
(http://www.infrae.com/products/silva)

These are systems that may allready have what you are looking for in terms
of functionality. If they serve your purpose, all you have to do is adapt
their look and feel to suit your needs. There are other's as well, IIRC -
perhps others can suggest them.

I any event, if you want to build your own, or want to learn enough to do
more than visual tweaking of the above, you would start by looking into the
Zope Book (if you haven't allready)
http://www.zope.org/Documentation/Books/ZopeBook/ and then the Zope
Developer's Guide, http://www.zope.org/Documentation/Books/ZDG/.

More docs can be found at http://www.zope.org/Documentation

And - you probably will have to read the source for Zope if you want to
understand how things really work.

Hope this helps. Good luck.

/dario


- Original Message -
From: "Anitha George" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 08, 2003 11:16 AM
Subject: [Zope-dev] (no subject)


>
> Hi all
>I am trying to develop a Document Management System in zope.The
> features that have to be implemented managing folders,maintaining versions
> of an object,uploading a file,etc.I believe Zope supports all these
> features. I am planning to build an interface above the Zope ZMI and use
> these features. For this I have to understand which are the library files
> which carry out this function of managing folders and maintaining
versions.
> Could any of you please help me out in understanding the Zope API i.e
which
> are the libraries and files used for the above mentioned features so that
I
> can implement it in my appication. Please help me out.I would be really
> grateful.Thanks in advance.Awaiting a quick response.
>
> Regards,
> Anitha
>


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



Re: [Zope-dev] (no subject)

2001-03-16 Thread Gregor Heine

Hi Menno,

what you get from the form is a FileUpload object, so try this:
print file.__dict__
and you will find out that it has a method called
file.read()
which returns the data of the uploaded file.

Cheers,

Gregor!


-Original Message-
From: "Menno Brandsen" <[EMAIL PROTECTED]> 
To: <[EMAIL PROTECTED]> 
Date: Fri, 16 Mar 2001 03:46:45 +0100 
Subject: [Zope-dev] (no subject) 



I have a question regarding images in a MySQL Database 

I'm trying to insert (and retrieve) images into a mysql database I use a 
standard upload form and a normal insert statement in the sql. 
The output i get is this :  which is clearly not the correct data 

Can someone help me out with this, i need to get the data from the image in 
some sort of way, but i dont know how to do this ! 



Friendly greetings, 
Menno Brandsen 

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

2001-03-16 Thread Dieter Maurer

Menno Brandsen writes:
 > I'm trying to insert (and retrieve) images into a mysql database I use a
 > standard upload form and a normal insert statement in the sql.
 > The output i get is this :  86550c8> which is clearly not the correct data
To get the file content, you call the object's "read" method:

   


Dieter

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

2000-10-15 Thread Gregor Heine

> I recently asked how to read in and render the contents of 
> an external file, which doesn't work anymore using 
> Zope 2.2.2 an LocalFS' xxx.read(), and You responded that
> 
> > The quickest solution for you would be an external method
> > that gets the file, performs the "read" and returns the result.
> 
> Now I use in an external method fsreadin a .py-module with
> 
> import sys
> def readinfile (self, html):
> """Ralf Herolds way to read in local file objects."""
> file = open(html, "r")
> filecontent = file.read()
> file.close()
> return filecontent
> 
> which is referenced in a DTML method by 
> .
> 
> It works, but I almost cannot believe that this is that 
> simple - am I missing something, is security a concern?
> 

It *is* that simple. The only problem is security. That way, you can read
*any* file that has read permission for the user, the zope process is
running on, e.g. everybody could use something like
http://your.host/fsreadin?html='/etc/passwd' to view your password file.
If you want to read files only from one directory, you could use:

import sys, os, string
def readinfile (self, file):
"""Ralf Herolds way to read in local file objects."""
 
file=file[max(string.rfind(id,'/'),string.rfind(id,'\\'),string.rfind(id,':'
))+1:]
path=os.path.join('/tmp','var',file)
file = open(path, "r")
filecontent = file.read()
file.close()
return filecontent

This would ensure, that only files from /tmp/var can be read.

Cheers,
Gregor!



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

2000-10-14 Thread ralf . herold

Hello Dieter, dear list readers,

I recently asked how to read in and render the contents of 
an external file, which doesn't work anymore using 
Zope 2.2.2 an LocalFS' xxx.read(), and You responded that

> The quickest solution for you would be an external method
> that gets the file, performs the "read" and returns the result.

Now I use in an external method fsreadin a .py-module with

import sys
def readinfile (self, html):
"""Ralf Herolds way to read in local file objects."""
file = open(html, "r")
filecontent = file.read()
file.close()
return filecontent

which is referenced in a DTML method by 
.

It works, but I almost cannot believe that this is that 
simple - am I missing something, is security a concern?

Thanks for answering, Yours. Ralf Herold
mailto:[EMAIL PROTECTED]  http://www.knm-poh.charite.de/ 

> -Original Message-
> From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 04, 2000 1:46 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Zope-dev] (no subject)

> In earlier Zope versions, a method without a permission meant
> "can be used freely". Now, it means "cannot be used via DTML/URL".
> 


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

2000-10-04 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
 > using LocalFS 0.95 war fine until trying to upgrade to Zope 2.2.2. Both
 > freshly installed, the following snippet raises the error: "Unauthorized",
 > "You are not authorized to access read.":
 > 
 > 
 > 
 > 
In earlier Zope versions, a method without a permission meant
"can be used freely". Now, it means "cannot be used via DTML/URL".

Thus, you must provide a permission for "read".
Unfortunately, "read" is not a method of "LocalFS" but from
the Zope objects wrapped around the files.
You, probably, will not want to change the respective Zope
sources.

The quickest solution for you would be an external method
that gets the file, performs the "read" and returns the result.

Alternatively, you may subclass the Zope object classes,
provide a permission for "read" and use them in
"LocalFS._create_".


Dieter

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

2000-06-06 Thread Chris McDonough

I was kicking the idea of making one around, but I don't think I'll have
time to do it.

There's a document on how to write a Zope database adapter by Chris
Petrilli at:

http://www.zope.org/Members/petrilli/WritingADA

Since the Python layer has been (well) done by Alex, it shouldn't be too
hard to make one if you're OK with Python.

Good luck!

> -Original Message-
> From: kyn [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 07, 2000 12:34 AM
> To: '[EMAIL PROTECTED]'
> Subject: [Zope-dev] (no subject)
> 
> 
> Hi Zope-developers,
> 
> I try out Zope last week and was greatly impressed with the 
> flexiblity of the zope system.  Now, I am thinking of porting 
> my Company intranet to zope but I have one problem.  Our 
> company backend database servers (for items catelogs, leave 
> application ...etc) sits on Inprise Interbase server.   I 
> check through all the mailing list and unable to find an 
> adapter to it.
> 
> Currently, I notice that Inprise has made Interbase an open 
> source database system on linux. Is there anyone looking into 
> coming out with an adapter on Interbase ?
> 
> Or someone in the developing labs can give me guidelines on 
> how to write an adapter for Inprise Interbase on linux.  I 
> manage to get a copy python code that can access Interbase 
> server on linux.  Credit has to be given to Alexandra (email 
> :'[EMAIL PROTECTED]').
> 
> Need advise ...
> 
> 
> bye ... kyn
> 
> 
> 
> 
> ___
> 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 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 )