[web2py] Re: Unable to send emails (mail.send) from server

2012-11-30 Thread Aurelijus Useckas
Yes, I am able to telnet to gmail smtp On Thursday, November 29, 2012 12:08:08 PM UTC+2, Niphlod wrote: is your server able to reach gmail's smtps servers ? On Thursday, November 29, 2012 10:46:12 AM UTC+1, Aurelijus Useckas wrote: External smtp, gmail --

[web2py] Re: Unable to send emails (mail.send) from server

2012-11-30 Thread Aurelijus Useckas
nope... I'm running a linux. Virus free environment. No need for McAfee ;) Thnx anyway guys, I guess I'll check with my provider. It has to be their fault. On Thursday, November 29, 2012 3:36:09 PM UTC+2, Mark wrote: If McAfee is running on the server, McAfee blocked the emails sending from

[web2py] Re: Unable to send emails (mail.send) from server

2012-11-30 Thread Niphlod
did you try to see what errors you get back ? rtn = mail.send('y...@example.com', 'Message subject', 'Plain text body of the message') print rtn print mail.result print mail.error ? Il giorno venerdì 30 novembre 2012 11:16:00 UTC+1, Aurelijus

[web2py] Re: web2py on Heroku

2012-11-30 Thread Joe Repka
pip install is not finding postgresql2 for me: Could not find any downloads that satisfy the requirement postgresql2 No distributions at all found for postgresql2 I tried installing psycopg2 instead, but no love from that: type 'exceptions.RuntimeError' Failure to connect, tried 5 times:

[web2py] Foreign Keys in DAL, in different files

2012-11-30 Thread Samuel Komfi
I keep getting this error: *'DAL' object has no attribute 'event_instance'* it points to my db_agents file as the culprit on this line: ('event_instance_id', db.event_instance) However if I move the definition of the event_instance table to that db_agents model file the error disappears, but

[web2py] IS_LIST_OF(IS_IN_SET(['A','B','C'],multiple=True)) missing drop down in form

