>
> Another quick question if I may.  What if I didn't want to store the URL 
> in a database at all?  Can you have conditionals inside the 
> db.define_table?  Or maybe have separate function that would return the URL 
> string and call it from inside the _href.  Something like:
>
> _href='http://' + get_url(shipment.url) + value
>
> Would it be better to do it this way, eliminating the need for a separate 
> table to store the URLs?  Although "better" probably depends on what you 
> are trying to do.


Sure, if it's a relatively small number of shippers, you might just create 
a dictionary in a model file with shipper names as keys and urls as values.

Anthony

Reply via email to