Re: [Zope] Disable local loopback connections

2009-07-28 Thread Michael Haubenwallner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Tom wrote:
> Ahem. Yes, I think the question implied in my rambling monologue is "How 
> would one specify a URL in a browser or from a script so that the local 
> machine doesn't look at it's IP table or whatever and say, 'Hey, that's 
> me. I don't have to go over the Internet for this.'"

http://localhost:8080/...
or
http://127.0.0.1:8080/...

Hth,
Michael

- --
http://blog.d2m.at
http://planetzope.org

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFKb+Mil0uAvQJUKVYRAhV/AJ9edIbhIDS6JYLC5pOIS74zbBCmvwCeNGmo
HkRsDgbzRK1kjmfDRzVGBLQ=
=Rtxq
-END 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] Problem with POST and text/xml

2009-07-11 Thread Michael Haubenwallner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jonathan (dev101) wrote:
> Just out of curiosity I ran a test using content-type of 'application/xml' 
> and zope does not raise the xmlrpc error (as it does with content-type of 
> 'text/xml'), but the POST content is not available within the REQUEST 
> object.
> 
> This appears to be the same problem that I encountered using a content-type 
> of 'text/xml' with the xmlrpc test turned off (ie. no xmlrpc error, but no 
> POST data).
> 

Look into REQUEST['BODY']

Regards
Michael

- --
http://blog.d2m.at
http://planetzope.org

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKWNBEl0uAvQJUKVYRArGwAJ42T66cvPKgQ8Zd+zt2BPT0QOV+2QCfXAfE
hRGby6U5HvDQ6hp0cZxrzXc=
=O1FU
-END 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] Problem with POST and text/xml

2009-07-11 Thread Michael Haubenwallner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jonathan (dev101) wrote:
> I need to support a third party web service (which is not within my control) 
> that wants to send xml data to my zope server (Zope 2.9.2 running on Redhat 
> linux).
> 
> When Zope receives a POST request with a Content-Type of text/xml it assumes 
> that it is an xmlrpc call (which it is not - it is just passing xml data 
> within the POST request).
> 
> Is there a way to get Zope to turn off this "xmlrpc assumption" so that my 
> zope external method can process the xml data that is being passed?
> 

Did you think of using 'application/xml' instead of 'text/xml' ?
Everything should work as expected.

Regards
Michael

- --
http://blog.d2m.at
http://planetzope.org

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKWJj1l0uAvQJUKVYRAlZDAJ9a6wbEnRafVew2jPUttRmNjQKAtQCgh98/
kPSyOmTTHGBUSPmPy0V6Trw=
=s15f
-END 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] Installing Zope 3

2009-05-26 Thread Michael Haubenwallner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Patrick Gerken wrote:
> On Tue, May 26, 2009 at 17:25, Michael Haubenwallner  wrote:
> 
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Jan Ulrich Hasecke wrote:
>>> I think that http://www.zope.org/Products/ should be updated. No chance
>>> for a newbie to find http://wiki.zope.org/zope3/Zope3Wiki
>>>
>> I do not know how you think the 2 pages should be related
>> but -
> 
> 
> The Relation is, that one expects to find the link to the newest Zope3 on
> http://www.zope.org/Products/
> but that http://wiki.zope.org/zope3/Zope3Wiki provides it.
> 
> The more important aspect of the mail is, that the Products page is
> outdated, and it would be cool if somebody with write access could update
> it.
> 

Done.

Please send your suggestions to webmas...@zope.org

Regards
Michael

- --
http://blog.d2m.at
http://planetzope.org

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKHBDLl0uAvQJUKVYRAseZAJ0RqPBeSv3uBHwo7IW8OykElQuNwQCfatyT
XJg/Jo7UnXv1hc/Op2ZlpsE=
=8nm2
-END 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] Installing Zope 3

2009-05-26 Thread Michael Haubenwallner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jan Ulrich Hasecke wrote:
> I think that http://www.zope.org/Products/ should be updated. No chance
> for a newbie to find http://wiki.zope.org/zope3/Zope3Wiki
> 

I do not know how you think the 2 pages should be related
but -

http://www.zope.org (any page)
left column
'Documentation'
'Zope3 Wiki' links to http://wiki.zope.org/zope3/

Hth
Michael

- --
http://blog.d2m.at
http://planetzope.org

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKHAnpl0uAvQJUKVYRAr2mAKCoo4HdeC81fj5y7PRtn8tgi1oXVgCffe7e
Jl0rL6HRqiBJpYr4cW7NCyM=
=QZtI
-END 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] Zope 4.0, maybe not such a bad idea...

