[web2py] Re: Flash message if before_insert fail

2016-02-19 Thread Ivan Gazzola
Thx Anthony ! Il giorno giovedì 18 febbraio 2016 21:22:05 UTC+1, Anthony ha scritto: > > .. > > > db.poc.Name.requires = [IS_UPPER > (), CRYPT > (), >

[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: Session variables and multiple browser tabs

2016-02-19 Thread Niphlod
every browser considers tabs as belonging to the same session in regards to cookies. there's no way to separate those using web2py code. you can leverage sessionstorage in javascript that keeps values alive - and compartimentalized - to a single living tab. On Friday, February 19, 2016 at

[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] 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) another changes? >

[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 Niphlod
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 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)

[web2py] download pandas dataframe

2016-02-19 Thread Paolo Amboni
I've a pandas dataframe that i want to download as a csv file. I know that i can output a dataframe to a csv file : dataframe.to_scv(path,sep) But how can a user download his generated file? Should i write it in a static directory, perhaps with the username prefix? Is there a way to generate a

[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 even though I used its link

[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 Niphlod
calendar just needs jquery.js, calendar.js and calendar.css On Friday, February 19, 2016 at 12:26:03 PM UTC+1, RAGHIB R wrote: > > 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. >>

[web2py] Re: download pandas dataframe

2016-02-19 Thread Niphlod
you can write to stringIO and then serve it. Attention: using StringIO will consume memory, so a dataframe weighting 100MB will raise your's app memory to something in the range of 250MB or so for EVERY request of download (counting 100MB for the original dataframe, another 100MB or so for the

[web2py] Re: problem with sessions2trash.py

2016-02-19 Thread peter
Upgrading my web2py to the latest verision 2.13.4 did sort out the problem. I used the automatic upgrade. This produced a ticket, but restarting web2py sorted this out. Web2py's maintaining backwards compatability is great. Peter -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: Session variables and multiple browser tabs

2016-02-19 Thread Jim S
Thanks for the reply. However, I'm unclear on how I might use it effectively. My scenario in my app: I have a python object that I pass around to different pages. At the end of each of my controller methods I do the following: wo = Workorder(auth.user.id, workorder_id) # save to the

[web2py] Re: daily scheduler task

2016-02-19 Thread Brian M
Oddly enough I actually had this happen this past weekend. I have a daily task that sends plant status update emails and the view template that renders the email body was choking because of an unexpected dividide by zero. The first day after the bad data was entered the scheduled run did

[web2py] Generator for web2py - part 2

2016-02-19 Thread Graham Ranson
I see that the web2pyslices still doesn't have the entry I posted a few days ago and neither has my reply to Carlos' posting. The latter may be because I don't/cannot use google groups because Google don't want to let me create a user, which is fine by me if they want to be like that... so

Re: [web2py] Re: charts on web2py

2016-02-19 Thread Ron Chatterjee
For a moment I thought they are downloading directly from the page. I didn't notice. Thank you. On Thursday, February 18, 2016 at 10:22:57 PM UTC-5, Junior Phanter wrote: > > Download the developer's site the highcharts.js and exporting.js file and > place the js folder of the your

[web2py] How to install web2py on CentOS 6.5 with Apache?

2016-02-19 Thread Fabiano Almeida
Hi all, How to install web2py on CentOS 6.5 with Apache? Tks! Fabiano. -- 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] Re: How to install web2py on CentOS 6.5 with Apache?

2016-02-19 Thread Jim S
I'm not a CentOS guy, but there are a couple scripts (although not for 6.5) in the /scripts directory that may give you clues as to what needs to happen. -Jim On Friday, February 19, 2016 at 8:48:59 AM UTC-6, Fabiano Almeida wrote: > > Hi all, > > How to install web2py on CentOS 6.5 with

[web2py] Re: CMS WEB2PY

2016-02-19 Thread Ron Chatterjee
Curious to know what would be best practice? Use CMS like Mezzanine or use bootstrap and custom theme for each page? It just seem the look and feel of CMS is nicer than out of box web2py app. List are few things Mezzanine offer. Most of it is fairly simple and offered via various web2py

[web2py] Re: Session variables and multiple browser tabs

2016-02-19 Thread Niphlod
the less session you use, the more your app is scalable. that being said, it's pretty clear that you can't leverage in python something that is only available on javascript. maybe but just maybe you can POST back to web2py a variable that is stored on the sessionstorage (i.e. the current date

Re: [web2py] Re: How to install web2py on CentOS 6.5 with Apache?

2016-02-19 Thread Fabiano Almeida
I'm a Debian user / Ubuntu, CentOS testing for the first time ... Thanks! 2016-02-19 12:57 GMT-02:00 Jim S : > I'm not a CentOS guy, but there are a couple scripts (although not for > 6.5) in the /scripts directory that may give you clues as to what needs to > happen. > > -Jim > >

[web2py] Re: CMS WEB2PY

2016-02-19 Thread LightDot
You're comparing two different categories. Web2py is a programming framework, Mezzanine is a CMS. Web2py is a tool you would use to build a CMS like a Mezzanine (same as Django is used in this particular case). In other words, what you should be comparing is Web2py vs Django, not web2py vs

[web2py] Re: Session variables and multiple browser tabs

2016-02-19 Thread Anthony
I think the idea is you would not use the web2py server-side session but would instead handle things on the browser side. An alternative would be to generate some kind of unique key for each page/tab to use as a namespace within the server-side session, and then either put that key in the URL

[web2py] Re: Where does a login action go?

2016-02-19 Thread Anthony
Are you using SessionVariable to store and re-send the session cookie? web2py uses a session cookie to link the client with a session on the server, and the login status is stored in the session. Anthony On Thursday, February 18, 2016 at 11:04:04 PM UTC-5, Dave S wrote: > > I'm trying to futz

[web2py] Re: Flash message if before_insert fail

2016-02-19 Thread Anthony
> > db.poc.Name.requires = [IS_UPPER > (), CRYPT > (), > IS_NOT_IN_DB(db(db.poc.Birthday == > request.vars.Birthday), 'poc.Name')] > > > > I've tried but this doesn't work

Re: [web2py] Re: problem with sessions2trash.py

2016-02-19 Thread Richard Vézina
Don't forget to update web2py app files, which a simple update don't address : https://groups.google.com/d/msg/web2py/tVyL7z7WHkw/mce13Vh-k3UJ but session2trash not part of that I think... Richard On Fri, Feb 19, 2016 at 7:48 AM, peter wrote: > Upgrading my

[web2py] Re: CMS WEB2PY

2016-02-19 Thread Ron Chatterjee
I didn't mean it like that. I meant to say, due to lack of CMS what would be the best practice. Using of CMS or custom theme. Sorry about the confusion. On Friday, February 19, 2016 at 10:25:59 AM UTC-5, LightDot wrote: > > You're comparing two different categories. Web2py is a programming >

Re: [web2py] Re: problem with sessions2trash.py

2016-02-19 Thread peter
> > Good point thanks > Peter -- 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

Re: [web2py] Re: charts on web2py

2016-02-19 Thread Junior Phanter
This is the advantagem of the highchart over Google Charts. You can use him in local server (offline). Happy in help. Sorry my bad englhis. ;) 2016-02-19 11:21 GMT-03:00 Ron Chatterjee : > For a moment I thought they are downloading directly from the page. I > didn't

Re: [web2py] Re: Session variables and multiple browser tabs

2016-02-19 Thread Jim Steil
I was thinking of that but then couldn't figure out how I'd handle clicking the back button in the browser. Doing a little research we've found a plugin for Firefox called MultiFox that does what I want. We are also going to play later today with the multi-personality features of chrome and

[web2py] Re: Old field value returns in custom select widget

2016-02-19 Thread Ian W. Scott
Okay, here's the core of the code. First, this is the function that creates the form (in a component and submitted via ajax). It's a generic form for editing db records based on a url arg supplying the table name. You'll notice that I have to use a hack at the moment to get the values from my

Re: [web2py] Re: charts on web2py

2016-02-19 Thread Ron Chatterjee
No, you are fine. I am sorry that my eyes fooled me and I kept thinking like google chart this one also loads up the js from external site. I wasn't paying attention. That's why google chart is slow in the browser setting. Thank you so much. This is a great help and the charts looks really

[web2py] Re: Email not working

2016-02-19 Thread Tom Russell
Yea I have the user/pw correct, the smtp settings seem pretty straight forward as well so not sure what the root cause is. On Friday, February 12, 2016 at 4:10:20 PM UTC-5, Dave S wrote: > > > > On Friday, February 12, 2016 at 12:17:57 PM UTC-8, Tom Russell wrote: >> >> Yea I am not trying to

Re: [web2py] Re: CMS WEB2PY

2016-02-19 Thread Carlos Cesar Caballero Díaz
Hi, because of our needs, the time available and the workload, we decide to postpone our work in a complete CMS solution, and concentrate in modules (web2py plugins) with CMS capabilities that can be reused and integrated in an app depending the needs. I can share the code that supports

Re: [web2py] Re: CMS WEB2PY

2016-02-19 Thread Carlos Cesar Caballero Díaz
Hi Ron, CMSs allows to build web sites faster, but they usually lacks of flexibility and performance compared with custom applications, I prefer to stay in the middle and build custom applications with a core of pre made modules for different functionalities, in that way I can balance the

Re: [web2py] Re: CMS WEB2PY

2016-02-19 Thread Ron Chatterjee
I concur. You did a good job on that blog. It looks nice. On Friday, February 19, 2016 at 12:57:09 PM UTC-5, Carlos Cesar Caballero wrote: > > Hi Ron, CMSs allows to build web sites faster, but they usually lacks of > flexibility and performance compared with custom applications, I prefer to

[web2py] creating tags and linking

2016-02-19 Thread Ron Chatterjee
Was looking in the book for an example and can't seem to find it. Want to do something very similar to this with tags: http://careers.stackoverflow.com/jobs/107630/software-engineer-nest-financial I want to create tags and have links to them using the urls. my model: hobby_str = ['baseball',

[web2py] variables available in view

2016-02-19 Thread Pierre
hi everyone, I have a controller/function with different return cases: like : if condition1: return dict(var1=var1) elif condition2: return dict(var1=var1,var2=var2) . how do I know in the corresponding view which variables are accessible (what's the case) ? do I have to return a

[web2py] List in a db Request

2016-02-19 Thread Lucas Schreiber
Hi there, is there a way to use a list in a db request? like this: list = [One, Two, Three] row_db = dba((dba.table.table_name!= list)).select() and getting every row, which doesnt have one of the emelents as a name? Thank you -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: variables available in view

2016-02-19 Thread Dave S
On Friday, February 19, 2016 at 10:13:31 AM UTC-8, Pierre wrote: > > hi everyone, > > I have a controller/function with different return cases: > like : > > if condition1: > return dict(var1=var1) > elif condition2: > return dict(var1=var1,var2=var2) > . > > how do I know in the

[web2py] Re: List in a db Request

2016-02-19 Thread Niphlod
dba(~dba.table.name.belongs(list)).select() On Friday, February 19, 2016 at 7:50:13 PM UTC+1, Lucas Schreiber wrote: > > Hi there, > > is there a way to use a list in a db request? like this: > list = [One, Two, Three] > > row_db = dba((dba.table.table_name!= list)).select() > > > and getting

[web2py] Re: creating tags and linking

2016-02-19 Thread Dave S
On Friday, February 19, 2016 at 10:06:51 AM UTC-8, Ron Chatterjee wrote: > > Was looking in the book for an example and can't seem to find it. > > Want to do something very similar to this with tags (postgresql > java >

[web2py] Re: Email not working

2016-02-19 Thread Dave S
On Friday, February 19, 2016 at 9:26:23 AM UTC-8, Tom Russell wrote: > > Yea I have the user/pw correct, the smtp settings seem pretty straight > forward as well so not sure what the root cause is. > Can you connect to the other end using telnet? There are some examples on the web of general

[web2py] Passing file through pvars on scheduler.queue_task() function

2016-02-19 Thread Edward Suárez
file = request.post_vars["myfile"] task = scheduler.queue_task( "task", task_name = "task_x", pvars={ 'file': file , }, start_time = request.now + datetime.timedelta(seconds=50),

[web2py] Re: Where does a login action go?

2016-02-19 Thread Dave S
On Friday, February 19, 2016 at 7:38:34 AM UTC-8, Anthony wrote: > > Are you using SessionVariable to store and re-send the session cookie? > web2py uses a session cookie to link the client with a session on the > server, and the login status is stored in the session. > Yes, when I ask for

[web2py] Re: CAS with OpenSSL-Certificates

2016-02-19 Thread Frank Bunt
I'll give an older version a try. TIA. On Tuesday, February 16, 2016 at 5:39:35 PM UTC+1, Niphlod wrote: > > imho 2.7.10 and its certificate validation done by default is messing the > consumer app. But you wouldn't absolutely be able to log in the consumer > app... > > -- Resources: -

[web2py] Re: Where does a login action go?

2016-02-19 Thread Anthony
Hmm, not sure what the problem is then. On Friday, February 19, 2016 at 3:15:35 PM UTC-5, Dave S wrote: > > > > On Friday, February 19, 2016 at 7:38:34 AM UTC-8, Anthony wrote: >> >> Are you using SessionVariable to store and re-send the session cookie? >> web2py uses a session cookie to link

[web2py] datestamp with SQLFORM

2016-02-19 Thread Dave S
I have an SQLFORM being used for a when-who-what type of function, for a table roughly like db.define_table('stuff', FIELD('where', 'string'), FIELD('when', 'datetime'), FIELD('who', 'string'), FIELD('what', 'something'))# 'something' is 'upload' in actual code, but I don't

[web2py] Prepping upload file browser

2016-02-19 Thread Dave S
Using SQLFORM for a table with a Field('x', 'upload'), is there a way to tell the file chooser widget what directory to start in (which will vary with client OS) ? I'm interested in uploading files that are domain-specific, and which can be expected to be in certain places. /dps --