Re: [web2py] Re: Centos 7 uwsgi no driver for psycopg2

2022-04-02 Thread Dr. Clemens R. Odendahl
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

Re: [web2py] web2py comparison with Jam.py

2019-05-24 Thread r rad
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

[web2py] loop bootstrap grid

2018-12-11 Thread R U
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

[web2py] Multiprocessing and Web2py Scheduler

2018-10-30 Thread Daniel R.
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

[web2py] override record in db

2017-10-31 Thread R U
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

[web2py] form in bootstrap modal

2017-09-14 Thread R U
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

Re: [web2py] now web2py related but this is free now ...

2017-05-30 Thread R. Strusberg
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/

[web2py] function contingent on registration

2017-05-19 Thread R U
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 +=

Re: [web2py] Re: 403 Forbidden?

2017-05-05 Thread Erick R.
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

[web2py] Re: reCaptcha working on local but not on pythonanywhere?

2017-04-19 Thread r
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

[web2py] Re: reCaptcha working on local but not on pythonanywhere?

2017-04-19 Thread r
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 >

[web2py] reCaptcha working on local but not on pythonanywhere?

2017-04-19 Thread r
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 =

[web2py] list of dates into database

2017-04-18 Thread R U
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

[web2py] SQLFORM.GRID Change Header and labels too?

2017-04-07 Thread r
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:

[web2py] Re: Pagination, only add var if it already exists?

2017-03-30 Thread r
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,

Re: [web2py] Pagination, only add var if it already exists?

2017-03-30 Thread r
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.

Re: [web2py] Pagination, only add var if it already exists?

2017-03-30 Thread r
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

[web2py] Pagination, only add var if it already exists?

2017-03-30 Thread r
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

[web2py] A delete record button

2017-03-25 Thread r
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

[web2py] Is there any benefit from linking these 3 different ways?

2017-03-21 Thread r
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

Re: [web2py] Re: auth.settings.registration_requires_approval has no effect

2016-12-09 Thread Teemu R
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

[web2py] check boxes with is_in_set

2016-12-08 Thread R U
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

[web2py] Re: show_if issue

2016-07-28 Thread Sneka R
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

[web2py] Re: show_if issue

2016-07-27 Thread Sneka R
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

[web2py] Re: Cannot access the Administrative interface

2016-07-27 Thread Sneka R
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

[web2py] Re: Cannot access the Administrative interface

2016-07-27 Thread Sneka R
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

[web2py] Cannot access the Administrative interface

2016-07-27 Thread Sneka R
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 -

[web2py] Re: show_if issue

2016-07-26 Thread Sneka R
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

[web2py] image in a jumbotron

2016-07-26 Thread R U
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

[web2py] Re: show_if issue

2016-07-26 Thread Sneka R
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’, >

[web2py] show_if issue

2016-07-24 Thread Sneka R
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

[web2py] Re: cannot disable automatic login after registration

2016-07-19 Thread Sneka R
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: -

[web2py] Re: How to export sqlform.grid with the labeled column names

2016-07-18 Thread Sneka R
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

[web2py] Re: How to export sqlform.grid with the labeled column names

2016-07-18 Thread Sneka R
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

[web2py] Re: How to export sqlform.grid with the labeled column names

2016-07-18 Thread Sneka R
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

[web2py] Re: Size of SQLFORM.grid items

2016-06-28 Thread Sneka R
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"

[web2py] Re: Size of SQLFORM.grid items

2016-06-28 Thread Sneka R
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"

[web2py] Re: Size of SQLFORM.grid items

2016-06-24 Thread Sneka R
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

[web2py] Re: I am unable to change the hover background color in my menu. How do I do it?

2016-06-20 Thread Sneka R
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,

[web2py] Label in Form

2016-05-08 Thread R U
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

[web2py] Re: Uploaded new layout plugin in my app and the dropdown menu stopped working.

2016-04-16 Thread Sneka R
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

[web2py] Uploaded new layout plugin in my app and the dropdown menu stopped working.

2016-04-15 Thread Sneka R
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) -

[web2py] files vanished

2016-04-08 Thread Sneka R
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) ---

[web2py] How do you use web2py app work with phonegap?

2016-03-19 Thread RAGHIB R
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

[web2py] Re: How do you use web2py app work with phonegap?

2016-03-19 Thread RAGHIB R
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

[web2py] Re: How do you use web2py app work with phonegap?

2016-03-18 Thread RAGHIB R
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):

[web2py] How many days does it take you to learn django if you know web2py (and only web2py)?

2016-03-16 Thread RAGHIB R
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)

[web2py] How to do this? Obviously I need ajax but what's the exact syntax?

2016-03-14 Thread RAGHIB R
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

[web2py] How to upload my app on gae through ubuntu stepwise?

2016-03-14 Thread RAGHIB R
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

[web2py] How do I take picture using camera and save it in db?

2016-03-11 Thread RAGHIB R
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

[web2py] Is Opencv threadsafe in web2py?

2016-03-11 Thread RAGHIB R
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

[web2py] Django guys get a job easily. Why don't web2py guys get a job? How to get a job?

2016-03-05 Thread RAGHIB R
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

[web2py] Re: Reading view templates from database

2016-02-25 Thread R. Osinga
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

[web2py] Reading view templates from database

2016-02-25 Thread R. Osinga
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?

[web2py] For fastmail.com mail set up in web2py what should be mail.settings.server?

2016-02-19 Thread RAGHIB R
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

[web2py] Re: What happens to these if I don't use link rel for css and js in default layout and use a new layout?

2016-02-19 Thread RAGHIB R
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