2009-04-05 Thread Michael Haubenwallner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dieter Maurer wrote:
> Chris Withers wrote at 2009-4-2 21:29 +0100:
>> Andreas Jung wrote:
>>> Andrew & others have been working on this issue at the sprint. There is
>>> consensus that www.zope.org must be turned into landing page with some
>>> mission statement and then links to the related subprojects. The current
>>> zope.org site should be moved to old.zope.org (it must remain
>>> available for the time being (with URL redirections to the Products
>>> and Member area).
>> Why does it need to keep living even at old.zope.org?
> 
> Because members put there content (product implementations) still usable?
> 
> 

There really should be not problem to integrate current
www.zope.org/Products and www.zope.org/Members including the LDAP
authentication service into an new www.zope.org. No need to break any
links - we already did similar with moving DevHome wikis out to
wiki.zope.org. I'd be happy to adjust the current skins (Plone1.0.3) to
whatever look is needed.

Regards
Michael

- --
http://blog.d2m.at
http://planetzope.org

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ2GPfl0uAvQJUKVYRAs8rAJ49vcytk452m3tLmAx8zAO76SsmXgCdEXPT
6VfdYi9qIEwq4tcIojsxFSQ=
=P5SS
-END 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] psycopg version mismatch (imported 2.0.6 (dec mx dt ext pq3))

2009-03-06 Thread Michael Haubenwallner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

amol kumbhar wrote:
> Hi
> 
> I am using zope 2.10 , python2.4 and psycopg2-2.0.9 . I had created entry in
> ZIM successfully but while connecting to db it is giving me following error.
> Please pull me out from this ASAP.
> 
> An error was encountered while publishing this resource.
> 
> Error Type: ImportError
> Error Value: psycopg version mismatch (imported 2.0.6 (dec mx dt ext pq3))
> 
> 

Look at ZPsycopgDA/DA.py

Edit the list in ALLOWED_PSYCOPG_VERSIONS to match your installed
psycopg version.

Regards
Michael

- --
http://blog.d2m.at
http://planetzope.org

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJsN6tl0uAvQJUKVYRAm1oAJwOxbrfdOYkKGujsd8e7971P5bEoACdH2/o
NpGGRm/4CHRdNap9RiN5liQ=
=JcEm
-END 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] Experiment: Pyjamas with Zope

2008-12-22 Thread Michael Haubenwallner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jim Washington wrote:
> Quick note.
> 
> I found that The "fix pyjamas" question in my previous note could be 
> handled with a ~100 line python module that makes a new class descending 
> from pyjamas.HTTPRequest.HTTPRequest, but overriding asyncPostImpl with 
> a supported content-type, e.g., "application/json".
> 
> The module is mostly copy-paste from pyjamas.JSONService and 
> pyjamas.HTTPRequest, but I'll provide it to anyone interested.  It was 
> really simple to do.  Kudos to pyjamas for making fixes easy.
> 

Please post your findings to the pyjamas ml too
http://groups.google.com/group/pyjamas-dev

There are already posts related to webpy and django. Would be
interesting to add Zope material too.

Regards
Michael

- --
http://blog.d2m.at
http://planetzope.org

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJT5phl0uAvQJUKVYRAt4nAJ9rKAIEt1Mn5gWOfgoZdEK2vQ+nUgCeMWDs
T+6CtHvCF+f95isZw7QA2cU=
=nbig
-END 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] Re: deprecated products?

2007-10-16 Thread Michael Haubenwallner

Mihamina Rakotomandimby schrieb:

Hi,
I had a look at:

http://www.zope.org/Products/user_management?batch_size%3Aint%3Arequired=100 



Most of them are a bit old... and might not run on current Zope version.
I think there should be some cleaning...isn't it?


The listings are autogenerated from user submitted products.
Which kind of cleanup are you thinking of ?

Michael

--
http://www.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 )


[Zope] Re: Zope is in trouble

2007-09-26 Thread Michael Haubenwallner

baiewola schrieb:

Often when you find a product on zope.org, there's just a link out to
another site, so the most recent downloads aren't even available on
zope.org. It's often more useful and faster just to google on your zope
topics, rather than use zope.org.

How can the community help, that's what we need to know?



How you can help:

