On Wed, 2 May 2007 at 17:11, Oleg Broytmann wrote:
> You have already got a piece of advice to loop over user.moneystreams.
> This is SQLObject way to do.
> If you want to do a join in SQL you have to declare and recreate
> intermediate table:
>
> http://sqlobject.org/FAQ.html#how-can-i-define-
On Mon, Apr 30, 2007 at 09:56:51PM -0400, [EMAIL PROTECTED] wrote:
> class MoneyStream(SQLObject):
> users = RelatedJoin('User')
> label = UnicodeCol()
>
> class User(SQLObject):
> moneystreams = RelatedJoin('MoneyStream')
>
> What I want to do is, given a user (current.user) and a
On Tue, 1 May 2007 at 16:32, Chan Yong Wei wrote:
> Wouldn't it simply be
>
> for ms in current.user.moneystreams:
> print ms.label
Yes, that is what I am doing (looping and using an if test). And it
will be fine, I think, since the number of streams for any given
user is not likely to get above
Wouldn't it simply be
for ms in current.user.moneystreams:
print ms.label
?
On 5/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Or at least, that's what it looks like I want to do.
>
> The relevant part of my model looks like this:
>
> class MoneyStream(SQLObject):
> users = Relate
Or at least, that's what it looks like I want to do.
The relevant part of my model looks like this:
class MoneyStream(SQLObject):
users = RelatedJoin('User')
label = UnicodeCol()
class User(SQLObject):
moneystreams = RelatedJoin('MoneyStream')
What I want to do is, given a user