Hello Group!
I really tried hard for two hours to rewrite the following expression
(python 2.4):
--------------------------
teilnehmer = []
for r in Reisen.select(A ND(Reisen.q.RES VON <= datum, Reisen.q.RESBIS
for g in r.BUCHUNGEN:
for t in g.aktiveTeilneh mer:
teilnehmer.appe nd(t)
--------------------------
to something like
--------------------------
teilnehmer = [x for x in ........]
--------------------------
Reisen is a SQLObject class, Reisen.select(. ..), aktiveTeilnehme r and
BUCHUNGEN all are of the type SelectResults.
unfortunately i just can´t figure it out to make it work.
i hope someone maybe can help me?
I hope to gain performance by rewriting it...
Thanks a lot for your help!
Regards, Frank
I really tried hard for two hours to rewrite the following expression
(python 2.4):
--------------------------
teilnehmer = []
for r in Reisen.select(A ND(Reisen.q.RES VON <= datum, Reisen.q.RESBIS
>= datum)):
for t in g.aktiveTeilneh mer:
teilnehmer.appe nd(t)
--------------------------
to something like
--------------------------
teilnehmer = [x for x in ........]
--------------------------
Reisen is a SQLObject class, Reisen.select(. ..), aktiveTeilnehme r and
BUCHUNGEN all are of the type SelectResults.
unfortunately i just can´t figure it out to make it work.
i hope someone maybe can help me?
I hope to gain performance by rewriting it...
Thanks a lot for your help!
Regards, Frank
Comment