Perhaps we should change the BEAUTIFY tag classes. A proposal?

On Sep 16, 11:18 am, Eric <[email protected]> wrote:
> Thanks to howesc and Jim for your responses.  Jim: while BEAUTIFY
> offers exactly the kind of formatting I'd like, it doesn't make the
> table tags CSS-friendly like SQLFORM does.  So I can't format the
> output.
>
> howesc: SQLFORM with the readonly=True parameter is exactly what I'm
> looking for, except that it doesn't grab the values for the current
> user -- all the values are set to None or not set, which is the
> expected behavior.  If there were something like a "prepopulate"
> argument that allowed you to pull a record where "created_by" equals
> the current user, it would be exactly what I'm looking for.
>
> In any case, it's not that hard to pull the values individually and
> then format them.  I just thought that there might be something
> similar to SQLFORM, except that it would display a table record
> instead of creating a form to insert a record.
>
> Thanks again for your input.
>
> Eric
>
> On Sep 15, 3:04 pm, howesc <[email protected]> wrote:
>
>
>
>
>
>
>
> > have you tried:
>
> > row = db(...).select().first()
>
> > and in your view:
>
> > {{=row}}
>
> > and/or
>
> > {{=BEAUTIFY(row)}}
>
> > do either of those get you good enough?
>
> > so often people want to customize the display of just a single result so
> > there is not a ton of tools to try and create a generic rendering.....

Reply via email to