[Zope] Re: Packing data.fs programmatically

2006-02-24 Thread Derrick Hudson
On Fri, Feb 24, 2006 at 09:18:35PM +, Chris Withers wrote:
| Derrick Hudson wrote:
| Chris,
| 
| On Tue, Jan 31, 2006 at 01:36:36PM +, Chris Withers wrote:
| | ZEO  Stepper
| 
| Is ZEO required to use Stepper?
| 
| Yes, otherwise you'd have to shut down your Zope instance to run Stepper ;-)
| 
| Does 'zopectl run' require exclusive access to the database?  (IOW
| must the zope server be stopped before zopectl run can be used?)
| 
| Not if you're using ZEO.

Thanks Paul and Chris.

| I just came across this thread and have a situation where this would
| be useful, however ZEO is not used for that deployment.
| 
| Then introduce it, it's simple to set up and adds a world of
| functionality!

I could.  I'd have to learn how to work with it :-).  The deployments
I've worked with are all single uniprocessor machines, thus ZEO
wouldn't yield a performance improvement.  I should learn ZEO one of
these days.

-D

-- 
If you hold to [Jesus'] teaching, you are really [Jesus'] disciples.
Then you will know the truth, and the truth will set you free.
John 8:31-32
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital 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] Re: Packing data.fs programmatically

2006-02-23 Thread Derrick Hudson
Chris,

On Tue, Jan 31, 2006 at 01:36:36PM +, Chris Withers wrote:
| ZEO  Stepper

Is ZEO required to use Stepper?

| Or if you don't like Stepper, then zopectl run...

Does 'zopectl run' require exclusive access to the database?  (IOW
must the zope server be stopped before zopectl run can be used?)


I just came across this thread and have a situation where this would
be useful, however ZEO is not used for that deployment.

-D

-- 
The fear of the Lord leads to life:
Then one rests content, untouched by trouble.
Proverbs 19:23
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital 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] Re: Issues with pyperl: perl2.so not found

2005-12-13 Thread Derrick Hudson
On Fri, Nov 04, 2005 at 07:54:25AM +1300, Cameron Beattie wrote:
| 
| On 11/3/05, Cameron Beattie [EMAIL PROTECTED] wrote:
| pyperl is a prerequisite to zoperl which allows perl scripts to be used
| within zope. I should have mentioned that.
| 
| Try the zope-perl@zope.org, if it still exists...
| 
| Thanks. Will do.
| 
| zoperl hasn't been updated since 2001. That's probably more due to
| nobody using it than being perfect. The reason for that is that Zope
| already has a very good scripting language, so the need to use perl is
| very miniscule, and almost always more pain than it's worth.
| 
| I'm very happy with Zope and python. Unfortunately my bank doesn't have a 
| python version of it's API which is why I'm trying to use perl with Zope.

For that you might try some alternate approaches:

- create a command-line wrapper for the API;  in zope you can then
  use python's subprocess module to run the perl program that will
  make the API calls  (I am successfully using this for a certain
  Java API)

- create a non-zope server to host the perl portion and use
  XML-RPC or SOAP or whatever to communicate to that from your
  zope app

- port the perl code to python (after all you have the source)

HTH,
-D

-- 
He is no fool who gives up what he cannot keep to gain what he cannot lose.
--Jim Elliot
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital 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] Re: manage_afterAdd quirks

2005-08-23 Thread Derrick Hudson
On Fri, Aug 19, 2005 at 01:25:22AM +0200, Philip Jägenstedt wrote:
| Hello!
| 
| I'm trying to write a small filesystems based product which I'm calling
| MovieWorld. The main class (MovieWorld) inherits from ObjectManager and
| is to be configured to contain a folder with images and a index_html
| page template (so that it can be edited via ZMI if needed).

Note that your object does not need to contain an index_html object in
order to be edited in the ZMI.  In your MovieWorld class, put the
following:

manage_options = OFS.Folder.Folder.manage_options

(be sure to 'import OFS' earlier in the module)


The manage_options object in the class defines what tabs will be shown
in the ZMI and what method to call when the admin clicks on the tab.

HTH,
-D

