Re: [Zope] Managing Content Access and Multiple Users

2005-12-23 Thread Chris McDonough

Hi Francisco,

This may not be what you *want* to read ;-), but this is how I (and  
many others) do it:


http://www.plope.com/Members/chrism/zope_collab

- C


On Dec 23, 2005, at 2:16 PM, Francisco Chamorro wrote:

Hi everyone, I have a process question and wanted to know what  
tools are available in zope to help me solve this issue.  A total  
of 6 developers/producers access zope on a daily basis and make  
updates to pages, sometimes the same pages.


The problem I'm having is that sometimes one developer will make  
changes to a page, push those changes to our preview environment  
for client review and wait for client feedback.  Then another  
developer will access the same page, make his own changes (not  
realizing there are changes not approved) and push his changes and  
the non-approved ones to live, causing products to go live before  
they are supposed to etc.


What tools (if any) are available to help me solve this issue?  My  
first thought was to install CVS, but I'm not entirely sure that  
will solve it entirely.  Are there any tools available for work  
flow in zope?  Any help would be really appreciate.


Thank you.

-Francisco


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


Re: [Zope] Re: Leave the ivory tower now!

2005-12-23 Thread Nicolas Georgakopoulos



Michael Haubenwallner wrote:


Nicolas Georgakopoulos wrote:


Here are my ideas to make Zope 3 the most successful framework ever:


Make them love Zope at the very first look:

   * Make installing Zope a double-click or one-command-only 
experience and

   * offer a 30 minutes tutorial of programming an useful application
 including an audiovisual show for an appetizer that offers a 
feeling

 of success.

Enable the beginners:

   * Easy to read and understand ‹ but still complete and current ‹
 documentation is a must.
   * Avoid cluttering everything about Zope across articles, blogs, 
chats,
 mailing lists and wikis. Keep everything available and 
searchable at

 one central location.


 



I think "Make them love Zope at the very first look" and "Enable the 
Beginner" is on the same issue , I consider my self a beginner and 
trying to learn Zope I found many resources on google but a little 
bit of "chaos" , a better united source from the central Zope 
(Zope.org) it is required. I is a shame to know that there is a big 
help and a big community but not so well united and organized.
Zope Book 2.7 it is in the same stage it was before 3,5 months ago 
when I started to reading it with some example only in DTML when Zope 
encourage leaving DTML for ZPT.
The how-to section 
(http://www.zope.org/Documentation/How-To/index_html?&sort_on=modified&sort_order=reverse) 
have *_only_* 3 post's for the year *2005 *!!!
A Zope editor is a must or to find another way more flexible ! 
external editor product it is steel a way but a ugly way in my 
opinion (no offense for the product) , to add numbers on every line 
when coding it will be a big step.


I don't want to blame the official Zope team , the are running with 
hard work for sure. It is just that Zope can do so much thing's 
compare to other products out there but important details have been 
left unaccomplished...


I hope the point of this mail is to make Zope better and not to be 
considered as an accusation or an attack...


Zope need and can become better :)




zope.org HowTos are something between 1000 and 3000 documents. 
Everyone  wanting to help to review and consolidate that information 
is welcome to send a note to [EMAIL PROTECTED] or to the zope-web 
mailing list (zope-web@zope.org).


Michael


I think you are wrong , on Zope site it say's -> Zope How-Tos 1- 20 of 300

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


Re: [Zope] Managing Content Access and Multiple Users

2005-12-23 Thread Andreas Jung



--On 23. Dezember 2005 11:16:22 -0800 Francisco Chamorro 
<[EMAIL PROTECTED]> wrote:




What tools (if any) are available to help me solve this issue?  My first
thought was to install CVS, but I'm not entirely sure that will solve it
entirely.  Are there any tools available for work flow in zope?  Any help
would be really appreciate.



I would use CMF as basis for such a product. Use DCWorkflow to create a 
workflow for your content. Then you can implement any business-logic 
(checkin-checkout etc.) on top of a workflow. If you need something outside 
CMF you can re-use the WebDAV locking mechanism.


-aj


pgpHC4Awp6WgV.pgp
Description: PGP signature
___
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] Managing Content Access and Multiple Users

2005-12-23 Thread Francisco Chamorro
Hi everyone, I have a process question and wanted to know what tools are 
available in zope to help me solve this issue.  A total of 6 
developers/producers access zope on a daily basis and make updates to pages, 
sometimes the same pages.


The problem I'm having is that sometimes one developer will make changes to 
a page, push those changes to our preview environment for client review and 
wait for client feedback.  Then another developer will access the same page, 
make his own changes (not realizing there are changes not approved) and push 
his changes and the non-approved ones to live, causing products to go live 
before they are supposed to etc.


What tools (if any) are available to help me solve this issue?  My first 
thought was to install CVS, but I'm not entirely sure that will solve it 
entirely.  Are there any tools available for work flow in zope?  Any help 
would be really appreciate.


Thank you.

-Francisco


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


Re: [Zope] Change ZSQLMethod connection id

2005-12-23 Thread Tino Wildenhain
Fabio schrieb:
> 
>>No its not. Thats whe whole point. You can always
>>look up
>>context.somewhere[variable].yourzsqlmethods.yourzsqlmethod(params...)
>>
>>where variable holds the name of the connection folder.
> 
> 
> I make an example.
> 
> two user:
> 
> pippo -> db connection: dbpluto (holds in session in dbname var)
> pluto -> db connection: dbpippo (holds in session in dbname var)
> 
> when pippo call /include/utils/getData I want to execute query using dbpippo
> when pluto call /include/utils/getData I want to execute query using dbpluto
> 
> how can I call getData?
> in this way:
> "here/context/SESSION/dbname/include/utils/getData" ?
> 
> I think isn't right but I don't know how set "somewhere[variable]" of your 
> example.

This example is completely wrong. First you need to read:

http://www.plope.com/Books/2_7Edition/Acquisition.stx

and:

http://www.plope.com/Books/2_7Edition/BasicScripting.stx

You would code your access to the zsql method in a python script.

And I dont know why you mess with sessions anyway - if its a
user, it has been logged in and you know his/her name via
User API (also look into the book)

I cant do it all for you :-) You will know how to read
my example when your read the book chapters :-)

My advice however is to stick to one connection and
perhaps use the username as argument for housekeeping
or whatever you do.

HTH
Tino
___
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] [ANN] Zope 2.9.0 beta 2 released

2005-12-23 Thread Andreas Jung


Hi all,

on behalf of Zope Corporation and the Zope community I am pleased to 
announce the release of Zope 2.9.0 beta 2 (the x-mas release)


You can download  it from

 http://www.zope.org/Products/Zope/2.9.0b2/


Some new features of Zope 2.9:

 - ZODB 3.6

 - Five 1.2

 - integration for Zope 3 events for object creation and deletion

 - Zope 3 i18n integration for page templates


For more information on what is new in this release, see the
CHANGES.txt files for the release:

 http://www.zope.org/Products/Zope/2.9.0b2/CHANGES.TXT


Please bring all the bugs you have found to the Zope bugtracker:

  "http://collector.zope.org/Zope":http://collector.zope.org/Zope

For more information on the available Zope releases, guidance for selecting
the right distribution and installation instructions, please see:

  http://www.plope.com/Books/2_7Edition/InstallingZope.stx


Support Python versions:

 Zope 2.9 requires Python 2.4.2 (Python 2.4.1 is still acceptable).
 Older Python versions are no longer supported.


Thanks to all being involved in this release.

--
Andreas Jung(andreas at zopyx dot com)


pgpk2odV73QGP.pgp
Description: PGP signature
___
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 )


Re: [Zope] Change ZSQLMethod connection id

2005-12-23 Thread Tino Wildenhain
Fabio schrieb:
> Thanks for your reply but... 
> I have to change ZSQLMethod's connection_id according to a variable in 
> session 
> (so every user has its own database) while your method (if I understand it) 
> is static. Isn't it?

No its not. Thats whe whole point. You can always
look up
context.somewhere[variable].yourzsqlmethods.yourzsqlmethod(params...)

where variable holds the name of the connection folder.

However, your approach isnt recommended even with small number of
users your connections to the database will explode
to zopethreads x users

There was a thread about "per user connection"
on this list. Maybe you can join the group of promoters
and help the people?

Regards
Tino

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


Re: [Zope] Change ZSQLMethod connection id

2005-12-23 Thread Tino Wildenhain
Fabio schrieb:
> Hi!
> in my zope application I call ZSQLMethods from python script. Is it possible 
> to set "connection id" property of a ZSQLMethod before call it?
> 
> How?
> ZSQLMethod.propertyItems() return only ('title','')

If you set it only one time, you should be able to read it from ZMI
page how to set it (just lookup the method call of the form
and the variables it takes)

If however you want to change it on every call, your ZODB is
going to bloat badly - every change is saved.

In this case you might want to create 2 folders and put
both database connection objects with identical ID
in each of them:

somewhere/aconnectionfolder/dbconnection
somewhere/bconnectionfolder/dbconnection

and set in all your ZSQL methods "dbconnection"
as connection (perhaps while you edit them, use
this path:

somewhere/aconnectionfolder/whereyourzsqlmethodis/yourzsqlmethod/manage_main

where "whereyourzsqlmethodis" does not have to be physically
there (read about Acquisition)

Now, if you want to use one or the other connection, just use:

context.somewhere.aconnection.pathtoyourzsqlmethods.yourzsqlmethod(params...)

or

context.somewhere.bconnection.pathtoyourzsqlmethods.yourzsqlmethod(params...)

while you can even parametrize the path as usually.

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


Re: [Zope] Change ZSQLMethod connection id

2005-12-23 Thread David H

Andreas Jung wrote:




--On 23. Dezember 2005 13:33:08 +0100 Fabio <[EMAIL PROTECTED]> 
wrote:



Hi!
in my zope application I call ZSQLMethods from python script. Is it
possible  to set "connection id" property of a ZSQLMethod before call 
it?


How?
ZSQLMethod.propertyItems() return only ('title','')



perhaps

zsql_method.connection_id = '' might to the job. See DA.py

-aj

 


Fabio,

This, I think, is something I found in ZopeLabs some time ago. 
-

objs = container.ZopeFind(container,
 obj_metatypes=['Z SQL Method'],
 search_sub=1)
# module:  pyPsycopgPropertyChanges
path_list = []
for path, method in objs:

  title = method.title
  conn_id = 'Psycopg_database_connection'
  args = method.arguments_src
  body = method.src

  method.manage_edit(title, conn_id, args, body,max_rows=5000)
  path_list.append(path)

header = "Fixed up the following methods - %s out of total sql count of 
%s"%(str(len(path_list)), str(len(objs)))

body="%s"%join(path_list, '')
return header+body
-
HTH,
David



___
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] Re: Leave the ivory tower now!

2005-12-23 Thread Michael Haubenwallner

Nicolas Georgakopoulos wrote:


Here are my ideas to make Zope 3 the most successful framework ever:


Make them love Zope at the very first look:

   * Make installing Zope a double-click or one-command-only 
experience and

   * offer a 30 minutes tutorial of programming an useful application
 including an audiovisual show for an appetizer that offers a feeling
 of success.

Enable the beginners:

   * Easy to read and understand ‹ but still complete and current ‹
 documentation is a must.
   * Avoid cluttering everything about Zope across articles, blogs, 
chats,

 mailing lists and wikis. Keep everything available and searchable at
 one central location.


 



I think "Make them love Zope at the very first look" and "Enable the 
Beginner" is on the same issue , I consider my self a beginner and 
trying to learn Zope I found many resources on google but a little bit 
of "chaos" , a better united source from the central Zope (Zope.org) it 
is required. I is a shame to know that there is a big help and a big 
community but not so well united and organized.
Zope Book 2.7 it is in the same stage it was before 3,5 months ago when 
I started to reading it with some example only in DTML when Zope 
encourage leaving DTML for ZPT.
The how-to section 
(http://www.zope.org/Documentation/How-To/index_html?&sort_on=modified&sort_order=reverse) 
have *_only_* 3 post's for the year *2005 *!!!
A Zope editor is a must or to find another way more flexible ! external 
editor product it is steel a way but a ugly way in my opinion (no 
offense for the product) , to add numbers on every line when coding it 
will be a big step.


I don't want to blame the official Zope team , the are running with hard 
work for sure. It is just that Zope can do so much thing's compare to 
other products out there but important details have been left 
unaccomplished...


I hope the point of this mail is to make Zope better and not to be 
considered as an accusation or an attack...


Zope need and can become better :)