- report broken links, errors and any issues with the website to 
[EMAIL PROTECTED]
- use [EMAIL PROTECTED] for discussions about zope.org website and 
proposals (archive at http://mail.zope.org/mailman/listinfo/zope-web)

- join the IRC chat at irc.feenode.net, #zope-web

Just for a start...

Michael

--
http://www.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 )


[Zope] Re: comments toggling not working for Zope Book etc

2007-06-21 Thread Michael Haubenwallner

michael nt milne schrieb:

ok, just wondering what the reason for that was? I used to find them very
useful especially on install etc. If it is a CSS thing they should still be
available via a URL etc..



All comments are still there, switch off the stylesheet in your browser 
or look into the HTML source of the page.


Michael

--
http://www.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 )


[Zope] Re: comments toggling not working for Zope Book etc

2007-06-20 Thread Michael Haubenwallner

michael nt milne schrieb:

Hi

Just wondering if the comments toggling is working for the Zope book. Have
tried in Internet Explorer and Firefox but they seem to be off permanently.

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



You are right, display of comments has been disabled in CSS by the end 
of December 2006.


Hth,
Michael

--
http://www.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 )


[Zope] Re: Help me some error when I complie Zope!

2007-03-23 Thread Michael Haubenwallner

Duc Toan schrieb:

I'm using WindowsXP, Python 2.4.3, Visual Studio 2005. When I complie Zope
2.9.6 from source, it alway alert:

running build_ext
creating zope.proxy
copying zope/proxy\proxy.h -> zope.proxy
error: The .NET Framework SDK needs to be installed before building
extensions for Python.
NMAKE : fatal error U1077: 'C:\Python24\python.exe' : return code '0x1'
Stop.


Somebody help me solve this problem. Don't say me install .NET Framework,
because I installed VS2005 include .NET Framework(I think so)



The Windows Python binary (2.4 and 2.5) is built with Visual Studio 
2003, compiling Zope needs the same compiler. The free VisualC++ Toolkit 
2003 is not available for download anymore since mid 2006, its been 
replaced by the free Visual Studio 2005 Express.


What you can do without further problems is: install cygwin (or MingW), 
compile Python from source with cygwin, finally compile Zope from source 
under cygwin.


This is atm also the only way to get Python eggs with C extensions 
compiled under Windows.


Hth,
Michael

--
http://www.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 )


[Zope] Re: Problems receiving mails from the list

2007-02-24 Thread Michael Haubenwallner

Garito wrote:

Hi all!

The zope list don't work properly for me for 2 days ago with my normal
account [EMAIL PROTECTED]

I send several messages (as you could see here:
http://tech.groups.yahoo.com/group/zope/message/166174 and here:
http://tech.groups.yahoo.com/group/zope/message/166152) but both were lost
for me (don't came back to my box)

I try to send some message to ask at 
[EMAIL PROTECTED] and

[EMAIL PROTECTED] nothing in response




http://mail.zope.org/pipermail/zope/2007-February/170578.html
http://mail.zope.org/pipermail/zope/2007-February/170585.html
http://mail.zope.org/pipermail/zope/2007-February/170599.html

there seems to be no problem except with your client software.

http://mail.zope.org/mailman/listinfo/zope gets you every information on 
how to subscribe to the zope mailing list.

posting through other services (like gmane.org) might not need subscription.
in case of doubt always check the mailing list archives first.

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 )


[Zope] Re: ANN: Latest Zope and Plone versions available at WebFaction

2007-01-22 Thread Michael Haubenwallner

Andreas Jung wrote:



--On 22. Januar 2007 14:29:17 + Remi Delon 
<[EMAIL PROTECTED]> wrote:



Hi everyone,

This is just a quick post to announce that the latest Zope and Plone
versions are now available in WebFaction's one-click installer.
These are currently Zope-2.10.1 and Plone-2.5.2-1




Where are the download links? What are the difference to the existing
binary installers for Zope & Plone?



Looks like they are just again advertising their hosting plans:
http://www.webfaction.com/zope-hosting
http://www.webfaction.com/shared_hosting

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 )


[Zope] Re: Accessing ZPT properties from another page

2006-10-24 Thread Michael Haubenwallner

Dyyryath wrote:

I've got a page template that I'd like to display some information
contained in the properties of another page. Can I do this?

I'd like to do something like:

 

Though that obviously doesn't work. :)



 

should work without problems.

Hth,
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 )


[Zope] Re: POST from Zope to external server and receive RESPONSE

