[Zope] Re: Newbie Question-Mysql

2007-04-17 Thread xor exor

Hi list,i'm developig and iptables management tool via zope, so i have

prewritten python modules that do some action with mysql database,so to
integrate that modulse with zope do i need something extra? Or just
registering the class and calling the proper methods ?

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


[Zope-dev] Newbie Question

2003-12-08 Thread Aaron Paxson
I hope I'm posting to the right mailing list.  There were so many to decide
from.

I've just been introduced to Zope, and am curious on how it will fit into my
company's plans.

I'm currently learning Java, and was starting to learn the RedHat Web
Application Framework.  I've found Zope in an article on the web, and
started to look into it.  It looks to be just as scalable, but I'm curious
on how extensible it is, as well as, it's power in a corporate environment.

For example, how extensible is it, to modify the security module and have it
authenticate against LDAP?  (I don't want all my users to remember yet
another password) Also, how powerful is Python as compared to Java?  Since
it uses a native compiler, it stands to reason that it would be faster than
Java, but what of it's objects and packages?  (i.e. Does it have an image
manipulation package, or networking packages?)

I must say, seeing the documentation and books alone, tells me the product
is good, and something I can learn.  I see alot of Hope for Zope grin,
couldn't resist, but I don't want to get into it, just to see if it doesn't
fit into my plans.

For those who want a couple of examples, I have 3 projects for our
intranet/extranet/internet applications:

1).  Images and cataloging (where, our development team can upload their
images, and the intranet application will take that image and export it to a
JPG to update the web catalog, and move the original file to our FTP site
for our photographers.

2).  Document Management (Uploading of files, and inputting data to index on
those files for searching)

3).  Obviously the usual (Content Management and Portals) which I'm sure
Zope does a good job at.

Thanks in advance!!  Again, my apologies if there is a better list for this
post.

Aaron Paxson
Network Operations Manager
Decorative Concepts, Inc
http://www.decorativeconcepts.com

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

2003-12-08 Thread Peter Sabaini
Aaron Paxson wrote:
I hope I'm posting to the right mailing list.  There were so many to decide
from.
This should've probably been directed to the main Zope list; zope-dev is 
for development *of* Zope.

I've just been introduced to Zope, and am curious on how it will fit into my
company's plans.
I'm currently learning Java, and was starting to learn the RedHat Web
Application Framework.  I've found Zope in an article on the web, and
started to look into it.  It looks to be just as scalable, but I'm curious
on how extensible it is, as well as, it's power in a corporate environment.
For example, how extensible is it, to modify the security module and have it
authenticate against LDAP?  (I don't want all my users to remember yet
another password) Also, how powerful is Python as compared to Java?  Since
it uses a native compiler, it stands to reason that it would be faster than
Java, but what of it's objects and packages?  (i.e. Does it have an image
manipulation package, or networking packages?)
There are Add-ons that do User authentification against LDAP servers, 
and its also not very hard to roll your own.

Zope is, generally speaking, *very* extensible -- see for example the 
long list of 3rd pary add-on products at http://www.zope.org/Products

I think Python is one of the greatest strengths of Zope. Its not only a 
modern full-fledged OOP language, comes with great libraries (see 
http://python.org/doc/current/modindex.html, and has even more to 
download separately) but is simply a joy to program in. Bruce Eckel put 
it very nicely IMHO: http://mindview.net/FAQ/FAQ-012 )

Also see:

http://csdl.computer.org/comp/mags/co/2000/10/rx023abs.htm
http://www.cis.udel.edu/~silber/470STUFF/article.pdf
http://www.twistedmatrix.com/users/glyph/rant/python-vs-java.html

There are good networking modules in the standard Python distribution; 
image manipulation can be done with eg. PIL 
(http://www.pythonware.com/products/pil/) or PythonMagick 
(http://www.procoders.net/moinmoin/PythonMagick)

I must say, seeing the documentation and books alone, tells me the product
is good, and something I can learn.  I see alot of Hope for Zope grin,
couldn't resist, but I don't want to get into it, just to see if it doesn't
fit into my plans.
For those who want a couple of examples, I have 3 projects for our
intranet/extranet/internet applications:
1).  Images and cataloging (where, our development team can upload their
images, and the intranet application will take that image and export it to a
JPG to update the web catalog, and move the original file to our FTP site
for our photographers.
2).  Document Management (Uploading of files, and inputting data to index on
those files for searching)
3).  Obviously the usual (Content Management and Portals) which I'm sure
Zope does a good job at.
Those are certainly suited for Zope

 - peter.

