No input at all? that is disappointing.
Surely this must be something rather obvious, or something that is missed 
in the documentation, as it certainly doesnt seem a trivial fix that I can 
identify.


On Thursday, April 24, 2014 3:29:00 PM UTC+12, [email protected] wrote:
>
>
> Hello.
>
> I am beating my head (for 2 days now) against trying to extend the good 
> old todopyramid example from sixfeetup.
>
> In particular,this have an ajax based popup editor for data, and I have 
> been extending the schema/models for a few different datatypes, and trying 
> to associate suitable widgets.
>
> for example:
>
> logo = SchemaNode(String(), default="None")
> messageType = SchemaNode(String(), 
> widget=RadioChoiceWidget(values=(('standard','standard'),('comingup','comingup'),('other','other')),inline=True),
>  
> default="standard")
> onTime = SchemaNode(Integer(), default=10)
> isTicker = 
> SchemaNode(String(),widget=RadioChoiceWidget(values=(("yes",'Yes'),("no",'No')),
>  
> inline=True), default=0)
> channels = SchemaNode(Set(), 
> widget=CheckboxChoiceWidget(values=(("1","1"),("2","2"),("3","3"),("4","4"),("5","5"),("6","6"),("7","7"),("8","8")),inline=True))
>
> Now, normal String() gives no problem, and the right data appears on 
> re-edit.
> However, NONE of the more complex widgets ever populate. They start blank 
> - although I receive the proper data back if I set them on the form.
> I have been tearing my hair out trying to work out why this could be, and 
> trying many different combos of data structure in the feeding JSON call, 
> for example:
>
>     @view_config(renderer='json', name='edit.task', permission='view')
> #.......
>     def edit_task(self):
>         d=dict(
>             logo=item.logo,
>             messageType='other',#item.messageType,
>             onTime=item.onTime,
>             isTicker="yes",
>             Channels=[1,2], #item.channels.split(","),
>         )
>     return d
>
> However, try as I will, it is as if anything but default widgets simply 
> dont use their data.
> Obviously I am missing something pretty big - and its only on a repopulate 
> (edit). With everything else working well, it is hard to image how some 
> fields work
> however others are totally broken.
>
> Any help or thoughts? it would be greatly appreciated.
>
> Regards.,
> Stuart.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to