-- 
Your beauty should not come from outward adornment, such as braided hair
and the wearing of gold jewelry and fine clothes.  Instead, it should be
that of your inner self, the unfading beauty of a gentle and quiet
spirit, which is of GREAT WORTH in God's sight.  For this is the way the
holy women of the past used to make themselves beautiful.
I Peter 3:3-5
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital 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] Re: emergency user account does not work

2005-07-20 Thread Derrick Hudson
On Fri, Jul 15, 2005 at 03:55:06PM -0500, Tim Suter wrote:
| After logging out of the ZMI, I have tried to log in as the emergency
| user by filling in the proper credentials.  The page never loads.  Could
| there be a tick I am missing in the security settings for the root
| folder/ZMI?  OR is this something that has to be run via localhost from
| the server on which Zope is installed?  

I believe you can restrict the host(s) the emergency user's
credentials are valid from.  This will only happen if you specify it,
though, and you can always change the emergency user data (username,
password, and host restrictions) by editing the 'access' file in the
zope instance.

-D

-- 
If your life is a hard drive,
Christ can be your backup.
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital 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] Re: Customizing Zope FTP server

2005-07-12 Thread Derrick Hudson
On Tue, Jul 12, 2005 at 12:54:21PM +0200, Thierry FLORAC wrote:
| 
|   Hi,
| 
| I'm currently working on a Zope site, providing FTP access to some of
| it's sub-folders.
| My questions are :

|  - is it possible to customise Zope FTP server so that a specific banner
| and a specific message are displayed on login ?

Sure it is.  For zope 2.7.5 look in lib/python/ZServer/FTPServer.py on
line 484.  Change the text to be whatever you want.  No recompilation
necessary (just restart zope)!  (I just happen to have 2.7.5 handy on
the machine I'm sitting at right now)

|  - is it possible to redirect a user to a specific folder after a
| successful connection ?

I don't know.  Perhaps you can add a line in there to invoke a 'cwd'
command.  Most likely you can, if you read the code enough to
understand what it is doing.  (it's python code, it's not that hard to
read :-))

HTH,
-D

PS.  this is the approach I would use to achieve a goal like this,
especially if a google search didn't give the information I need --
look at the source and figure out a) if there is a configuration for
what I want and b) am I willing to make the modifications (hard-code
it) if there isn't

-- 
Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former.
Albert Einstein
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital 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] Re: ldap authentication with apache or LDAPUserFolder?

2005-07-12 Thread Derrick Hudson
On Mon, Jul 11, 2005 at 01:01:13PM -0500, Tim Suter wrote:
| Sorry Marco the reply to all button eluded me once again:
| 
| I deleted the access file and recreated it so I could get ready to
| delete all instances of the old LDAPUserFolder.  This has to been done
| prior to migration of Data.fs as the new Zope 2.8 isn't compatible with
| the old LDAPUserFolder.
| 
| Now, after commenting out the apache lines below:
| 
|   #location /Zope
| #AuthName Knowledge Access
| #AuthType Basic
| #AuthLDAPURL ldap://X.X.org:389/o=X.org?uid?sub?
| (objectClass=person)
| #require group cn=caitstaff,ou=Groups,o=X.org
| #/location
| 
| I can type in the URL for the knowledge base and it takes me straight to
| the index_html page without authentication unlike before.  However,
| after clicking the Manage Zope link, then you must enter in credentials,
| in order to access the ZMI of which the root folder contains the
| acl_users folder with the LDAPUserFolder configuration.

| Does this tell me that LDAPUserFolder is being handed the
| credentials via apache through some sort of redirect?

No, it means that the index_html object has the View permission
granted to Anonymous.  Therefore zope didn't need you to authenticate
because you already had enough privileges.  The other option is that
your browser remembered your credentials for that site and submitted
them without asking you.

-D

-- 
...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort.  -Harley Hahn, A Student's Guide to Unix
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital 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] Re: WebDav or Calendar.