Thanks in advance!!  Again, my apologies if there is a better list for this
post.
Aaron Paxson
Network Operations Manager
Decorative Concepts, Inc
http://www.decorativeconcepts.com


smime.p7s
Description: S/MIME Cryptographic Signature
___
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] Newbie Question

2003-12-08 Thread Aaron Paxson
Thanks for resonding, even though there was a better list!  I've got some
fantastic replies, and was overwhelmed with the answers!

I'll definately give Zope a try.


-Original Message-
From: Peter Sabaini [mailto:[EMAIL PROTECTED]
Sent: Monday, December 08, 2003 10:32 AM
To: Aaron Paxson
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Zope-dev] Newbie Question


Aaron Paxson wrote:
 I hope I'm posting to the right mailing list.  There were so many to
decide
 from.

This should've probably been directed to the main Zope list; zope-dev is 
for development *of* Zope.

 I've just been introduced to Zope, and am curious on how it will fit into
my
 company's plans.
 
 I'm currently learning Java, and was starting to learn the RedHat Web
 Application Framework.  I've found Zope in an article on the web, and
 started to look into it.  It looks to be just as scalable, but I'm curious
 on how extensible it is, as well as, it's power in a corporate
environment.
 
 For example, how extensible is it, to modify the security module and have
it
 authenticate against LDAP?  (I don't want all my users to remember yet
 another password) Also, how powerful is Python as compared to Java?  Since
 it uses a native compiler, it stands to reason that it would be faster
than
 Java, but what of it's objects and packages?  (i.e. Does it have an image
 manipulation package, or networking packages?)

There are Add-ons that do User authentification against LDAP servers, 
and its also not very hard to roll your own.

Zope is, generally speaking, *very* extensible -- see for example the 
long list of 3rd pary add-on products at http://www.zope.org/Products

I think Python is one of the greatest strengths of Zope. Its not only a 
modern full-fledged OOP language, comes with great libraries (see 
http://python.org/doc/current/modindex.html, and has even more to 
download separately) but is simply a joy to program in. Bruce Eckel put 
it very nicely IMHO: http://mindview.net/FAQ/FAQ-012 )

Also see:

http://csdl.computer.org/comp/mags/co/2000/10/rx023abs.htm
http://www.cis.udel.edu/~silber/470STUFF/article.pdf

http://www.twistedmatrix.com/users/glyph/rant/python-vs-java.html

There are good networking modules in the standard Python distribution; 
image manipulation can be done with eg. PIL 
(http://www.pythonware.com/products/pil/) or PythonMagick 
(http://www.procoders.net/moinmoin/PythonMagick)

 I must say, seeing the documentation and books alone, tells me the product
 is good, and something I can learn.  I see alot of Hope for Zope grin,
 couldn't resist, but I don't want to get into it, just to see if it
doesn't
 fit into my plans.
 
 For those who want a couple of examples, I have 3 projects for our
 intranet/extranet/internet applications:
 
 1).  Images and cataloging (where, our development team can upload their
 images, and the intranet application will take that image and export it to
a
 JPG to update the web catalog, and move the original file to our FTP site
 for our photographers.
 
 2).  Document Management (Uploading of files, and inputting data to index
on
 those files for searching)
 
 3).  Obviously the usual (Content Management and Portals) which I'm sure
 Zope does a good job at.

Those are certainly suited for Zope

  - peter.

 Thanks in advance!!  Again, my apologies if there is a better list for
this
 post.
 
 Aaron Paxson
 Network Operations Manager
 Decorative Concepts, Inc
 http://www.decorativeconcepts.com
 

___
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] Zope Template Newbie question

2003-03-11 Thread David Cain
I'm trying to pull in another file with the following markup:

span tal:replace=here/level2bannerLevel2banner content goes
here/span

And it does pull the file in, but it quotes the entire HTML in that file
so that my browser doesn't interpret it:
   lt;img src=/images/page2leftbottom-blank.jpg width=331
height=39 border=0 class=banner alt=Categorygt;

This is not what I want.  What am I doing wrong, or how to I prevent the
quoting?

David Cain
Senior Web Developer, Information Systems Department 
Syracuse University Library
Syracuse, New York 13244-2010
(315) 443-5923
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]


___
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] Zope Template Newbie question

