I think, that Jims answer is
right. Have a try sudo-pip psycopg2 (--> sudo -H)
Regards
Clemens
On 31.03.22 18:33, urban@gmail.com
wrote:
Am I correct in assuming this error is occurring because python is
Hi, all
By accidentally checking the list, I found this topic.
Since I'm pretty much affected both with questions and answers, here are
some of my opinions:
- Jam.py is strictly focused on developing a web database app in the
enterprise.
- Jam.py has a good old event handler development
I am trying to loop a dict in a bootstrap grid where the key is on top of
the value(this does work); the key value pairs should sit side by side in
neat rows of 3 as in col-sm-3* (this does not happen)*
*Problem*: the print is either to the left or to the right with only one
div per row; they
Hello,
I've been working on an application in Web2py for a while now and, for the
most part, I've been able to find answers to my questions online. However,
I am having trouble now trying to figure out if I can use Python
multiprocessing along with the Scheduler in Web2py in the way that I
I am curious of how to override an existing record in a database via a form.
Take for example a simple input of
db = DAL('sqlite://storage.sqlite')
db.define_table('person',
Field('email', requires=IS_EMAIL()),
Field('Your_Zipcode', requires=IS_NOT_EMPTY()),
If the same email address is
I have embedded a form inside of a bootstrap modal. If the form is filled
in correctly it redirects. If there are errors the modal closes and the
main page goes back to how it first looked. Only when I click on the "Sign
up Here" button does it reveal that there were errors and what the errors
Thank you Massimo.
Ricardo Strusberg
Simón Bolívar University.
@strusberg @campusb
Enviado desde un dispositivo movil
El 29/05/2017 19:31, "Massimo Di Pierro"
escribió:
and I thought some may be interested:
https://raw.githubusercontent.com/mdipierro/nlib/master/
I would like to add a list of dates into my data base when the user signs
up.
from datetime import date, datetime, timedelta
import random
from random import randint
dog = randint(3,25)
def perdelta(start, end, delta):
curr = start
while curr < end:
yield curr
curr +=
Hello,
I am having a similar problem with my admin page of my domain at
https://www.positivethoughtsdaily.com/admin. I initially accessed my admin
console and failed too many password attempts. Then I began seeing a
"Forbidden 403" page instead of the admin password entry page. I typically
i just used v2 instead, no problem
--
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 are subscribed to the Google
I tested it with http and it works! How do I get it to work on https ?
On Wednesday, 19 April 2017 17:32:12 UTC+1, r wrote:
>
> Hi, my captcha code is working on the local machine which I am running the
> server from however when I deploy it onto pythonanywhere the captcha does
>
Hi, my captcha code is working on the local machine which I am running the
server from however when I deploy it onto pythonanywhere the captcha does
not appear, only the "verfy" label next to where it should be.
in case you have any doubts about my code:
auth.settings.captcha =
I am trying to insert many dates into a field. Currently I am only getting
1 date inserted.
my overall goal is to insert many (semi random) dates into the database;
each user will have his/her own unique list. Then later iterate over the
list having the date trigger some event if it equals
So I have changed the header for my sqlform grid:
grid =
SQLFORM.grid(db.adminis,headers={'adminis.Name':'Name','adminis.Description':'Description','adminis.Rating':'Average
Rating'})
and when I click on view/edit I would like the same labels to be used. How
is it possible ?
--
Resources:
hony wrote:
>
> It is not quite clear what you are asking. Please show some code.
>
> Anthony
>
> On Thursday, March 30, 2017 at 10:41:50 AM UTC-4, r wrote:
>>
>> Hi, so my index page is like this: /index?page=1 I'm using pagination,
>> when the user clicks on the next page,
e variable nome of the
> session of actual logged user..
>
> and in the controller you can call the value of variable you have stored
>
> 2017-03-30 11:47 GMT-03:00 r <regs...@live.co.uk >:
>
>> Forgot about that one, I'll read the documentation and try it out later.
Forgot about that one, I'll read the documentation and try it out later.
Thanks
On Thursday, 30 March 2017 15:45:23 UTC+1, Áureo Dias Neto wrote:
>
> hello,
>
> why note use session object?
>
> 2017-03-30 11:41 GMT-03:00 r <regs...@live.co.uk >:
>
>> Hi, so m
Hi, so my index page is like this: /index?page=1 I'm using pagination, when
the user clicks on the next page, it should become: /index?page=2
However if there is another var in the URL, it should carry that too
/index?page=1=test
becomes
/index?page=2=test
At the moment, I've done in a way
So I have a comment system and I want to have a delete button to delete the
linked review. If a user (admin) clicks on this button the review is
deleted. I have read about using CRUD and SQLFORMS deletable, but I want
this not as a form but as a button.
How would I do so?
Controller:
def
result: /lookup?item=1
result: /lookup/1
result: /lookup?item=1
Just wondering, is there any benefit from using one method over the others?
I plan on retrieving the URL args/vars on the webpage. For me the 1st one
2.11.2-stable+timestamp.2015.05.30.16.33.24 and recommends
> again updating.
>
> Having desperatly seeked for my failure i ended up in a very fresh
> downloaded
> 2.12.3 and it STILL shows the old version.
> a "grep -r " does what one would expect: it shows
> nothi
hi all,
I understand this might be too much in the realm of "please write my code
for me" with that in mind let me ask.
Is it possible to use -- is_in_set -- to create a list of check boxes
instead of a drop-down?
what I am doing is: two types of users. both have access to the same list.
user
Thanks.
I am new to programming.
I want to create a form based on the field selections from another table.
How can I accomplish this using web2py?
Thanks in advance.
On Sunday, July 24, 2016 at 5:32:43 PM UTC-5, Sneka R wrote:
>
> Can I use show_if for 2 tables?
> For example:
&g
ocuments/web2py/gluon/sqlhtml.py", line 160, in _attributes
trigger, cond = show_if(field.show_if)
File "/Users/SR/Documents/web2py/gluon/sqlhtml.py", line 112, in show_if
base = "%s_%s" % (cond.first.tablename, cond.first.name)
AttributeError: 'Query' object has no
Yes. There is.
On Wednesday, July 27, 2016 at 9:32:56 AM UTC-5, Sneka R wrote:
>
> I have been using administrative interface(localhost) without any problem.
> I tried several password and I got locked out.
> Now it is giving this error:
> admin disabled because unable to acces
hosts.deny file is empty.
On Wednesday, July 27, 2016 at 9:32:56 AM UTC-5, Sneka R wrote:
>
> I have been using administrative interface(localhost) without any problem.
> I tried several password and I got locked out.
> Now it is giving this error:
> admin disabled because u
I have been using administrative interface(localhost) without any problem.
I tried several password and I got locked out.
Now it is giving this error:
admin disabled because unable to access password file
How do I fix this?
Any help is appreciated.Thanks.
--
Resources:
- http://web2py.com
-
It worked initially and do not work now.
The field help2 is visible even if the field help1==False
How do I do this?
Please I need help in figuring this out.
On Sunday, July 24, 2016 at 5:32:43 PM UTC-5, Sneka R wrote:
>
> Can I use show_if for 2 tables?
> For example:
> db.table2.f
Sorry to bother with something so trivial but this problem is not getting
solved by me
I cannot get an image to show. I am using python anywhere the image is
stored in static/images as
DVimg.JPG
Then in views/default/index.html I have the following.
some big text
la la
blah and
Is this possible at all?
On Sunday, July 24, 2016 at 5:32:43 PM UTC-5, Sneka R wrote:
>
> Can I use show_if for 2 tables?
> For example:
> db.table2.field.show_if = (db.table1.box==True)
>
> To be more clear:
> Model:
> db.define_table(’table1’,
>
Can I use show_if for 2 tables?
For example:
db.table2.field.show_if = (db.table1.box==True)
--
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
Yes. I have no success too.
Any help is appreciated.
On Saturday, October 24, 2015 at 7:30:52 PM UTC-5, Pierre wrote:
>
> Hi everyone,
>
> I tried to do it with no success with this:
>
> auth.settings.login_after_registration = False
>
> thanks for your help
>
>
--
Resources:
-
Actually I added the following line on top of the custom_exporter.py file
import cStringIO
On Friday, July 15, 2016 at 10:45:01 PM UTC-5, Jordan Myers wrote:
>
> Hey everyone,
>
> so the default csv exporters for sqlform.grid will use the headers as the
> 'database' names, but I would rather it
Followed your instructions, but I am getting this Traceback
Traceback
1.
2.
3.
4.
5.
6.
7.
Traceback (most recent call last):
File "/Users/sraveend/Documents/web2py/gluon/restricted.py", line 227, in
restricted
exec ccode in environment
File
I am new to web2py. Which file should I make these changes?
Thanks.
On Friday, July 15, 2016 at 10:45:01 PM UTC-5, Jordan Myers wrote:
>
> Hey everyone,
>
> so the default csv exporters for sqlform.grid will use the headers as the
> 'database' names, but I would rather it use the field.label
Thanks a lot.
--
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 are subscribed to the Google Groups
"web2py-users"
Thanks a lot.
--
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 are subscribed to the Google Groups
"web2py-users"
Where do we set the maxtextlength?
On Tuesday, June 14, 2016 at 4:46:05 AM UTC-5, Jitun John wrote:
>
> Thanks a lot Anthony. Works like Charm.
>
> On Monday, June 13, 2016 at 8:42:16 PM UTC+5:30, Anthony wrote:
>>
>> As per the documentation:
>>
>>
>>- maxtextlength sets the maximum length
You have to do it in bootstrap.min.css file
Find the line:
.navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav >
li > a:focus {
color: #ff
background-color: transparent
}
Change the color to your choice of color.
On Saturday, June 18, 2016 at 1:08:16 AM UTC-5,
I am fairly new to all things coding and the learning has been slow. My
question is how to insert a label or legend in a form when making the form
from the model.
If that is not possible I will need to make the form in the controller.
the problem I run into there is how to create a boolean. The
pdown menu is
not working.
On Friday, April 15, 2016 at 3:50:36 PM UTC-5, Sneka R wrote:
>
> I downloaded a new layout plugin for my app. The dropdown menu stopped
> working after that. I am a newbie and need help.
> Thanks
>
--
Resources:
- http://web2py.com
- http://web2py.com/bo
I downloaded a new layout plugin for my app. The dropdown menu stopped
working after that. I am a newbie and need help.
Thanks
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
Hi,
I have been using web2py for few days now. All the files I have created has
vanished. What happened?
--
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)
---
Can you explain it stepwise? If possible please send github link of some
web2py app that you changed to work with phonegap.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list
Can you please show where you created the REST API? In a different view?
Can I get any link, how to do that?
On Friday, March 18, 2016 at 8:17:50 PM UTC+5:30, Leonel Câmara wrote:
>
> I usually just create a REST API returning JSON as is very well documented
> in the book and then just call it
Tell me if I am wrong.
1)So inside the compressed zip folder you upload for phonegap app wrapping,
you simply put the w2p file of your file inside the zipped folder.
2) we add this to the controller:
@request.restful()
def api():
response.view = 'generic.json'
def GET(tablename,id):
I know learning varies from person to person, but keeping in mind rough
estimate, how many days does it take?
--
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)
Suppose a db table named pictures has 100 pics uploaded (from id 1 to
100). I have another db table name 'choices' with one default field as
auth.user_id and another as 'choice' . Now I show user the pics from that
db from id 1 to 100 and let him click on any of those such that if he
clicks
Please let me know the stepwise procedure.
--
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 are subscribed to the
What syntax do you use for the same?
--
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 are subscribed to the Google
Are opencv stuffs thread-safe and is it okay to use them in web2py?
--
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
I am in a very pathetic situation. I know web2py but now I realise learning
Django would have been better. Am I wrong?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list
I already found my anser in the history of the forum
On Thursday, February 25, 2016 at 12:05:56 PM UTC+1, R. Osinga wrote:
>
> Hi all,
>
> I like to offer end users a way to define their ow mail templates.
> I tried using the standard templating mechanism for it, but it only
Hi all,
I like to offer end users a way to define their ow mail templates.
I tried using the standard templating mechanism for it, but it only accepts
files from fixk.
Is it possible for me to 'bend' this functionality into reading a templace
(and its parent tamplates) from the database?
Please tell the thing I need to write there.
--
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 are subscribed to the
I used both. Still what losses am I having?
On Friday, February 19, 2016 at 2:47:42 PM UTC+5:30, Niphlod wrote:
>
> you need BOTH the js and the css file.
>
> On Friday, February 19, 2016 at 9:56:19 AM UTC+1, RAGHIB R wrote:
>>
>> For example I am not getting calendar eve
For example I am not getting calendar even though I used its link rel by
putting css file under it.
On Friday, February 19, 2016 at 2:22:10 PM UTC+5:30, RAGHIB R wrote:
>
> 1) form (will just design change or even the functionalities change)
> 2) calender and ajax stuffs
> 3) ano
1) form (will just design change or even the functionalities change)
2) calender and ajax stuffs
3) another changes?
--
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
1) form (will just design change or even the functionalities change)
2) calender and ajax stuffs
3) another changes?
--
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
for example lovecalculator.pythonanywhere.com opens very differently on
mobile and looks bad
On Wednesday, February 17, 2016 at 10:09:58 AM UTC+5:30, RAGHIB R wrote:
>
> The background-image and everything looks curbed, not suited according to
> browser. How to always open a standard
The background-image and everything looks curbed, not suited according to
browser. How to always open a standard size like that which opens in google
chrome?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
Yes Dave exactly. How do I proceed with this stepwise?
On Friday, January 22, 2016 at 3:24:17 PM UTC+5:30, Dave S wrote:
>
> On Tuesday, January 19, 2016 at 7:51:13 AM UTC-8, RAGHIB R wrote:
>>
>> Please explain how to do it.
>>
>
>
> What's the goal of this
{{=form.custom.begin}}
Name: {{=form.custom.widget.name}}
File: {{=form.custom.widget.source}}
{{=form.custom.submit}}{{=form.custom.end}}
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
Please explain how to do it.
--
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 are subscribed to the Google Groups
def hidefields():
form=SQLFORM(db.sample1)
if form.accepts(request.vars,session,formname="form"):
response.flash="added"
return locals()
{{extend 'layout.html'}}
jQuery(document).ready(function(){
jQuery('#sample1_one__row').hide();
});
{{=form}}
--
achments, cc, .. etc etc etc).
>
> for html-only mails, it should be
>
> mail.send('reci...@gmail.com , 'subject',
> 'thebody', etc etc etc)
>
> That being said, what's the error ?
>
> On Tuesday, January 12, 2016 at 7:21:25 PM UTC+1, RAGHIB R wrote:
>>
>
etc etc etc).
>
> for html-only mails, it should be
>
> mail.send('reci...@gmail.com , 'subject',
> 'thebody', etc etc etc)
>
> That being said, what's the error ?
>
> On Tuesday, January 12, 2016 at 7:21:25 PM UTC+1, RAGHIB R wrote:
>>
>> def res
can you please write a piece of code for it?
--
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 are subscribed to the
def result():
session.x=mail.send('smm...@gmail.com',
'hello',
'Hi Raghib, you
have a new entry: ','session.name+session.name2+" with
"+str(session.percent)')
if session.x==True:
response.flash="result"
else:
Can we do it without any plugin? If yes, how?
--
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 are subscribed to the
{{=
x.name}}
this in my view calls this functions:
def my_insert_function():
_id = request.args(0)
db.store.insert(stuff = _id)
if I don't put any redirect("sm page") here it takes me to a null page. How
to prevent this and get a response.flash instead?
--
Resources:
- http://web2py.com
How to tackle this?
my code is:
mail = auth.settings.mailer
mail.settings.server = 'smtp.gmail.com:587'
mail.settings.sender = 'mym...@gmail.com'
mail.settings.login = 'mym...@gmail.com:secret'
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Didn't 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 are subscribed to the Google Groups
"web2py-users"
@marin it worked. Thanks for your help so sensibly.
--
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 are subscribed
Thank you so much. It just worked. Thanks a lot.
--
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 are subscribed to
--
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 are subscribed to the Google Groups
"web2py-users" group.
To
Can we install web2py app on android Mobile as we install the apk files?
--
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
Suppose session has variables: session.name1 and session.name2 such that each
session needs a different set of values for them. Does web2py guarantee that
there will be no conflicts between all sessions.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
I appreciate the help Alessio. That sounds little complicated. So what if I do
something like this. What should I do in place of the comment. Will be thankful
for your help.
{{for x in uu:}}
{{pass}}
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
{{for x in uu:}}
{{=x.name}}
{{pass}}
This doesn't work as expected.
--
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
{{=A ... Can be used but it is only for URL. Please help me out of this. This
is nowhere in the book.
--
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)
---
{{for x in uu:}}
{{=x.name}}
{{pass}}
This doesn't work as expected. How to fix it?
--
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
For example I called a db query x in view
Where each elements in x will be displayed in view with a button for each. And
if user clicks on any one of them, he/she will get that very id of x (x.id)
inserted in a different db store.
I tried implementing the same with form but clicking on just one
For example I called a db query uu in view
Where each elements in uu will be displayed in view with a button for each. And
if user clicks on any one of them, he/she will get that very id of x (x.id)
inserted in a different db store.
I tried implementing the same with form but clicking on just
How to do that?Can you explain or give a source to learn this?
--
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 are
thanks Niphlod. I am studying that and practicing too. But I couldn't find
solution to this error in the book anywhere. Will be thankful if you point out
the mistake and tell me the corrected version. Will surely take some time to
complete the book after I have my doubts cleared about this.
--
Dude I am asking about inbuilt forms like SQLFORM and form called from
default.py
--
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
Please give me the source at least.
--
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 are subscribed to the Google
--
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 are subscribed to the Google Groups
"web2py-users" group.
To
My codes are : (it is uploading the image using sqlformfactory nicely but there
is some problem with the following one)
Form=SQLFORM.factory(Field('image','upload',uploadfolder=os.path.join(request.folder,'uploads/')))
if Form.accepts(request.vars,session):
Suppose a db has fields: name,roll,gender and I want to insert only into name
and gender as of now , thus create a SQLFORM only for name and gender. How do I
do that without putting roll as both readabke and writable as false?
--
Resources:
- http://web2py.com
- http://web2py.com/book
Form=FORM(INPUT(_name='gender', requires=IS_IN_SET(['MALE','FEMALE'])), INPUT(
_type='submit'))
--
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
My codes are : (it is uploading the image using sqlformfactory nicely but there
is some problem with the following one)
Form=SQLFORM.factory(Field('image','upload',uploadfolder=os.path.join(request.folder,'uploads/')))
if Form.accepts(request.vars,session):
Form=FORM(INPUT(_name='gender' requires=IS_IN_SET(['MALE','FEMALE']), INPUT(
_type='submit'))
--
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
Form=SQLFORM.factory(Field('image', 'upload',
uploadfolder=os.path.join(request.folder,'uploads')))
It says os is not defined.
When I just put: uploadfolder=('uploads')
It just creates an image of 0 bytes which when checked can't be opened becayse
it has not uploaded, just created.
i an using
@Anthony, it did upload to the 'person' table as in upload folder I can read it
as person.image.something but the later part didn't work.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
This didn't work. Can you please edit the code above and then point out the
mistake?
--
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
--
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 are subscribed to the Google Groups
"web2py-users" group.
To
for example here, I want to remove profile in this pic and name in front of
welcome. how to do this?
--
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
For id it is auth.user_id, what for first name?
--
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 are subscribed to
1 - 100 of 192 matches
Mail list logo