2006-09-28 Thread Michael Haubenwallner

[EMAIL PROTECTED] wrote:
> Hello folks,
>
> I'm sure this question has been answered before but bear
> with me - Zope isn't my forte and I couldn't see anything
> like the problem I'd like to solve on the Zope list.
>
> I've inherited a project that now needs to post an XML
> packet to an ecommerce gateway, ie a user submits, via
> a form, credit card details which are posted to a Zope
> server. The Zope server then builds an XML packet and
> wants to POST to an external server which will send a
> RESPONSE.
>
> Can I capture that RESPONSE in Zope or must I use external
> methods and something like Python's httplib.
>
> I've done similar things with curl lib and C++, php curl
> lib and php.
>
> Any hints folks?
>

I am pretty sure XMLRPCMethod
http://www.zope.org/Members/EIONET/XMLRPC
will help you with that.

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 )


[Zope] Re: Protocol question about ZopeBook typos

2006-09-24 Thread Michael Haubenwallner

Perry Smith wrote:
> Wonderful documentation but there are a fair amount of silly typos,
> etc.  Do folks want me to open "issues" or "bugs" on these typos?
>

Current ZopeBook version is at http://www.plope.com/Books/2_7Edition

Please check http://www.plope.com/Books/zb_signup for contact information.

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 )


[Zope] Re: Searching for and displaying properties

2006-06-24 Thread Michael Haubenwallner

Sinang, Danny wrote:
 

This add a property to an object but it has nothing to do with adding
*metadata* to a ZCatalog instance. Please read the ZCatalog chapter of

the Zope Book 2.7 edition. It carefully explains > what *metadata* in
the ZCatalog context means. The short version: a Zcatalog search returns

*proxy* objects and the attrs of the proxy object contain only the
values of the original object where you have  

configured a metadata in the Zcatalog.


Having read the Zope 2.7 ZCatalog chapter, I think I can say there's
always been a metadata column called "jobname".



Could be it looks like there is a metadata column 'jobname' but i 
reality you created a column with name 'jobname ' or ' jobname'.


Hth,
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 )


[Zope] Re: How to do this trick..

2006-03-27 Thread Michael Haubenwallner

Jason C. Leach wrote:
> Hi,
>
> I'm wondering how I can do this little trick (sp_info is a globaly devide
> var, it's a dictionary obj):
>
>  tal:content="group"
> tal:attributes="onmouseover string:doTooltip(event,
> '${sp_info/${group}/common_name}')"
>onmouseout="hideTip()">
> 
>
> So based on my the value of 'group' from my repeat, I want to use the 
value
> to look up another value in a different dictionary.  It works if I do 
this:

> (event, '${sp_info/whatever/common_name}') but does not like me using the
> embedded ${group}.
>

You can insert the value of a dynamically named variable using the '?' 
specifier::


 tal:attributes="onmouseover string:doTooltip(event,
 '${sp_info/?group/common_name}')"

should do the trick. This only works inside path expressions.

Hth, 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 )


[Zope] Re: Using ReStructuredText instead of StructuredDocument inside ZPT

2006-02-26 Thread Michael Haubenwallner

John Schinnerer wrote:


Aloha,



huh? You should be able to extend the expression above by calling
the objects render method?





OK, tried that - I get a username/password prompt that won't take
anything as authorized, and I end up with this error:
-
Site Error

An error was encountered while publishing this resource.

Error Type: Unauthorized
Error Value: You are not allowed to access 'render' in this context
--

I can post the full trace if needed, seems like overkill at this point
as I assume it's some kind of general security thing with ReST Document
that I simply don't know about.

So now what?
Even the zope instance root/owner username and PW are not accepted...??



In your Zope distribution files look at 'doc/RESTRUCTUREDSTEXT.txt' (or 
'Zope/doc/RESTRUCTUREDSTEXT.txt' with Zope2.9).


It has examples of how to use ReST with different solutions.
(There is a typo: 'restructured_test' should read 'restructured_text' )

Btw, the ZReST objects method 'source_txt' gets you the source text of 
the reST document.


E.g. this should work in your example:

  tal:define="rest_txt 
python:container.client_content.some_STX_object.source_txt()"
  tal:replace="structure python: 
modules['Products.PythonScripts.standard'].restructured_text(rest_txt)" />



Hth, 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 )


[Zope] Re: Zope 2.9 and SSL

2006-02-16 Thread Michael Haubenwallner

Janusz Zamecki wrote:


zope napisa?(a):


Hi,

zhttps provides an HTTPS Zserver to Zope-2.9.0. This zope product uses
M2Crypto. I think this may give you a hint towards SSL and Zope-2.9.0

http://www.zope.org/Members/lerouxa/zopehttps

Try it first with test certificates provided with
M2Crypto/demo/zope/{ca.pem,server.pem,dh1024.pem,randpool.dat}


Best regards

Al




Hello, thank you. I've tried to install this software, but it doesn't
work. First of all the downloaded package seems to be inclomplete.
bunzip complains about garbage at the end of the file. Second, after
copying files and patching __init__.py in the ZServer directory, zope
doesn't start anymore. It complains about missing HTTPS_Server package.
If I borrow this one from m2crypto 0.15, then it complains about missing
asyncore, then missing FCNTL. I'm stuck. What else can I do?




You should contact the package author (CCing him now)
>>http://www.zope.org/Members/lerouxa/zopehttps

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 )


[Zope] Re: Zope 2.9 and SSL

2006-02-14 Thread Michael Haubenwallner

Janusz Zamecki wrote:


Hello,

Is anyone tried to access Zope 2.9 via SSL? I've tried m2crypto, but
this doesn't work with the newest zope. And I've tried to use stunnel,
but I'm stuck with some problems - I cannot find the way to force zope
to use https://xxx urls with choosen stunnel port number.

The easiest way is to use Apache, but I have reasons to not go that way.

Any clues?


"Adding a SSL server (HTTPS) to Zope-2.9.0"
http://www.zope.org/Members/lerouxa/zopehttps/
has been released yesterday.

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 )


[Zope] Re: installing zope in a "web" hosted environment

2006-01-08 Thread Michael Haubenwallner

Daniel Gross wrote:

Hello,

Thank you for your reply. Actually, i first installed and configured 
plone/zope on a local server at home. Due to problems with dynamic ip 
mapping i decided to move it to a hosted environment. It appears however 
that unfortunately i can't do it, unless i get a dedicated server, which 
is way too expensive for my resources and needs ...




Here is a (really not complete) list of zope hosting providers:
http://zopewiki.org/HostingProviders

They provide you zope services without the need for running a dedicated 
server.


Hth,
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 )


[Zope] Re: Leave the ivory tower now!

2005-12-28 Thread Michael Haubenwallner

Bakhtiar A Hamid wrote:

On 12/27/05, Michael Haubenwallner <[EMAIL PROTECTED]> wrote:


Andrew Sawyers wrote:



On Sun, 2005-12-25 at 10:03 +0800, Bakhtiar A Hamid wrote:




  The 'closed group' dissolved a while ago.


that's sad(?)  anything came out of the group?  i think we need to do
to zope.org what we did to zope2.  ignore and build.  leave it as
old.zope.org and link from the new site.




That was the plan.  I'd like to revive the plan.  :)  Volunteers?
Andrew



Count me in

Michael





me three.  i;ll try and find time.  and also find where i can help



Thats great, please join us in IRC (irc.freenode.net) at #zope-web

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 )


[Zope] Re: Leave the ivory tower now!

2005-12-27 Thread Michael Haubenwallner

Andrew Sawyers wrote:


On Sun, 2005-12-25 at 10:03 +0800, Bakhtiar A Hamid wrote:


   
   The 'closed group' dissolved a while ago.



that's sad(?)  anything came out of the group?  i think we need to do
to zope.org what we did to zope2.  ignore and build.  leave it as
old.zope.org and link from the new site.




That was the plan.  I'd like to revive the plan.  :)  Volunteers?
Andrew



Count me in

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 )


[Zope] Re: Leave the ivory tower now!

2005-12-24 Thread Michael Haubenwallner

Bakhtiar A Hamid wrote:

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





i think that was remnants of the migration way back when

it's hardcoded, then.

what's needed to spruce up the howtos, or zope.org? iirc, there was a closed
group with that mission setup some time back



The batch limit is set to '300', limiting the display of a sorted result 
set.


Here are numbers from the database:
  old style howtos :   1986 (created until 2003)
  new style howtos :251 (created after the transition to plone)
  new published howtos : 90

The 'closed group' dissolved a while ago.

Hth,
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 )


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


[Zope] Re: Zope Persistence (was: XML-RPC within ZOPE)

2005-12-16 Thread Michael Haubenwallner

Jan-Ole Esleben wrote:


Thanks; this is a problem we are well aware of. Our solution is to
increase the amount of workers, obviously.

However, I'm increasingly getting a feeling that for a rather big
range of unlikely situations that are nonetheless to be expected, Zope
doesn't work _at all_. In a WebServices setting, situations like the
one I described, with one server calling back to another server within
a call from that latter server and both not knowing anything about the
implementation of the other, it would most certainly be extremely hard
to foresee the exact setup of such situations and impossible to
exclude them for persistent objects that actually _do_ change state
(unlike mine). The solution is to not have state in your objects, and
thus lose instantly most of what Zope is.

However, as I see it, the problem is that what Zope actually _is_
(i.e. mostly the ZODB) is an unhealthy way of coupling data and
implementation (which is _exactly_ why my implementation didn't work
immediately). This of course comes from its origins in TTW development
where there wouldn't actually have been many user made products.

Please tell me if I'm wrong with my assumption above, and why. I'm not
trying to be inflamatory, this just has me really worried.

Ole



You could try XMLRPCMethod.
It creates its own worker thread and has a configurable timeout.

Michael

[1] http://www.zope.org/Members/EIONET/XMLRPC

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


[Zope] Re: Human validation in zope/python

2005-12-07 Thread Michael Haubenwallner

Ed Colmar wrote:


Hey All

I'm wondering if anyone has a module that will generate the randomized 
images that are so common these days in registration forms to verify 
that the user is a human.  Or, alternativly, other strategies to block 
spamming of registration forms by bots or other automated methods.




W3.org warns that using CAPTCHA on the Web is actually a bad idea as it 
poses problems for those who are blind, have low vision or have a 
learning disability such as dyslexia -- the document examines a number 
of potential solutions that allow systems to test for human users.

http://www.w3.org/TR/2005/NOTE-turingtest-20051123/

Just for your reading room ;)

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 )


[Zope] Re: zForum installation

2005-12-03 Thread Michael Haubenwallner

John Poltorak wrote:

Where can I find some installation notes for zForum? I haven't found 
anything in the package which tells me what to do.




There is a whole zForum just for you to read and ask for info
esp. checkout
  zForum 1.0 Installation/Usage / Installing zForum
  http://www.zforum.org/view_topic?topic_id=3

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 )


[Zope] Re: Zope Calendar

2005-12-03 Thread Michael Haubenwallner

John Poltorak wrote:
Is there a Zope Calendar app available which looks and works like Plone 
Calendar?


I can't use Plone because it is too heavy for the avialable resources.




Depends on what you need:
- http://www.zope.org/Members/teyc/CalendarTag
- http://www.zope.org/Members/malikz/CorpCalendar/

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 )


[Zope] Re: Which Zope version is installed?

2005-12-03 Thread Michael Haubenwallner

John Poltorak wrote:

How do I tell which Zope version is installed by looking at the file 
system? Is there anything like a 'version' file which would identify it?





In your SOFTWARE_HOME (check its value in /Control_Panel in ZMI) read 
the file 'version.txt'


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 )


[Zope] Re: Zope Message Board

2005-12-03 Thread Michael Haubenwallner

John Poltorak wrote:

What Message Board product is recommended for use with Zope?




I think zForum at http://www.zforum.org is the only one alive.

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 )


[Zope] Re: version of the Zope book with user comments included?

2005-11-14 Thread Michael Haubenwallner

michael nt milne wrote:


Hi
 I remember seeing a version of the Zope book which also had user comments
included. It was very useful. However I haven't been able to find this again
using Google. Does anyone have the link. I found it brilliant for issues
that cropped up on install.
 Thanks



The books linked at http://www.zope.org/Documentation/Books/ZopeBook/
have user comments switched off since last week  - click the COM OFF/ON 
icon in the navbar to show/hide comments again.


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 )


[Zope] Re: Zope Cookbook????

2005-11-14 Thread Michael Haubenwallner

Vivek Krishna wrote:


Hi ,
  I am considering using zope to build a sample applicaiton like a
guestbook and shopping cart
kind of application. I really looked for all documentation but couldnt
find a cookbook which does a step by step introduction to ahceive
this.Is there some resource like this? Besides I am
a new to python.Is python scripting required to build something as
simple as a guestbook? Or would you recommend me to use something like
PHP/Perl. I installed zope and read some docs but all I find is
objects,aquisition and details about ZMI.
If someone could help or point to some resources  or probably say that
Zope is not needed for this I would be grateful.
Thanks
vivek