2003-03-11 Thread Adrian van den Dries
On March 11, David Cain wrote:
 And it does pull the file in, but it quotes the entire HTML in that file
 so that my browser doesn't interpret it:

http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/AdvZPT.stx

 Normally, the tal:replace and tal:content statements quote HTML
 tags and entities in the text that they insert. For instance, the
 the  character is quoted to amp;lt;. If you actually want to
 insert unquoted text, you need to precede the expression with the
 structure keyword.

a.

-- 
 Adrian van den Dries   [EMAIL PROTECTED]
 Development team   www.dev.flow.com.au
 FLOW Communications Pty. Ltd.  www.flow.com.au

___
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] Pre-newbie question: how to implement this app?

2000-11-08 Thread Don Dwiggins

I'm calling this a "pre-newbie" question because I'm not running Zope yet,
although I've been looking into it for some time, and have recently started
reading in earnest.  

I have an application that I think would be a good initial app for getting
into Zope, and I'd like some advice on how to go about it.  It's a basic
task list management system for a small group of developers, and it has the
following characteristics:
- There are two main entities: Task and Person.  The relationship between
  them is many-to-many (a person may be assigned to multiple tasks, a task
  may have multiple people assigned).
- There will be a relatively small number of tasks and people.
- Tasks will be added, removed, and modified frequently; people less so.
- When a task or person is removed, integrity should be maintained by
  removing assignments involving the removed entity.
- I'll start with a couple of basic views that let people see the tasks,
  their status, assignments, priorities, etc.  Later, there'll probably be
  more.
- I want to be able to add attributes to both entities at will.
- Initially, I'll be maintaining the list, but I'd like to add the
  capability for people to sign up for tasks, and to change the status of
  tasks they're assigned to.
- Security isn't an issue here, but avoiding blunders is.

Questions:
- What are the pros and cons of storing the entities in the ZODB vs. a
  relational DB?
- How best to represent the many-to-many relationship?  (Usually, in a
  relational DB, I'd use a relationship table such as PersonTaskAssignment.)
  In particular, how does Zope handle references between independent
  objects?
- What Zope products should I consider using to aid in the implementation?
- Is there already an app like this that I could adapt?

Thanks for any good words you can offer,

Don Dwiggins
Competitive Knowledge, Inc.


___
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] DUMB NEWBIE QUESTION

2000-10-17 Thread Ronald L. Chichester

I had this problem myself.  I'm using Mandrake 7.1.  There are some things to do, 
depending on which distribution you are using.  What I did was use KPackage to 
uninstall Zope.  Then you get

http://www.zope.org/Members/nemeth/howtos/zopeandapacherh61

and follow the instuctions.  This works for RedHat and Mandrake.  Should also work for 
Turbo Linux and may work for others.  That should get you started.

Hope that helps.

Ron
 ./.

CURTIS David wrote:

 Friends of Zope,

 I am trying to get MySQL database connection installed.  I was told that I need to 
use source Zope instead of RPM's !  Fine with me but how do I install Zope source 
over RPM.  I tried unpacking Zope Source and installing but it creates a new 
directory tar -xvf Zope-2.1 instead of creating a /var/zope.  Also zope starts 
automatically.  Are there techniques to work around this???


 ___
 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] A Newbie question

2000-08-09 Thread Hassan Aurag

 Hi,

 I have seen on the howtos how to let apache serve static pages, but I still haven't 
seen an answer to the following question:

 Suppose I already have a big site that uses perl/cshell. Now suppose I want to move 
to Zope but without loosing any of that site or even converting.

 What would the best solution be?

 Example:

 www.foo.bar is a huge site. 

 I want to move to Zope but wish to keep the site as is, only add zope objects with 
time. In other words, 90% of the site will stay static as is for a long time. How 
would you start this thing?



___
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] A Newbie question

2000-08-09 Thread rgines

Hi,

 I have seen on the howtos how to let apache serve static pages,
but I still haven't seen an answer to the following question:

Suppose I already have a big site that uses perl/cshell. Now
suppose I want to move to Zope but without loosing any of that
site or even converting.

 What would the best solution be?

I am assuming  that Apache is already your 'Front End'.   Even if
it is not, not a big deal.

 Example:

 www.foo.bar is a huge site.

 I want to move to Zope but wish to keep the site as is, only
add zope objects with time. In other words, 90% of the site
will stay static as is for a long time. How would you start this thing?

At my largest client I have a single Apache server which is front ending
probably close to a dozen differenct web server serives running on various
classes of machines.   Quite a few of them are just linked with their
normal URLs, but others are routed through Apaches proxy functions.