2005-06-09 Thread Derrick Hudson
On Wed, Jun 01, 2005 at 10:15:18PM -0300, Fernando Lujan wrote:
| Hi,
| 
| I need a Calendar or WebDav product wich runs with Zope, allow me to
| share my calendar with others users using mozilla Calendar, Sunbird.
| evolution, outlook and so on...Something like OpenGroupware. Do
| someone have a good suggestion? :)

Schoolbell:  http://www.schooltool.org/schoolbell/

-D

-- 
640K ought to be enough for anybody -Bill Gates, 1981
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital 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] Re: Modifying __bases__

2005-05-25 Thread Derrick Hudson
On Fri, May 20, 2005 at 05:10:30PM -0400, Dan Pozmanter wrote:
| Out of curiosity, I've noticed the word evil attached to patching
| of various and monkey kinds.  Not bad, or unwise, but evil,
| implying a morality associated with the act.

I think it is used mainly to give added emphasis to lessons learned
from painful experience.  As Paul reported, hours can be wasted
tracing the wrong code trying to understand what is happening.

| What is morally wrong with modifying live objects in a dynamic language
| to achieve desired functionality?

The problem is maintainability.  When you dynamically rewrite the
code, the code is then very difficult to follow, verify, and modify.
It is even harder for someone else to maintain the code because they
don't have the historical background to rememeber where , what and why
the code is dynamically changed.

| The idea is I want to modify the zope core in a way that survives
| version to version, yet does not
| impose a specific use case on all zope users.

The good pattern for handling this is to create a new class that
extends the core classes that provide almost the functionality you
want.  Then, in your part of the database, create an instance of your
class instead of the built-in core class.

Specifically for your case, extend the basic UserFolder class to
create instances of your custom User class instead of the built-in
one.  It would be good if the UserFolder allowed you to parameterize
it so you could simply say use this User class, but in the absence
of that foresight, you can extend the UserFolder clas.

HTH,
-D

-- 
Whoever loves discipline loves knowledge,
but he who hates correction is stupid.
Proverbs 12:1
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital 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] Re: code completion for ZPT

2005-05-20 Thread Derrick Hudson
On Wed, May 18, 2005 at 11:55:20AM +0200, Milos Prudek wrote:
| Hi,
| 
| is there an editor that would support code completion for Page Templates 
| and maybe even code completion for Zope3 new technologies?
| 
| Currently I use ViM on Linux - but a lot of typing is required, like 
| tal:attributes - 14 keystrokes.

Use ^N.  The following excerpt is from vim's ':help'

---
Completing keywords from different sources  *compl-generic*

*i_CTRL-N*
CTRL-N  Find next match for words that start with the
keyword in front of the cursor, looking in places
specified with the 'complete' option.  The found
keyword is inserted in front of the cursor.

*i_CTRL-P*
CTRL-P  Find previous match for words that start with the
keyword in front of the cursor, looking in places
specified with the 'complete' option.  The found
keyword is inserted in front of the cursor.

CTRL-N  Search forward for next matching keyword.  This
keyword replaces the previous matching keyword.

CTRL-P  Search backwards for next matching keyword.  This
keyword replaces the previous matching keyword.
---

-D

-- 
\begin{humor}
Disclaimer:
If I receive a message from you, you are agreeing that:
   1. I am by definition, the intended recipient
   2. All information in the email is mine to do with as I see fit and make
such financial profit, political mileage, or good joke as it lends
itself to. In particular, I may quote it on USENET or the WWW.
   3. I may take the contents as representing the views of your company.
   4. This overrides any disclaimer or statement of confidentiality that may
be included on your message
\end{humor}
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital 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] Re: Zope 3 for Debian?

2005-05-20 Thread Derrick Hudson
On Tue, May 17, 2005 at 06:20:22PM +0100, David Given wrote:
| Does anyone know what the timescale is for Zope 3 packages being put together 
| for Debian?

This is unforeseeable without someone stepping up to do the work.

| I have a project I'd like to work on, and I suspect that Zope 3 
| is a better bet than Zope 2

It is, IMO.

| --- but Zope 3's not out yet

I'm not even sure of the quality of the zope 2 package in debian.  A
couple developers recently started taking over the packages and fixing
them up.  I'm sure their doing a good job (and I hope they keep it
up), but I don't know how close to done they are (ie things may
change or be reorganized, or you might deviate sufficiently that it
would be easier to work from the zope.org source).

