plonewars.com

January 28th, 2007
January 28th, 2007

Isotoma

Isotoma

Originally from del.icio.us/tag/plone by martior


from Yoda http://plonewars.com/2007/01/28/isotoma/







January 28th, 2007

Andreas Jung: Blog on TextIndexNG3

See http://blog.isotoma.com/2007/01/using_textindexng3_with_archet.html

Andreas Jung: Blog on TextIndexNG3

Originally from Planet Plone by ajung <info@zopyx.com>


from Yoda http://plonewars.com/2007/01/28/andreas-jung-blog-on-textindexng3/







January 28th, 2007

Andreas Jung: Zope on Windows: Fun, Fun, Fun

Introduction

For a Zope recent project I
was in charge to develop a solution to generate PDF and RTF from HTML.
I choose XSL-FO as general framework to provide a homogeneous
environment for such transformations and conversions. There are bunch
of FO processors on the marked and I took some commercial Java-based FO
processors. Early tests worked fine and the first implementations
worked fine from within Zope on Linux. The content presented to the
customer could be transformed on the-fly to plain text, PDF or RTF. But
fun started when I was trying to get the stuff working on Zope unter
Windows. The target platform for the whole application is Windows (from
Windows XP down to Windows ‘98).

Let’s get technical

Running external processes from Python is usually not a big deal. You have different options:

os.system()

command.getoutput()

os.popen()

subprocess.Popen()

…and some more variations. Basically all methods provide a way to run a command like

java -jar some.jar arguments

This
also works fine on XP but the fun starts when you want to run the same
code under different Windows flavours. My very first implementation was
like this:

P = subprocess.Popen(cmd, shell=False, stderr=PIPE, stdout=PIPE; stdin=None)

status = P.wait()

stdout = p.stdout.read()

stderr = p.stdout.read()

This
works fine on XP but not on Windows 98.  The issue that came up was an
exception from the subprocess module where Python tried to obtain a
handle for stdin internally through some win32 API call. So the first workaround was:

P = subprocess.Popen(cmd, shell=False, stderr=PIPE, stdout=PIPE; stdin=open(’nul:’)

Using this workaround I was able to run java.exe -version to
check for the installed Java version. However using this code caused an
empty DOS window to popup for every execution. The solution was to use
the startupinfo parameter:

startupinfo = STARTUPINFO()

startupinfo.dwFlag |= STARTF_USESHOWWINDOW

P = subprocess.Popen(cmd, shell=False, stderr=PIPE, stdout=PIPE; stdin=open(’nul:’), startupinfo=startupinfo)

Now
with this solution I could execute Java command without anyone noticing
it :-) But….wait….our Java commands also produced some
output..maybe only some lines or a hundred warnings..you would expect
that you can read the error messages from the stdout and stderr pipes….surprise, surprise….that worked only for short messages. In case the Java process wrote too much data to stderr then whole process was just hanging with the result that os.wait()
had to wait forever. Because of my limited Windows knowledge I could
not track down this problem on Windows 98. So the workaround at this
time was to avoid using stderr and stderr as PIPEs and just setting them to None.  So
with the final solution I was able to run all our converters using the
same code on all Windows flavours…but I really took me very long
(serveral days with lots of iterations with external testing labs) to
figure this all out….and it convinced me again that Windows just a
piece of crap…

Andreas Jung: Zope on Windows: Fun, Fun, Fun

Originally from Planet Plone by ajung <info@zopyx.com>


from Yoda http://plonewars.com/2007/01/28/andreas-jung-zope-on-windows-fun-fun-fun/







January 28th, 2007

Andreas Jung

Andreas Jung

Originally from Planet Plone by ajung <info@zopyx.com>


from Yoda http://plonewars.com/2007/01/28/andreas-jung/







January 28th, 2007

Jon Stahl’s Journal » Blog Archive » How Plone Can Become Kick-Ass Community Collaboration Software

Jon Stahl’s Journal » Blog Archive » How Plone Can Become Kick-Ass Community Collaboration Software

Originally from del.icio.us/tag/plone by martior


from Yoda http://plonewars.com/2007/01/28/jon-stahla%c2%80%c2%99s-journal-a%c2%bb-blog-archive-a%c2%bb-how-plone-can-become-kick-ass-community-collaboration-software-3/







January 28th, 2007

building plone archetypey stuff

should have posted something long ago — but i really want to stay fresh with using uml (currently to build plone functionality)

building plone archetypey stuff

Originally from del.icio.us/tag/plone by dort


from Yoda http://plonewars.com/2007/01/28/building-plone-archetypey-stuff/







January 28th, 2007

Create new eggs and packages quickly with paster — plone.org

Create new eggs and packages quickly with paster — plone.org

Originally from del.icio.us/tag/plone by martior


from Yoda http://plonewars.com/2007/01/28/create-new-eggs-and-packages-quickly-with-paster-a%c2%80%c2%94-ploneorg-4/







January 28th, 2007

Einführung vsMenu

Einführung vsMenu

Originally from del.icio.us/tag/plone by serosero


from Yoda http://plonewars.com/2007/01/28/einfa%c2%bchrung-vsmenu/







January 28th, 2007

How to add a custom view to existing portal types using Zope 3 views — plone.org

How to add a custom view to existing portal types using Zope 3 views — plone.org

Originally from del.icio.us/tag/plone by plasser


from Yoda http://plonewars.com/2007/01/28/how-to-add-a-custom-view-to-existing-portal-types-using-zope-3-views-a%c2%80%c2%94-ploneorg/