When you access your local zope instance like http://localhost:8080/
you see the default 'Zope QuickStart' document with a list of useful 
information and links to helful resources.


One of the point says: "Import and then check out the new example Zope 
applications. These examples show you simple working Zope applications 
that you can copy and modify"


Just click the 'Import' link and look into the newly created 'Examples' 
folder in ZMI.


It features working example projects like a FileLibry, a GuestBook, a 
Navigation tool and a ShoppingCart -- check out the sources and browse 
the recent ZopeBook at http://www.plope.com/Books/2_7Edition for more 
information.


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 )


[Zope] Re: Zope.org down?

2005-10-28 Thread Michael Haubenwallner

Jake wrote:


ERROR

The requested URL could not be retrieved

While trying to retrieve the URL: http://www.zope.org:8881/Products/ 


Hi Jake,
zope.org is up again and running on port 80, so
http://www.zope.org/Products/ is the right URL to retrieve.

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 )


[Zope] Re: ZAjax anyone?

2005-10-09 Thread Michael Haubenwallner

Chris McDonough wrote:



On Oct 8, 2005, at 6:54 AM, Greg Fischer wrote:



I would love to have a product (called ZAjax :) that simply  receives 
a request from the client and spits out xml.  To be more  specific, a 
set of classes that call ZSQL methods and retrieve  records, then send 
that back in xml format.



We've had this built in to Zope for a long time in the form of XML- 
RPC.  There are several JavaScript libraries that implement an XML- RPC 
client, the best in my recollection being vcXMLRPC.




http://myzope.kedai.com.my/blogs/kedai/49
shows a few different ways to do Ajax and Zope.

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 )


[Zope] Re: Zope 3.1.0 released!

2005-10-03 Thread Michael Haubenwallner

Reinoud van Leeuwen wrote:


On Sun, Oct 02, 2005 at 03:26:56PM -0400, Stephan Richter wrote:


Downloads

 http://zope.org/Products/Zope3/



Is it intended that one should login before being able to access that 
page?




Hi Reinoud,
we are investigating that problem atm.
Anonymous access to that folder is working -- except not for everyone :(

In the meantime try to access the folder through its folder_contents 
listing, like: http://www.zope.org/Products/Zope3/folder_contents


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 )


[Zope] Re: Zope job

2005-04-27 Thread Michael Haubenwallner
Ben Mason wrote:
Sorry for the off-topic question...
Does anyone know the best place to look for Zope / Plone jobs in London?
Look at
http://www.google.com/search?q=zope+jobs+london
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 )


[Zope] Re: ZEO and Sessions.

2005-04-15 Thread Michael Haubenwallner
Richard Jones wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Fri, 15 Apr 2005 05:54 pm, Michael Haubenwallner wrote:
Bakhtiar A Hamid wrote:
Richard Jones wrote:
http://www.zope.org/Members/richard/ZSQLSessionDataManager
ark!
insufficient priveleges
Works now !

Well, it does *sometimes*. Whenever I make a new release though, the zope.org 
permissions seem to be screwey and end up giving people an error when they 
try to view the page!

So I made two releases in quick succession today, and whoever manages zope.org 
did get those releases through publication quickly (though again, the page 
came up as an error in the mean time). Unfortunately, an erroneous release I 
made - which I did not mark for publication that I'm aware of, and had a 
meaningless ID - was also published. I've now marked it as retracted (there 
doesn't appear to be any way to *delete* a release), meaning the 
ZSQLSessionDataManager is again inaccessible by regular users. Sigh.

Hi Richard,
that is a very old problem with software releases - any 'private' file 
inside the current release blocks the access to the release and only 
folder_contents works for some roles. You can retract the file it is in 
'private' state and you remove it from the folder yourself.
It takes some time for the caches to update too.

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 )


[Zope] Re: ZEO and Sessions.

