{{=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
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
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
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo