Hi, I try to use t3 and I need to @expose procedure if i want to use
it in a wiki page in a self.create() method.
This is my procedure that i need to use
@expose
def programafecha():
beneficiarios=db(db.beneficiarios.person_id==self.person_id).select
()
trabajadores=db(db.trabajadores.person_id==self.person_id).select
()
coordinadores=db(db.coordinadores.id==trabajadores
[0].coordinador).select()
fechasValidas=db((db.fechas.regional==coordinadores[0].regional)&
(db.fechas.full<24)).select()
for beneficiario in beneficiarios:
if beneficiario.fecha_Tramite==0:
db(db.beneficiarios.id==beneficiario.id).update
(fecha_Tramite=fechasValidas[0].id)
db(db.fechas.id==fechasValidas[0].id).update(full=
(fechasValidas[0].full+1))
self.redirect('wiki/inftrabajador')
In a wiki page i do this
{{=self.create(db.beneficiarios,next=self.action('../../../run/
programafecha'))}}
How can I use in t3 private procedure in a wiki page whitout @expose?
I am so sorry, if this is a stupid question.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---