2005-04-15 Thread Michael Haubenwallner
Bakhtiar A Hamid wrote:
On 4/14/05, Richard Jones <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Wed, 13 Apr 2005 10:21 am, Tres Seaver wrote:
Richard Jones wrote:
Yeah, I remember poking around that code way back, and it seemed
reasonable. Its interactions with transactions are the bits that scare
me. Using a standard RDBMS connection would probably solve that though.
I revisited the SQLSession product a year ago for a consuling customer,
making their hacked version a drop-in replacement for the transient
storage.  I can't release their code, but I maybe learned enough then to
redo the task as a "PluggableSessions" product, using the
"PluginRegistry" product to manage the different requried bits.
Well, I have a ZSQLSessionDataManager implementation based on the standard
SessionDataManager with some changes. It appears to work fine when I test our
application (which makes heavy use of sessions).
So far the SQL code is geared towards Postgres (and gadfly, I think). It'd
need some tweaking to work on MySQL ('cos MySQL is *special*) and I'm not
interested in doing that work ('cos MySQL is *special*).
http://www.zope.org/Members/richard/ZSQLSessionDataManager

ark!
insufficient priveleges
Works now !
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 )


[Zope] Re: Product creation difficulty

2005-04-07 Thread Michael Haubenwallner
Pete Taylor wrote:
*grin*
true enough.
at its simplest level, I've been trying to just import xmlrpclib and use it
normally in scripts.  
http://www.zope.org/Members/EIONET/XMLRPC
the product lets you call remote xmlrpc and other zope servers
(here is a patch if you need zope authentication too: 
http://webforce.at/Members/d2m/HowTos/2004041801)

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 )


[Zope] Re: CMFSin time errors

2005-04-05 Thread Michael Haubenwallner
MILLER Eva wrote:
Hi,
I'm getting some errors with certain feeds, but not others, in CMFSin.
The errors seem to have something to do with the portaltime and
localized time. Someone suggested changing the permissions for anonymous
to fix this. Doing that made all my feeds malfunction, so that's not the
right answer.
I know CMFSin is old and it seems to be getting flaky. But I really need
an aggregator for my project, and it doesn't seem like there's anything
much better out there right now.
Here's what happens when I use a feed from National Public Radio
(http://www.npr.org/rss/rss.php?topicId=3). I know the feed is working.
CMFSin's debug panel shows the results of the feed very plainly. The
problem is in the display of the feed (which is either Zope or Plone's
fault, though I can't tell which right now):
Traceback (innermost last):
  Module ZPublisher.Publish, line 101, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.CMFCore.FSPageTemplate, line 191, in _exec
  Module Products.CMFCore.FSPageTemplate, line 124, in pt_render
  Module Products.PageTemplates.PageTemplate, line 96, in pt_render
   - 
  Module TAL.TALInterpreter, line 190, in __call__
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 671, in do_useMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 702, in do_defineSlot
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 650, in do_defineMacro
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 694, in do_defineSlot
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 409, in do_optTag_tal
  Module TAL.TALInterpreter, line 394, in do_optTag
  Module TAL.TALInterpreter, line 389, in no_tag
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 613, in do_loop_tal
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 637, in do_condition
  Module TAL.TALInterpreter, line 234, in interpret
  Module TAL.TALInterpreter, line 484, in do_insertText_tal
  Module Products.PageTemplates.TALES, line 227, in evaluateText
  Module Products.PageTemplates.TALES, line 221, in evaluate
   - Line 35, Column 92
   - Expression: 
   - Names:
  {'container': ,
   'context': ,
   'default': ,
   'here': ,
   'loop': ,
   'modules':
,
   'nothing': None,
   'options': {'args': ()},
   'repeat': ,
   'request': http://demo.plinkit.org/interestsideas/headlines/sinList>,
   'root': ,
   'template': ,
   'traverse_subpath': [],
   'user': Anonymous User}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
   - __traceback_info__: here.toPortalTime(obj['date'])
  Module Python expression "here.toPortalTime(obj['date'])", line 1, in

  Module Products.CMFCore.FSPythonScript, line 104, in __call__
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 160, in _exec
  Module None, line 5, in toPortalTime
   - 
   - Line 5
  Module Products.CMFCore.FSPythonScript, line 104, in __call__
  Module Shared.DC.Scripts.Bindings, line 306, in __call__
  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
  Module Products.CMFCore.FSPythonScript, line 160, in _exec
  Module None, line 4, in toLocalizedTime
   - 
   - Line 4
  Module Products.CMFPlone.PloneUtilities, line 118, in localized_time
  Module DateTime.DateTime, line 522, in __init__
  Module DateTime.DateTime, line 745, in _parse_args
  Module DateTime.DateTime, line 1032, in _parse
SyntaxError: Tue, 05 Apr 2005 14:21:06 EDT
Seems toLocalizedTime cannot handle that Dateformat (SyntaxError: Tue, 
05 Apr 2005 14:21:06 EDT). You could alter the template to just show the 
original date values for now and investigate how to correct the date 
translation.

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 )