[web2py] Re: What happens to these if I don't use link rel for css and js in default layout and use a new layout?

2016-02-19 Thread RAGHIB R
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

[web2py] What happens to these if I don't use link rel for css and js in default layout and use a new layout?

2016-02-19 Thread RAGHIB R
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

[web2py] What will happen to these if I use the link rel for css and js from my layout and use a new layout?

2016-02-19 Thread RAGHIB R
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

[web2py] Re: My web2py app adjusts according to the browser on mobile and look odd? How to load it like Chrome?

2016-02-17 Thread RAGHIB R
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

[web2py] My web2py app adjusts according to the browser on mobile and look odd? How to load it like Chrome?

2016-02-16 Thread RAGHIB R
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) -

[web2py] Re: How to compile Python/C++ codes in web2py and show the required output/error?

2016-01-22 Thread RAGHIB R
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

[web2py] How to style submit button in the form? How should I edit this one?

2016-01-19 Thread RAGHIB R
{{=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) -

[web2py] How to compile Python/C++ codes in web2py and show the required output/error?

2016-01-19 Thread RAGHIB R
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

[web2py] How to not get the "confirm form submission" on reloading the page a form has?Whats error in my code

2016-01-14 Thread RAGHIB R
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}} --

[web2py] Re: Why this HTML email not working? Please tell me the corrected version.

2016-01-13 Thread RAGHIB R
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: >> >

[web2py] Re: Why this HTML email not working? Please tell me the corrected version.

2016-01-13 Thread RAGHIB R
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

[web2py] How can we use variables like session.variable1 inside the html email body?

2016-01-13 Thread RAGHIB R
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

[web2py] Why this HTML email not working? Please tell me the corrected version.

2016-01-12 Thread RAGHIB R
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:

[web2py] web2py is giving me wrong time when I am using request.now for datetime. How to get time a/c as GMT?

2016-01-11 Thread RAGHIB R
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

[web2py] Why I am always being redirected? How to get a response.flash instead here?

2016-01-11 Thread RAGHIB R
{{= 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

[web2py] Why I'm unable to login my gmail in web2py for mailing and getting "sign in prevented messages"?

2016-01-09 Thread RAGHIB R
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) -

[web2py] Re: Changing navbar color

2016-01-04 Thread RAGHIB R
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"

Re: [web2py] Why this doesn't work as expected?

2016-01-04 Thread RAGHIB R
@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

Re: [web2py] Why this doesn't work as expected?

2016-01-04 Thread RAGHIB R
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

[web2py] Can we use a web2py app on Android mobile?

2016-01-04 Thread RAGHIB R
-- 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

Re: [web2py] Can we use a web2py app on Android mobile?

2016-01-04 Thread RAGHIB R
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

[web2py] How many sessions can a web2py app handle at once?

2016-01-04 Thread RAGHIB R
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) -

[web2py] Re: what's wrong in this code? please help

2016-01-03 Thread RAGHIB R
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) -

[web2py] Re: what's wrong in this code? please help

2016-01-03 Thread RAGHIB R
{{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

[web2py] Re: what's wrong in this code? please help

2016-01-03 Thread RAGHIB R
{{=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) ---

[web2py] Why this doesn't work as expected?

2016-01-03 Thread RAGHIB R
{{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

[web2py] How to create buttons for all elements of a db query individual such that all of them work different

2016-01-02 Thread RAGHIB R
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

[web2py] what's wrong in this code? please help

2016-01-02 Thread RAGHIB R
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

[web2py] Re: what's wrong in this code? please help

2016-01-02 Thread RAGHIB R
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

[web2py] Re: what's wrong in this code? please help

2016-01-02 Thread RAGHIB R
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. --

[web2py] Re: How do I change the look of a forms without using bootstrap? I am not getting any source to study it

2016-01-01 Thread RAGHIB R
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

[web2py] How do I change the look of a forms without using bootstrap? I am not getting any source to study it

2016-01-01 Thread RAGHIB R
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

[web2py] How do you change css for inbuilt SQLFORM or FORMs called from default.py?

2016-01-01 Thread RAGHIB R
-- 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

[web2py] How to upload an image using SQLFORMfactory in a folder & link same image to field of existing form

2016-01-01 Thread RAGHIB R
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):

[web2py] How do I create SQLFORM of a db with not all fields of the db?

2016-01-01 Thread RAGHIB R
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

[web2py] Why this form doesn't show the field name with drop down set options as intuitive? (see below)

2016-01-01 Thread RAGHIB R
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

[web2py] How to upload an image using SQLFORMfactory in a folder & link same image to field of an existing db

2016-01-01 Thread RAGHIB R
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):

[web2py] Why this form doesn't show the field name with drop down set options as intuitive? (see below)

2016-01-01 Thread RAGHIB R
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

[web2py] File not uploading in upload folder when using SQLFORM.factory. Why this code not working?

2016-01-01 Thread RAGHIB R
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

[web2py] Re: How to upload an image using SQLFORMfactory in a folder & link same image to field of an existing db

2016-01-01 Thread RAGHIB R
@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) -

[web2py] Re: How to upload an image using SQLFORMfactory in a folder & link same image to field of an existing db

2016-01-01 Thread RAGHIB R
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

[web2py] How to change the background color/ image in menu bar?

2015-12-27 Thread RAGHIB R
-- 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

[web2py] How to edit the menu bar so as to remove profile and name in front of welcome in the dropdown?

2015-12-26 Thread RAGHIB R
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

[web2py] how do I write a field in database such that its default is first name in auth.user?

2015-12-26 Thread RAGHIB R
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   2   >