[triangle-zpug] report on *last* Plone Jam - 6 Feb 2008 at TOT in Morrisville
josh_johnson at unc.edu
Thu Feb 21 23:21:17 CET 2008
Damnit, I should have come to the last plone jam :P
I've been doing some very bad things with Plone 3 and AGX over the past
month or two. When Plone 3.0.5 came out I tried running some AGX
1.6-generated code in it - the Install.py was broken. Worked ok in
3.0.3, didn't in 3.0.5.
So, I decided to give AGX 2.0-beta9 (aka the egg in the cheeseshop) a
go, and got "better" results. Then I tried to define all of my unit
tests into my model as I migrated my method bodies.
That just plain didn't work. The templates AGX uses for unit tests were
heavily broken... so I fixed 'em. I also had to make some changes to the
base generator script, to do things like keep it from duplicating
inherited methods in the test cases.
I've been meaning to submit a patch to the AGX bug tracker, but haven't yet.
Mark R. Biggers wrote:
> [ Please come to tonight's! http://trizpug.org/Members/cbc/feb-08-jam2 ]
> -- What we (Jim, Rob, me, and "Plone-newbie" Joshua Smith) did do:
> () Rob attempted a walkthrough of his talk "Tail Wags Fangs". He has some
> good bits in there, and also found some holes to fix. We had a Plone
> newbie show up, and it seemed a good thing to try out on him :) ...
> () Rob and I had Plone3 buildouts set-up. We attempted to "deploy" two
> Plone2 products, both generated from Argo/ArchGenXML, to his Plone3 site:
> (1) a new product-version, of his L.I.M.S. system
> (2) the "example" Plone2 product from the newest ArchGenXML release.
> Neither would load. We don't know the GenericSetup/ZCML juju, to have
> Plone3 accept these products.
> () I wanted to show Rob how to modify the UML for the AxGen-example, to add
> unit-test "classes" to the diagram, and then have AxGen generate the
> u-test stubs.
> Purpose: to get Rob used to running u-tests, even just the stubs, to see
> if a Product in development, will even load (valid Python & Plone code).
> For some silly reason, the AxGen-example has a completely broken u-test
> UML module! It would do everyone who uses AxGen a favor, to fix this and
> have at least u-test stubs generated, when generating code from the UML!
> () Joshua (NCSU Physics) detailed his interest in getting LaTeX-based
> content into a Plone portal site. He's exploring plasTeX, a Python
> based LaTeX => DOM converter. (I should remember more of this, but
> I was quite focused on Rob and my interests... sorry!)
> -- So, speaking for myself - Rob, Jim and Joshua can chime in as they
> so desire - I would like to "jam on":
> () Getting the AxGen-example UML fixed (u-test UML), then run the Product's
> u-tests on at least a Plone2 site. Here's my usual drill, on a P2
> Unified-Installer site:
> cd client2
> bin/zopectl test -vv -m Products.MyPloneProduct 2>&1 | tee log/tests.log
> I am not sure the u-tests will run at all - without a ZCML "slug" - on a
> Plone3 site.
> Q: can AxGen be made to generate some "portion" of the P3 ZCML "slug", as
> a helpful timesaver? I will investigate.
> () Using a "fixed" AxGen-example (UML) Product, figure out what ZCML is
> needed to make it install on a Plone3 site.
> () Run the AxGen-example Product's unit-tests - any difference in how-to? --
> on the P3 site
> Perhaps this isn't so interesting for everyone, but Rob (I think) and I want
> to figure this out, at least. We're not up-to-speed on pure Plone3 products
> Thank you,
> triangle-zpug mailing list
> triangle-zpug at starship.python.net
More information about the TriZPUG