2012-11-30 Thread HP
Hi! I have a database model as follows db.define_table('test', Field('sub_components', 'list:string', requires=IS_LIST_OF(IS_IN_SET(['A','B','C'],multiple=True and a controller as follows: def create(): creates a new component form = crud.create(db.test, next=URL('index'))

[web2py] Dal Foreign keys

2012-11-30 Thread Samuel Komfi
I keep getting this error: *'DAL' object has no attribute 'event_instance'* it points to my db_agents file as the culprit on this line: ('event_instance_id', db.event_instance) However if I move the definition of the event_instance table to that db_agents model file the error disappears, but

[web2py] Change layout from 12 to 6 columns

2012-11-30 Thread Stephen Tanner
Now that web2py uses bootstrap for the layout, I should be able to set the number of columns that are used. According to this post on SO ( http://stackoverflow.com/questions/10742082/customizing-the-twitter-bootstrap-default-grid) you should be able to edit the file *variables.less* and add

[web2py] Re: web2py SQLFORM widget autocomplete and cyrillic letters

2012-11-30 Thread Dmitry Mosin
The ticket http://code.google.com/p/web2py/issues/detail?id=1198 --

[web2py] Re: Dal Foreign keys

2012-11-30 Thread Niphlod
does the error show up if you use 'reference event_instance' instead of db.event_instance ? ('event_instance_id', 'reference event_instance') Il giorno venerdì 30 novembre 2012 10:17:54 UTC+1, Samuel Komfi ha scritto: I keep getting this error: *'DAL' object has no attribute 'event_instance'

[web2py] Re: Dal Foreign keys

2012-11-30 Thread Anthony
Also, more generally, it's OK to keep model definitions in different files, but note that the files are executed in alphabetical order, so if you want an object to be available in one file, make sure it is defined in a file that comes earlier in alphabetical order. In this case, that isn't

Re: [web2py] Re: Self-joins not working.

2012-11-30 Thread Anthony
The format argument goes in the define_table() call -- is that where you have it? Anthony On Friday, November 30, 2012 1:58:09 AM UTC-5, Luc Chase wrote: Thanks for the suggestion. I had tried something similar but got an error and even with this I have an error referencing to the

[web2py] Re: Ninja IDE: written in Python for Pythonistas

2012-11-30 Thread Don_X
Yeah ! . pbreit ! This does look interesting ! IDEs have their advantages and disadvantages ! ...for me .. it can be an advantage mainly when it comes to quickly view or analyse the specific calls of function contents or codes behind the work being done without having to navigate manually

[web2py] Re: web2py on Heroku

2012-11-30 Thread Massimo Di Pierro
You are right. There is a type in the script. I just fixed it in trunk. The second issue is a bug in dal.py. I also just fixed that. Please check again and let us know. On Thursday, 29 November 2012 14:46:40 UTC-6, Joe Repka wrote: pip install is not finding postgresql2 for me: Could not

[web2py] Re: IS_LIST_OF(IS_IN_SET(['A','B','C'],multiple=True)) missing drop down in form

2012-11-30 Thread Massimo Di Pierro
Please open a ticket. This is not supported at the moment. On Thursday, 29 November 2012 15:25:52 UTC-6, HP wrote: Hi! I have a database model as follows db.define_table('test', Field('sub_components', 'list:string', requires=IS_LIST_OF(IS_IN_SET(['A','B','C'],multiple=True

[web2py] Re: Change layout from 12 to 6 columns

2012-11-30 Thread Massimo Di Pierro
web2py ships with bootstrap.css which is generated from *.less files but we do not ship the .less files. You would have to do this yourself. On Thursday, 29 November 2012 16:29:42 UTC-6, Stephen Tanner wrote: Now that web2py uses bootstrap for the layout, I should be able to set the number

[web2py] Re: importing issues

2012-11-30 Thread Massimo Di Pierro
Do you have anything under yourapp/modules/? On Thursday, 29 November 2012 17:30:30 UTC-6, Maggs wrote: I recently upgraded to web2py 2.2.1 from 1.99. I have an external set of modules that I am importing into my application. Since I updated to 2.2.1 I am getting errors saying that the

[web2py] Re: De-normalizing data to run on GAE

2012-11-30 Thread Massimo Di Pierro
strange. Are you using lazy tables? On Thursday, 29 November 2012 23:31:17 UTC-6, Andy W wrote: Thanks for the quick reply howesc. Just for the record, your suggested: Field('client_code', 'string', required=True, requires=IS_IN_DB(db, 'client.code', '%(code)s')) did not work. It needed

Re: [web2py] Re: Self-joins not working.

2012-11-30 Thread Richard Vézina
I open an issue in the pass about that. http://code.google.com/p/web2py/issues/detail?id=382 Richard On Fri, Nov 30, 2012 at 8:50 AM, Anthony abasta...@gmail.com wrote: The format argument goes in the define_table() call -- is that where you have it? Anthony On Friday, November 30, 2012

[web2py] Re: global logging to file

2012-11-30 Thread Francisco Barretto
Hi There! Sorry to resurrect this long time dead post but I'm really wondering what is the proper way to log actions, errors and warns in Web2Py. Tried Hans/Iceberg solution but the log file is not created... Read in other topic about some logging functionality integrated but found none in

Re: [web2py] Re: Multiple submit buttons using selectable in SQLFORM.grid

2012-11-30 Thread Johann Spies
On 30 November 2012 03:59, Wes Hall wesh...@gmail.com wrote: What I have done was to make the function the button redirects to one that gives the user a choice what to do with the selected records. That is a sort of workaround. Regards Johann. -- Because experiencing your loyal love is better

[web2py] Login form password widget chaned

2012-11-30 Thread Felipe Meirelles
Did you changed the password widget on the login form from INPUT to CAT? Is there a reason to this change? I had a placeholder on it and since DIVs dont have this property, my placeholders don't work any more. --

[web2py] Re: IS_LIST_OF(IS_IN_SET(['A','B','C'],multiple=True)) missing drop down in form

2012-11-30 Thread HP
Thanks. Ticket opened here http://code.google.com/p/web2py/issues/detail?id=1199 Regards, Hitesh On Friday, November 30, 2012 9:35:34 AM UTC-5, Massimo Di Pierro wrote: Please open a ticket. This is not supported at the moment. On Thursday, 29 November 2012 15:25:52 UTC-6, HP wrote: Hi!

Re: [web2py] Re: Self-joins not working.

2012-11-30 Thread Massimo Di Pierro
Can you check trunk? I just submitted a patch that should have fixed this problem. The price: slower table initilization but perhaps negligible. On Friday, November 30, 2012 8:51:06 AM UTC-6, Richard wrote: I open an issue in the pass about that.

Re: [web2py] Re: Self-joins not working.

2012-11-30 Thread Massimo Di Pierro
Correction. Not fixed. On Friday, November 30, 2012 9:10:30 AM UTC-6, Massimo Di Pierro wrote: Can you check trunk? I just submitted a patch that should have fixed this problem. The price: slower table initilization but perhaps negligible. On Friday, November 30, 2012 8:51:06 AM UTC-6,

[web2py] Re: Login form password widget chaned

2012-11-30 Thread Massimo Di Pierro
What change are you referring to? Can you provide more details? On Friday, November 30, 2012 9:01:18 AM UTC-6, Felipe Meirelles wrote: Did you changed the password widget on the login form from INPUT to CAT? Is there a reason to this change? I had a placeholder on it and since DIVs dont

Re: [web2py] Re: Self-joins not working.

2012-11-30 Thread Richard Vézina
Ask again when you are ready I have little app dedicated to check for this issue. Richard On Fri, Nov 30, 2012 at 10:10 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Correction. Not fixed. On Friday, November 30, 2012 9:10:30 AM UTC-6, Massimo Di Pierro wrote: Can you check

[web2py] Re: global logging to file

2012-11-30 Thread Niphlod
there's a full section on it http://web2py.com/books/default/chapter/29/04?search=logging#Logging Il giorno venerdì 30 novembre 2012 15:58:23 UTC+1, Francisco Barretto ha scritto: Hi There! Sorry to resurrect this long time dead post but I'm really wondering what is the proper way to log

[web2py] Re: Change layout from 12 to 6 columns

2012-11-30 Thread Paolo Caruccio
If you don't like .less, you can modify grid system variables trough the web interface at http://twitter.github.com/bootstrap/customize.html and download modded bootstrap files. Il giorno giovedì 29 novembre 2012 23:29:42 UTC+1, Stephen Tanner ha scritto: Now that web2py uses bootstrap for

Re: [web2py] Re: Login form password widget chaned

2012-11-30 Thread Felipe Meirelles
def index(): form = auth() logging.info(form.custom) Storage {'comment': Storage {'password': '', 'id': '', 'email': ''}, 'widget': Storage {'password': gluon.html.CAT object at 0x04A50950, 'id': '', 'email': gluon.html.INPUT object at 0x04A50930}, 'end': gluon.html.__tag__ object at

Re: [web2py] Re: Login form password widget chaned

2012-11-30 Thread Niphlod
yep, now it carries the script to enable the entropy color codes. Il giorno venerdì 30 novembre 2012 17:21:15 UTC+1, Felipe Meirelles ha scritto: def index(): form = auth() logging.info(form.custom) Storage {'comment': Storage {'password': '', 'id': '', 'email': ''}, 'widget':

Re: [web2py] Re: Login form password widget chaned

2012-11-30 Thread Felipe Meirelles
Well, and is there possible to set his placeholder this way? On Fri, Nov 30, 2012 at 2:31 PM, Niphlod niph...@gmail.com wrote: yep, now it carries the script to enable the entropy color codes. Il giorno venerdì 30 novembre 2012 17:21:15 UTC+1, Felipe Meirelles ha scritto: def index():

[web2py] Re: Building a nested query in place

2012-11-30 Thread Wes Hall
I hadn't thought about that. My first thought is that I'd like to keep as much as possible within web2py for portability, but I will have to look at that possibility. Thanks. On Tuesday, November 27, 2012 2:21:09 PM UTC-5, Derek wrote: For this kind of thing, triggers are great. On Tuesday,

Re: [web2py] Re: Login form password widget chaned

2012-11-30 Thread Niphlod
you need to apply that to the INPUT and not the tag CAT. The Password widget if there is an IS_STRONG validator now translates to CAT with the INPUT followed by a SCRIPT. Don't know how did you placed your placeholders, but I bet this

Re: [web2py] Re: Login form password widget chaned

2012-11-30 Thread Anthony
Looks like this was done so the entropy-checking Javascript script element could be appended to the CAT (i.e., right after the INPUT element). Note, the original INPUT element is still there (inside the CAT element), so you should still be able to add a placeholder with a slight adjustment to

Re: [web2py] Re: Frustration With @reboot Cron

2012-11-30 Thread Magnitus
What you are suggesting addresses the concurrency access problem (which could be resolved with the DB since it locks or with your suggestion). However, if you stick the logic in your model, you still have the problem of the logic appearing on every request. While you do speed up the checking

Re: [web2py] Re: Frustration With @reboot Cron

2012-11-30 Thread Magnitus
Btw, one additioanl thing... Looking at the Settings.py file, I see this line of code: settings = global_settings # legacy compatibility Given what is written in the comments, is it a good idea to use global_settings in new apps? On Friday, 30 November 2012 12:38:08 UTC-5, Magnitus wrote:

Re: [web2py] Re: Frustration With @reboot Cron

2012-11-30 Thread Jonathan Lundell
On 30 Nov 2012, at 9:41 AM, Magnitus eric_vallee2...@yahoo.ca wrote: Btw, one additioanl thing... Looking at the Settings.py file, I see this line of code: settings = global_settings # legacy compatibility Given what is written in the comments, is it a good idea to use global_settings

Re: [web2py] Frustration With @reboot Cron

2012-11-30 Thread Jonathan Lundell
On 30 Nov 2012, at 9:38 AM, Magnitus eric_vallee2...@yahoo.ca wrote: What you are suggesting addresses the concurrency access problem (which could be resolved with the DB since it locks or with your suggestion). However, if you stick the logic in your model, you still have the problem of

Re: [web2py] Re: Frustration With @reboot Cron

2012-11-30 Thread Magnitus
ok,reading it again, I see that this has more to with with the functionality having two different names (one old, one new and more descriptive) rather than being deprecated. On Friday, 30 November 2012 12:45:04 UTC-5, Jonathan Lundell wrote: On 30 Nov 2012, at 9:41 AM, Magnitus

Re: [web2py] Frustration With @reboot Cron

2012-11-30 Thread Magnitus
It is not executed, but given that models are not compiled into bytecode as far as I know, won't it have to be interpreted (incurring a performance penalty for the interpreter having to parse additional code)? On Friday, 30 November 2012 12:50:33 UTC-5, Jonathan Lundell wrote: On 30 Nov 2012,

Re: [web2py] Re: unable to send e-mail postfix

2012-11-30 Thread keiser1080
the server admin find the problem I wil post later the configuration. ITS a setting with TLS = False or none. Le jeudi 29 novembre 2012 10:42:30 UTC+1, Niphlod a écrit : web2py uses smtplib, which uses something like telnet under the hood. Technology to talk to a mail server is always the

Re: [web2py] Frustration With @reboot Cron

2012-11-30 Thread Jonathan Lundell
On 30 Nov 2012, at 9:54 AM, Magnitus eric_vallee2...@yahoo.ca wrote: It is not executed, but given that models are not compiled into bytecode as far as I know, won't it have to be interpreted (incurring a performance penalty for the interpreter having to parse additional code)? Ordinarily,

[web2py] Re: Change layout from 12 to 6 columns

2012-11-30 Thread Joe Barnhart
Can I ask the purpose of changing the number of columns in the grid? I am a Bootstrap novice, but it seems like the number of columns is just an underlying minimum -- that is, with 12 columns you could not designate anything to take less than one column, or 1/12 of the presentation.

[web2py] Re: Transactions in Web2Py over Google App Engine.

2012-11-30 Thread Joe Barnhart
Think hard before locking a table while a user is dawdling over his reservation. The feature you are dealing with is database isolation levelhttp://en.wikipedia.org/wiki/Isolation_%28database_systems%29 and is the subject that fills volumes of database theory. From what you describe I think

[web2py] Re: importing issues

2012-11-30 Thread Maggs
Yes and this is what I was curious about. I do have a utility module under myapp/modules/, however this cm module is calling it's own utility module completely outside of my app, so I don't understand how it could be getting them confused. This was never an issues in 1.99. I will try changing

[web2py] Re: importing issues

2012-11-30 Thread Maggs
Renaming the utility module within the app did not help. On Friday, November 30, 2012 10:32:16 AM UTC-8, Maggs wrote: Yes and this is what I was curious about. I do have a utility module under myapp/modules/, however this cm module is calling it's own utility module completely outside of my

[web2py] Re: De-normalizing data to run on GAE

2012-11-30 Thread Andy W
No - just 'normal' tables for the moment. On Thursday, November 29, 2012 11:01:12 AM UTC+4, Andy W wrote: Can anybody expand on 13.5 of the Web2py Manual on how best to adapt an app to run on GAE? In particular, how to do away with linked tables. For example, I have a simple app that

[web2py] Re: importing issues

2012-11-30 Thread Massimo Di Pierro
consider this case: site-packages/mymodule/a.py site-packages/mymodule/b.py applications/myapp/modules/b.py if myapp import mymodule.a and a.py import b this worked fine before but does not work in 2.2. This because the latest web2py has a custom import that always looks first in

[web2py] Re: Change layout from 12 to 6 columns

2012-11-30 Thread Stephen Tanner
Ok. Forgive me for not pre-googling LESS. I am guessing its some sore of CSS pre-processor or something. So would I correctly guess that I could use the bootstrap CSS generator on their site, and then copy the corresponding bit of CSS over to the bootstrap.css file replacing the original 12

[web2py] Define tables related to each other in multiple files

2012-11-30 Thread Samuel Komfi
I have a db_agents model: * * db.define_table('agents', Field('user_id', db.auth_user), Field('event_instance_id', db.event_instance), # this is the line giving the error Field('code') ) db.agents.user_id.requires = IS_IN_DB(db, db.auth_user.id, '%(username)s')

[web2py] Upload directly to the server: error

2012-11-30 Thread Paulo
Hi! I'm trying to create a very simple upload field, without any complex mechanism. A user just uploads a file to a folder in the server (apache), without web2py changing the file name, and without any db. I have some dozens of files already in a folder in the server, I just need an upload

[web2py] How to put a view for functions inside a function of a controller ??

2012-11-30 Thread Don_X
The question in this post may not be very explicit .. but it is the best way for me to say it ! I have the following problem : in my controller, I have a function ( Z ) that has its own view ( an html file - Z.html ) the function Z is for registered members and uses the request arg to

[web2py] Re: How to put a view for functions inside a function of a controller ??

2012-11-30 Thread Anthony
The only function you can call via URL is the Z function. Once in the Z function, you need logic to set the appropriate view file and return the appropriate data. You can add request args to control that logic (e.g., perhaps the first or second arg could be home, A, or B, with the logic taking

Re: [web2py] How to put a view for functions inside a function of a controller ??

2012-11-30 Thread Richard Vézina
To me it would look less hacky if you were using if statement in view to filter what you want to show to your differents users... Something like this : # Controller def Z(): return EVERYTHING REQUIRED BY THE VIEW # View {{if auth.has_membership(auth.id_group('GROUPENAME')):}} SHOW WHAT

Re: [web2py] dashboard using bootstrap

2012-11-30 Thread dederocks
Another one: http://www.jqplot.com/ Le jeudi 29 novembre 2012 22:52:08 UTC+1, Paolo Caruccio a écrit : other alternatives: https://github.com/HumbleSoftware/Flotr2 http://canvasxpress.org/ http://jsxgraph.uni-bayreuth.de/wp/ I like and use, in combination with web2py, Flot

[web2py] Re: Define tables related to each other in multiple files

2012-11-30 Thread Anthony
Did you not read the responses to this question herehttps://groups.google.com/d/topic/web2py/uqBF0fzVWuA/discussionor on Stack Overflow http://stackoverflow.com/a/13646871/440323? Anthony On Friday, November 30, 2012 2:17:57 PM UTC-5, Samuel Komfi wrote: I have a db_agents model: * *

[web2py] Re: importing issues

2012-11-30 Thread Maggs
Hm, ok, that makes sense. However I have changed the name of the module within my app and restart web2py but I'm still getting the same error. Now the case is: site-packages/mymodule/a.py site-packages/mymodule/b.py applications/myapp/modules/c.py a.py imports b.py and is saying it does not

[web2py] Re: SQLFORM.grid and classes on GAE

2012-11-30 Thread Gian Luca Decurtins
HI cfh You're right. As far as I can see in the datastore viewer there is only one table. There is also a class value available. I did try a few more things (resetting local datastore and removing the entries in index.yaml) but I'm not able to access all three tables using the following

[web2py] How to make an admin session longer?

2012-11-30 Thread Luca
I am developing an app, and I find it annoying that I get so many communication error when I try to save after working on the code for some length of time. Is there a way for me to increase the timeout of the admin session, so that I don't get so many disconnections when I edit? Security is

[web2py] Re: Web2Py on OpenShift

2012-11-30 Thread Andrew
FYI - I've finally gotten some time to update the repo to 2.2.1 For those interested, give it a test and report any issues in the github project issue currently opened for 2.2.1 As I get time I'm going to try and integrate upgrades via Jenkins so people don't have to wait on me all the time.

[web2py] Re: How to put a view for functions inside a function of a controller ??

2012-11-30 Thread Don_X
Anthony, I want to thank you .. your input was very valuable ... i got it to work the way i want ! ... nicely so I should add ! ... without any load calls in the view ! ... I had to take out the functions inside the Z function, and put them outside but still within the profile.py

Re: [web2py] Frustration With @reboot Cron

2012-11-30 Thread Magnitus
Holy cow, you're right! I've had so many things on my mind that I totally forgot about that! Guess that will speed up my production app a little then... On Friday, 30 November 2012 13:06:34 UTC-5, Jonathan Lundell wrote: On 30 Nov 2012, at 9:54 AM, Magnitus eric_va...@yahoo.ca javascript:

Re: [web2py] Re: Self-joins not working.

2012-11-30 Thread Luc Chase
db.define_table('t_project', Field('f_name', type='string', label=T('Name')), Field('f_parent_project', type='reference t_project', label=T('Parent Project')), Field('f_description', type='string',