zope.org HowTos are something between 1000 and 3000 documents. Everyone 
 wanting to help to review and consolidate that information is welcome 
to send a note to [EMAIL PROTECTED] or to the zope-web mailing list 
(zope-web@zope.org).


Michael

--
http://zope.org/Members/d2m
http://planetzope.org

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


Re: [Zope] Leave the ivory tower now!

2005-12-23 Thread Nicolas Georgakopoulos

Here are my ideas to make Zope 3 the most successful framework ever:


Make them love Zope at the very first look:

   * Make installing Zope a double-click or one-command-only experience and
   * offer a 30 minutes tutorial of programming an useful application
 including an audiovisual show for an appetizer that offers a feeling
 of success.

Enable the beginners:

   * Easy to read and understand ‹ but still complete and current ‹
 documentation is a must.
   * Avoid cluttering everything about Zope across articles, blogs, chats,
 mailing lists and wikis. Keep everything available and searchable at
 one central location.


 



I think "Make them love Zope at the very first look" and "Enable the Beginner" is on the 
same issue , I consider my self a beginner and trying to learn Zope I found many resources on google but a 
little bit of "chaos" , a better united source from the central Zope (Zope.org) it is required. I 
is a shame to know that there is a big help and a big community but not so well united and organized.
Zope Book 2.7 it is in the same stage it was before 3,5 months ago when I 
started to reading it with some example only in DTML when Zope encourage 
leaving DTML for ZPT.
The how-to section 
(http://www.zope.org/Documentation/How-To/index_html?&sort_on=modified&sort_order=reverse)
 have *_only_* 3 post's for the year *2005 *!!!
A Zope editor is a must or to find another way more flexible ! external editor 
product it is steel a way but a ugly way in my opinion (no offense for the 
product) , to add numbers on every line when coding it will be a big step.

I don't want to blame the official Zope team , the are running with hard work 
for sure. It is just that Zope can do so much thing's compare to other products 
out there but important details have been left unaccomplished...

I hope the point of this mail is to make Zope better and not to be considered 
as an accusation or an attack...

Zope need and can become better :)



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


Re: [Zope] Change ZSQLMethod connection id

2005-12-23 Thread Andreas Jung



--On 23. Dezember 2005 13:33:08 +0100 Fabio <[EMAIL PROTECTED]> wrote:


Hi!
in my zope application I call ZSQLMethods from python script. Is it
possible  to set "connection id" property of a ZSQLMethod before call it?

How?
ZSQLMethod.propertyItems() return only ('title','')



perhaps

zsql_method.connection_id = '' might to the job. See DA.py

-aj



pgpj19i0w6rY9.pgp
Description: PGP signature
___
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 )


Re: [Zope] where to put openflow in Zope3.1.0

2005-12-23 Thread Stephan Richter
On Thursday 22 December 2005 15:59, Martijn Pieters wrote:
> On 12/22/05, adeline nombre <[EMAIL PROTECTED]> wrote:
> > Can somebody tell me where I have to put my openflow directory . I use
> > Zope3.0.1.
> > In the readme.txt file, it is said I have to put it in
> >  lib/python/Products of my zope installation. but this directory does not
> > exist. so where do I have to put it?
>
> OpenFlow is a Zope 2 Product and I doubt it'll work with Zope 3. Zope
> 3 indeed does not have a Products directory.

Right. Additionally, if you use Zope 3.2 or the trunk then you can download 
the zope.wfmc and zope.app.wfmc packages from the repository, which are 
activity-based workflows a la WfMC too.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
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] Change ZSQLMethod connection id

2005-12-23 Thread Fabio
Hi!
in my zope application I call ZSQLMethods from python script. Is it possible 
to set "connection id" property of a ZSQLMethod before call it?

How?
ZSQLMethod.propertyItems() return only ('title','')

Thanks,
Fabio
-- 

Dott. Fabio Marcone

2T srl
Telefono+39 - 0871- 540154
Fax +39 - 0871- 571594
Email   [EMAIL PROTECTED]   
Indirizzo   Viale B. Croce 573, 66013 Chieti Scalo (CH)
___
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 )