On Wed, Jun 05, 2013 at 08:56:25PM +0200, Alessandro Molina wrote:
>    You mean editing of the subdocuments directly from the parent document
>    form? Or did you need something else?
I;ll have another crack at this because I'm still stuck.
Maybe another way to look at it is how to get my customised TableBase to
"see" the arguments given to the controller.

ie the admin controller has
  def get_all(self, *args, **kwargs):
When I go to
http://localhost:8080/admin/attributes/?h=2
kwargs has {h: u'2'} so far so good.

But I cannot work out how to get TableBase to "see" this value. 
TableFiller sees it because get_value() or
_do_get_provider_count_and_objs() are given **kw but I cannot see how 
the equivalent works for TableBase.

Why this is important is that with jqGrid the TableBase makes the jqGrid
widget and it has a url to query the JSON backend (which is defined by
the TableFiller) so I need either TableBase or the Widget to be aware of
this variable.

Putting 
  self.table.host_id = kw.pop('h',None)
into the get_all() function forthe controller seems to work, but is it
the right way?




> 
>    On Tue, Jun 4, 2013 at 2:24 PM, Craig Small <[email protected]> wrote:
> 
>      I'm currently runnign though all the admin screens, Ive got most of the
>      primary tables done, now onto the secondary ones.
> 
>      My problem is how to sensibly limit the display the child objects in an
>      admin screen.
> 
>      I've got an object called PollerSet which is basically a container for
>      many PollerRows. Ideally if you edit the PollerSet, the PollerRows are
>      there too, e.g
> 
>       ID, PSName, PSparam1, PSParam2, etc
>         PollerRow1, PR1name, PR1param
>         PollerRow2, PR2name, PR2param
>         PollerRow3, PR3name, PR3param
> 
>      I cannot see how to do this in a easy way. I don't want to see all
>      pollerRows, only PollerSet#1 rows.
>      --
>      Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
>      Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
>      GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5
> 
>      --
>      You received this message because you are subscribed to the Google
>      Groups "TurboGears" 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/turbogears?hl=en.
>      For more options, visit https://groups.google.com/groups/opt_out.
> 
>    --
>    You received this message because you are subscribed to the Google Groups
>    "TurboGears" 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/turbogears?hl=en.
>    For more options, visit https://groups.google.com/groups/opt_out.
>     
>     

-- 
Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to