[web2py] Re: output the name of file stored in table in upload filed?

2013-12-21 Thread deepak sandhu
{{=row.files.documentx.name}} i tried this but still dont work :( -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you

[web2py] adding dropdown of 3rd table on 2nd table in form

2013-12-20 Thread deepak sandhu
model: # coding: utf8 db.define_table('dept', Field('name',unique=True,label='Department Name'), format='%(name)s') db.define_table('course', Field('dept_id','reference dept'), Field('name',unique=True,l

[web2py] output the name of file stored in table in upload filed?

2013-12-20 Thread deepak sandhu
this is view file: {{for row in rows:}} download {{pass}} by doing so I get the download link of all the files one by one but all of them are named "download" which gets confusing to know which one is which. So I was trying to output their name: row.files.document.name or

[web2py] how can i join 3 tables and output a the all three together joined in web2py?

2013-12-19 Thread deepak sandhu
model: # coding: utf8 db.define_table('dept', Field('name',unique=True,label='Department Name'), format='%(name)s') db.define_table('course', Field('dept_id','reference dept'), Field('name',unique=True,l

[web2py] how to put the field name with a drop-down instead of its reference id in the form?

2013-12-19 Thread deepak sandhu
this is model x.py: # coding: utf8 db.define_table('dept', Field('name',unique=True,label='Department Name')) db.define_table('course', Field('dept_id','reference dept'), Field('name',unique=True,label='Course Name')) this is is contro

[web2py] Re: altering tables and gets database not working. trying to find a way to empty the database.

2013-12-19 Thread deepak sandhu
Wednesday, December 18, 2013 8:21:07 PM UTC-6, deepak sandhu wrote: > > i made 2 tables in web2py: > # coding: utf8 > > > > db.define_table('dept', > > Field('name',unique=True)) > > > > > db.define

[web2py] altering tables and gets database not working. trying to find a way to empty the database.

2013-12-18 Thread deepak sandhu
i made 2 tables in web2py: # coding: utf8 db.define_table('dept', Field('name',unique=True)) db.define_table('course', Field('d_id','reference d'), Field('name',unique=True)) then I added some data in them from appadmin. after that I m

[web2py] web2py show() function. (explanation of a line of code)

2013-12-15 Thread deepak sandhu
so this is a function show() which I am trying to understand. in the model I do have a db.image table where I stored some images which is pointed in the function. the only line I am not understanding here is #image = db.image(request.args(0,cast=int)) In request.args(0, cast=int) why it has

Re: [web2py] Re: using appadmin for other models than db.py in web2py

2013-12-14 Thread deepak sandhu
t;db" object only once, in the first model file that > runs (model files run in alphanumeric order). > > Anthony > > > On Saturday, December 14, 2013 1:35:16 PM UTC-5, deepak sandhu wrote: >> >> Its giving me access to models inside db.py but not to models in coffe

[web2py] using appadmin for other models than db.py in web2py

2013-12-14 Thread deepak sandhu
in web2py we I created a new application called imageblog and in models on default I have 2 models : db.py menu.py coffee.py #this is new one created by me in models i made some tables inside this too and if I use the url http://127.0.0.1:8000/imageblog/appadmin/ I can see t

[web2py] i am trying send email using web2py with gmail and using smtp setting i have attached all code

2013-09-30 Thread deepak sandhu
i am trying to create a form in web2py which sends message to an email account on submission mainly i used SQLFORM.factory to create the form then i used gluon.tools import mail to import the send email functionality. i have set up everything i can think of but still on running this code in we

[web2py] web2py email setting with smtp not working

2013-09-30 Thread deepak sandhu
here is the code of my controller. i am trying to create a form in web2py which sends message to an email account on submission mainly i used SQLFORM.factory to create the form then i used gluon.tools import mail to import the send email functionality. i have set up everything i can think of b