Let's say that the main site is www.foo.bar as you suggested and you
have Zope running under www.foo.bar:8080.   If you had a directory
under Zope that you wanted to serve called zoot, the normal URL of
course would be www.foo.bar:8080/zoot.   With the proxy functions
you can redirect the URL www.foo.bar/zoot to point to www.foo.bar:8080/zoot
and your end users are non-the-wiser for it.

Is there a performance hit?   Yes, a little.  The sites that I work on
under
this arrangement are not high traffic sites by any stretch of the
imagination,
but they do serve important information to a select group.   This allows
us to have what looks like a seemless environment even though it is a
function of Zope/Apache/IIS(ugh!!)/DominoGo/AlkalineSearch/WebFocus
and other servers.

Hope this helps.






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

2000-06-21 Thread kamon ayeva

Hi,

I have a text file object containing data I want to use to update a MySQL 
table.
I can get the data using the LocalFS object product and the howto from 
jfarr, but I don't know how to use ZSQL method and DTML method to inject 
this data in the table.
Any help would be appreciated.

Regards,
Kamon

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

2000-06-09 Thread Tino Wildenhain

Hi Randy,

 ...
I figured this would be easy to do with Zope.  I created a subdirectory
 called "modules" and put some modules into that; for example, "leftbuttons"
 is a dtml method containing a table data block which contains the standard
 left menu button HTML.  I figured I could whip up a page and at the
 appropriate place in that page, do a 'dtml-var "modules.leftbuttons"' and
 have that code inserted into the page.
 
That was my thinking.  "leftbuttons" views properly by itself.  However,
 when I try that dtml-var statment above, the page displays raw HTML.

try the following:
either:

dtml-var "modules.leftbuttons()"

or:

dtml-with modules
dtml-var leftbuttons
/dtml-with

the reason for this is: anything inside "" is a python expression,
meaning
it is interpreted as if you typed it into an running python-interpreter
(with the zope-context around, of course).
So python calls the ojects __repr__() method here to display it. For
string-like
objects __repr__==__str__ (with single quotes arount them)
For some zope objects "self-displaying" means showing their data as
source.

If you use dtml-var  without the quotes, zope does do some magic with
the __call__() method of the object. Calling a dtml-method renders its
output
rather then the source.
This is what is done in the first variant.

NB: often you have to provide the documents context to the method, 
so the above call is somthing like dtml-var
"modules.leftbuttons(_,_.None)"
(or such like - have to look again over some documentation or the list
for this)

HTH
Tino Wildenhain

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

2000-06-07 Thread Randy Edwards

   I've got a newbie question that I can't seem to find an answer to after
checking docs/faqs.  This is sort of design-related.

   Presently I write web pages as tabled modules which are each put into
various *.html files.  I then string pages together with various modules
using server side includes along with whatever specific code/text goes into
that page.

   I figured this would be easy to do with Zope.  I created a subdirectory
called "modules" and put some modules into that; for example, "leftbuttons"
is a dtml method containing a table data block which contains the standard
left menu button HTML.  I figured I could whip up a page and at the
appropriate place in that page, do a 'dtml-var "modules.leftbuttons"' and
have that code inserted into the page.

   That was my thinking.  "leftbuttons" views properly by itself.  However,
when I try that dtml-var statment above, the page displays raw HTML. 
Obviously I'm using a wrong tactic or am not grasping a concept here. 
Anyone want to smack me (again:-) with a clue-bat?  TIA.

-- 
 Regards, | Moore's Law: Every 2 years CPU power will double.
 .| 
 Randy| Gates' Law: Every 18 months software speed will halve.

___
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 newbie question on summation

2000-06-02 Thread Peter Sabaini


try 

  dtml-let total="_.int(SUNDAY) + _.int( ...

_.int() method tells zope you want (integer) numbers.

hth peter.


On Fri, 2 Jun 2000, Coleman, Bryan wrote:

:I can't seem to add variables using let. I just get a concatination of the
:integers. I am using ...
:
:dtml-let total="SUNDAY + MONDAY + TUESDAY + WEDNESDAY + THURSDAY + FRIDAY +
:SATURDAY"
:
:The days represent hours but are stored as integers in the database.
:
:- Bryan Patrick Coleman
:  Questcon Technologies
:  (336)273-2428
:  [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 )
:

-- 

_
peter sabaini, mailto: [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 )