| Is it worth waiting 
| or should I just go for Zope 2?

Don't wait, unless you're the one to do the packaging work.

| (No, I don't want to install Zope 3 manually. It's sufficiently large and 
| sufficiently complex that it'd be a dependency nightmare.)

As Andreas pointed out, it is really quite simple and not a nightmare.
Furthermore, if you want to have some help from the packaging system,
create a dummy package using 'equivs' to depend on the system
components your z3 application will need.
 
HTH,
-D

-- 
In my Father's house are many rooms; if it were not so, I would have
told you.  I am going there to prepare a place for you.  And if I go and
prepare a place for you, I will come and take you to be with me that you
also may be where I am.
John 14:2-3
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital 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] Re: symbols undefined after product refresh?

2005-04-08 Thread Derrick Hudson
On Fri, Apr 08, 2005 at 03:20:52PM +0200, Jrgen Herrmann wrote:
[...]

| ps: this does not only happen to my SubClassCatalog, this also hits
| f.ex. from random import randint where randint gets undefined.

That makes sense.  The 'from-import' syntax creates a name in the
local namespace that refers to the indicated object.  If you reload
the module you imported from, then that object is going to go away (or
at least be re-constructed) and the reference you had may no longer be
valid.  It may be the case that reloading your module fails to
properly handle all of the imports.  Basically that's just the way it
is and it is difficult to try and implement reload completely
correctly (which is what Zope's refresh depends on ).

As has already been noted, simply restart and you definitely won't
have any problems.  Use a faster machine if the restart time is too
long ;-).

HTH,
-D

-- 
One OS to rule them all, one OS to find them,
One OS to bring them all and in the darkness bind them,
In the Land of Redmond, where the Shadows lie.
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital 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] Re: Plone/Zope on Debian Sarge

2005-04-05 Thread Derrick Hudson
On Mon, Apr 04, 2005 at 02:02:43PM +0100, Chris Withers wrote:
| The moral of this whole story seems to shine through:
| 
| Don't install Zope from OS packages like debian, they never get it right 
| and you will just end up getting confused ;-)

Never say never.  The problem with debian is the former zope
maintainers are no longer maintaining the packages and only very
recently has a replacement stepped up to update the packages and
resolve the outstanding issues.  The current situation is filled with
bit-rot, but before that began the packages were just fine.  It would
seem, too, that the bit-rot will recede in the near future.  In the
meantime, I would recommend using the upstream source for
installation.

-D

-- 
\begin{humor}
Disclaimer:
If I receive a message from you, you are agreeing that:
   1. I am by definition, the intended recipient
   2. All information in the email is mine to do with as I see fit and make
such financial profit, political mileage, or good joke as it lends
itself to. In particular, I may quote it on USENET or the WWW.
   3. I may take the contents as representing the views of your company.
   4. This overrides any disclaimer or statement of confidentiality that may
be included on your message
\end{humor}
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]


signature.asc
Description: Digital 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-dev] Re: Overriding Products

2005-03-18 Thread Derrick Hudson
On Tue, 15 Mar 2005 19:49:01 +0100, Martijn Jacobs wrote:
 Hello guys.
 
 I have a question regarding  product importing in zope 2.7.x,  as since 
 zope 2.7 this part is way more flexible then it was before. I'd like to 
 accomplish the next situation :
 
 -
 A Zope base installation has Product X installed in /lib/python/Products 
 which I want to change or develop further
 -
 x instances of Zope use the produtc from this base install.
 -
 At one instance I want to test and develop, without breaking the other 
 instances.
 -

My approach would be one of the following:

1) Do the dev and test on a different (non-production) machine.

2) Install a second copy of zope for that dev/test instance.

Both of these will avoid any interactions between your production
setup and your dev/test work.

HTH,
-D

-- 
Microsoft has argued that open source is bad for business, but you
have to ask, Whose business? Theirs, or yours? --Tim O'Reilly
 
www: http://dman13.dyndns.org/~dman/jabber: [EMAIL PROTECTED]

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