Re: [Repoze-dev] Implementing multi-dropdown deform widget

2010-12-26 Thread Tim Knapp
Just to rephrase things a little better - I noticed in the source code
of a number of deform widgets that it uses 'field.oid', which seems to
be related to the order that a widget appears on the form. So if I
ensure the template for my new widget assigns an 'id' of field.oid, is
this what deform would look for in order to know what to serialise and
subsequently return for the field value?

Thanks again,
Tim

On Sun, 2010-12-26 at 23:22 -0500, Chris McDonough wrote:
> On Mon, 2010-12-27 at 16:32 +1300, Tim Knapp wrote:
> > Hi,
> > 
> > I've been hammering away at a deform widget that consists of 2-3
> > dropdown menus that are much like the 'cascading' jquery plugin, i.e.
> > you choose a value in the first menu and an ajax call is made to a url
> > that returns the values for the subsequent menu and the same for the 3rd
> > one.
> > 
> > So far I've got the jquery/python going independently of deform and now
> > I'm trying to create a deform widget for it.
> > 
> > Here's the deform widget code:
> > http://duffyd.pastebin.com/GpxyjmCq
> > 
> > Here's my current template code:
> > http://duffyd.pastebin.com/JtYWeLRz
> > 
> > And here's the traceback I get when clicking on submit:
> > http://duffyd.pastebin.com/FQsC1W2X
> > 
> > This is the jquery:
> > http://duffyd.pastebin.com/EV26iPht
> > 
> > Any tips on how I can get this to work in deform?
> 
> Not really.  You'll need to look at the other widgets and the docs.
> 
> - C
> 
> 


___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


Re: [Repoze-dev] Implementing multi-dropdown deform widget

2010-12-26 Thread Chris McDonough
On Mon, 2010-12-27 at 16:32 +1300, Tim Knapp wrote:
> Hi,
> 
> I've been hammering away at a deform widget that consists of 2-3
> dropdown menus that are much like the 'cascading' jquery plugin, i.e.
> you choose a value in the first menu and an ajax call is made to a url
> that returns the values for the subsequent menu and the same for the 3rd
> one.
> 
> So far I've got the jquery/python going independently of deform and now
> I'm trying to create a deform widget for it.
> 
> Here's the deform widget code:
> http://duffyd.pastebin.com/GpxyjmCq
> 
> Here's my current template code:
> http://duffyd.pastebin.com/JtYWeLRz
> 
> And here's the traceback I get when clicking on submit:
> http://duffyd.pastebin.com/FQsC1W2X
> 
> This is the jquery:
> http://duffyd.pastebin.com/EV26iPht
> 
> Any tips on how I can get this to work in deform?

Not really.  You'll need to look at the other widgets and the docs.

- C


___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


[Repoze-dev] Implementing multi-dropdown deform widget

2010-12-26 Thread Tim Knapp
Hi,

I've been hammering away at a deform widget that consists of 2-3
dropdown menus that are much like the 'cascading' jquery plugin, i.e.
you choose a value in the first menu and an ajax call is made to a url
that returns the values for the subsequent menu and the same for the 3rd
one.

So far I've got the jquery/python going independently of deform and now
I'm trying to create a deform widget for it.

Here's the deform widget code:
http://duffyd.pastebin.com/GpxyjmCq

Here's my current template code:
http://duffyd.pastebin.com/JtYWeLRz

And here's the traceback I get when clicking on submit:
http://duffyd.pastebin.com/FQsC1W2X

This is the jquery:
http://duffyd.pastebin.com/EV26iPht

Any tips on how I can get this to work in deform?

Thanks,
Tim

___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev


[Repoze-dev] repoze.what.plugins.hgwebdir plugin

2010-12-26 Thread Lorenzo Gil Sanchez
Hi everybody,

I just wanted to ask for a mention about the
repoze.what.plugins.hgwebdir repoze.what plugin that I wrote in the
official repoze.what documentation as said here:

http://what.repoze.org/docs/1.0/Participate.html#writing-plugins

This plugin is useful to protect Mercurial repositories served with
hgwebdir wsgi application. The administration of these repositories
turn out much easier with this plugin since it allows to write the
groups and permissions information for several repositories in a
single filename.

The documenatation can be found at: packages.python.org [1] It has a
pypi entry [2] and the code is hosted at bitbucket [3]

We, at Yaco.es, are using it in production for more than 3 months and
we belive it could be useful for other companies or individuals.

I tried to follow repoze.what coding conventions but let me know if I
missed something.

Best regards

[1] http://pypi.python.org/pypi/repoze.what.plugins.hgwebdir/0.1.1
[2] http://bitbucket.org/lgs/repoze.what.plugins.hgwebdir/
[3] http://packages.python.org/repoze.what.plugins.hgwebdir/
___
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev