[web2py] Re: pythonanywhere

2014-11-11 Thread clara
Hello Dave.

No, these CDNs are outside the hosting domain and hence are not fetched by 
my site if served as https.

Regards,

Clara

El lunes, 10 de noviembre de 2014 23:22:00 UTC-3, Dave S escribió:



 On Monday, November 10, 2014 5:12:57 PM UTC-8, clara wrote:

 Hello Niphlod,

 I guess I missed your message before. 

 The reason I want to avoid https is that I can not load external 
 javascript files from CDNs that make them available via http.

 Does this make sense to you? Is there any work around for this?

 Thanks!


 Are these CDNs part of your site, or within the corporate structure that 
 your site belongs to?

 /dps
  


 Clara

 El viernes, 10 de octubre de 2014 12:02:07 UTC-3, Niphlod escribió:

 why should you ever want to ditch https if you get it for free ?

 On Thursday, October 9, 2014 10:11:20 PM UTC+2, clara wrote:

 Hello,

 I realize that when deploying simple web2py applications on 
 pythonanywhere, they get deployed via HTTPS so it is served as 
 https://myuser.pythonanywhere.com. Is there any way to avoid this? I 
 have not changed any default setting in  web2py.

 Thanks in advance,

 Clara



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Deployment script for CentOS: apache + mod_wsgi + msql

2014-11-11 Thread lesssugar
Hi, guys, I would like to setup web2py on my CentOS 6.6 and I'm looking for 
deployment script, as I'm no expert.

Apache and MySQL is in place, but I'm looking for relatively painless way 
to automatically install web2py, configure mod_wsgi etc.

Any help?

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web2py on Pythonanywhere

2014-11-11 Thread Giles Thomas
Hi there,

PythonAnywhere dev here -- you're right, it's a browser cache thing, 
resulting from a bug on our side.  

We have a Strict-Transport-Security setting on the main PythonAnywhere 
site that means that if you ever visit it via https then in future your 
browser will always use https to access it.  This fixes a number of 
potential security holes, and we think it's a good thing.  But we only 
intended it to apply to www.pythonanywhere.com.

Unfortunately for a brief period this setting leaked into some of our 
customers' sites as the result of a bug on our side.  So if you visited one 
of them via https (eg. to use the admin UI) while that bug was active then 
your browser will have stored the always use https setting for that site. 
 (Perhaps confusingly, this will also apply if you visit it in an incognito 
session -- incognito sessions inherit this setting from non-incognito 
sessions, though obviously the reverse isn't true.)

The best fix is to clear your browser history.  Sorry about that!


All the best,

Giles








On Monday, November 10, 2014 3:47:11 PM UTC, Niphlod wrote:

 it's probably some misconfiguration / cached values / etc on your browser. 
 Try resetting preferences/cache/etc (or open an incognito session) to 
 test it properly.

 On Monday, November 10, 2014 3:31:58 PM UTC+1, clara wrote:

 Hello Niphlod,

 Thanks for your quick answer. From my PC if I try either link I always 
 get the secure site back (https). If I try it on my cellphone though  I get 
 http when requesting http and https when requesting https.

 If I remember correctly, when I do the same from my notebook at home, I 
 always end up getting the secure site back.

 Could this be related to the browser settings? 

 Thanks again,

 Clara


 PS: I am relieved to know that both http and https are served in 
 Pythonanywere



 El lunes, 10 de noviembre de 2014 11:03:51 UTC-3, Niphlod escribió:

 the first link, albeit printed as http, is carrying a link to https:

 please 

 try this
 http://ulamdev.pythonanywhere.com/unlam
 and 
 https://ulamdev.pythonanywhere.com/unlam

 Sites are served independently because pythonanywhere serves both by 
 default, and both are available without redirects.



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Is Web2py ill-suited for apps that heavily interact with other services?

2014-11-11 Thread Michele Comitini
Nonsense.
The guy has never used web2py or is  involved in the other framework.
I think exactly the opposite.  Django on complex applications requires a
*lot* of extra modules and it becomes difficult to update the framework.
Lots of boilerplate that wastes space in the editor windows and distracts
from the real problem.
The only thing that is true is that is older, and shows all its age ;-)

mic



2014-11-10 5:38 GMT+01:00 WhoSoLovesUs drewdclif...@gmail.com:

 Hi, I'm in the beginning stages of building my app.

 One of the most important things it will do is connect to 3rd party
 services via their APIs (e.g. Google Analytics)

 I ran into a disconcerting comment on this stackoverflow thread
 http://stackoverflow.com/questions/3646002/django-turbo-gears-web2py-which-is-better-for-what
 .

 To quote Mike A's comment
 http://stackoverflow.com/questions/3646002/django-turbo-gears-web2py-which-is-better-for-what#comment8500264_3648273
 :

 web2py has many good features, but be very wary of the global environment
 which becomes a real pain after a short time. It makes interacting with
 third-party tools like test-runners very difficult. Django is much more
 mature, being older than web2py, and has a much larger community and number
 of installations.


 Can anyone here comment on this? Not being a programmer myself, I need
 some more information about what this exactly means and why Mike would be
 of this opinion.

 Thanks :)

 --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Sending email from server

2014-11-11 Thread Yang
Hello,

I am running web2py on Apache server.
I can't send email from the server. The mail.error shows 'permission 
denied'. 
Is this due to the Apache configuration? How could I fix it?

Thanks!




-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] How to fix error type 'exceptions.ImportError'(No module named configuration)?

2014-11-11 Thread John Davis
Hello

I'm get the following error when I start up a web2py app:
type 'exceptions.ImportError'(No module named configuration)

This error corresponds to this line of code:
from configuration import local_time

This app was not written by me. It was written by someone else. It resides 
on a server other than the one I am using and works ok there.

I used the web2py admin interface to pack and download the app where it was 
working. Then I uploaded the app on a second server. I get the error on the 
second server when I try to start it.


John

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] import app from one web2py server to another

2014-11-11 Thread John Davis
Hello

I have an app written by someone which runs on our server.  I have tried to 
copy this app from one server to a new one which also runs web2py.  I use 
the admin site GUI for web2py to import the app, but when I try to run it, 
I get the following error.

error: type 'exceptions.ImportError'(No module named configuration)


I have a modules/configuration.py file and I also have a 
modules/configuration.pyc file.

The stack trace shows that the code which generates the error looks like 
this:


from configuration import local_time

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Asynchronous Background Processes

2014-11-11 Thread Josh L
Tim - Thanks - at first I was wary of the AJAX approach because I would 
have to submit multiple ajax requests, then multiple additional requests to 
get the image data. But I found that I could return base64 encoded image 
data with the ajax request and display that instead, saving another HTTP 
call for each image. So with this approach it is almost as fast as my 
original external script method. Also important is to run 
session.forget(response) in your ajax controller to prevent the session 
being locked for each parallel request, which slows down the multiple 
parallel calls quite a bit. Thanks for the replies everyone!

On Thursday, November 6, 2014 3:40:46 PM UTC-8, Tim Richardson wrote:


 simultaneous ajax requests via the browser. 


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Can Jmeter be used for load testing a Web2py application.

2014-11-11 Thread Nitin Goyal
Can Jmeter be used for load testing a Web2py application? Has anyone used 
this tool for Load testing.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Web2py on Pythonanywhere

2014-11-11 Thread clara
Hello Giles,

Thanks for this reply! So there was somthing on Pythonanywhere's side that 
forced https rather than http

I cleared my cache and things are working properly now.

Thanks a lot!!

Clara

El martes, 11 de noviembre de 2014 08:29:08 UTC-3, Giles Thomas escribió:

 Hi there,

 PythonAnywhere dev here -- you're right, it's a browser cache thing, 
 resulting from a bug on our side.  

 We have a Strict-Transport-Security setting on the main PythonAnywhere 
 site that means that if you ever visit it via https then in future your 
 browser will always use https to access it.  This fixes a number of 
 potential security holes, and we think it's a good thing.  But we only 
 intended it to apply to www.pythonanywhere.com.

 Unfortunately for a brief period this setting leaked into some of our 
 customers' sites as the result of a bug on our side.  So if you visited one 
 of them via https (eg. to use the admin UI) while that bug was active then 
 your browser will have stored the always use https setting for that site. 
  (Perhaps confusingly, this will also apply if you visit it in an incognito 
 session -- incognito sessions inherit this setting from non-incognito 
 sessions, though obviously the reverse isn't true.)

 The best fix is to clear your browser history.  Sorry about that!


 All the best,

 Giles








 On Monday, November 10, 2014 3:47:11 PM UTC, Niphlod wrote:

 it's probably some misconfiguration / cached values / etc on your 
 browser. Try resetting preferences/cache/etc (or open an incognito 
 session) to test it properly.

 On Monday, November 10, 2014 3:31:58 PM UTC+1, clara wrote:

 Hello Niphlod,

 Thanks for your quick answer. From my PC if I try either link I always 
 get the secure site back (https). If I try it on my cellphone though  I get 
 http when requesting http and https when requesting https.

 If I remember correctly, when I do the same from my notebook at home, I 
 always end up getting the secure site back.

 Could this be related to the browser settings? 

 Thanks again,

 Clara


 PS: I am relieved to know that both http and https are served in 
 Pythonanywere



 El lunes, 10 de noviembre de 2014 11:03:51 UTC-3, Niphlod escribió:

 the first link, albeit printed as http, is carrying a link to https:

 please 

 try this
 http://ulamdev.pythonanywhere.com/unlam
 and 
 https://ulamdev.pythonanywhere.com/unlam

 Sites are served independently because pythonanywhere serves both by 
 default, and both are available without redirects.



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Odd field validation issue

2014-11-11 Thread Cliff Kachinske
This field will not fail validation when submitted empty. Web2py 2.8.2 with 
lazy tables and archiving.

REQUIRE_MSG = SPAN('Required', _style=color:orange;)

   Field(
'problem_title', 
length=512,
required=True,
comment=REQUIRE_MSG,
 )

Written this way, it works.

   Field(
'problem_title', 
length=512,
required=True,
comment=REQUIRE_MSG,
requires=IS_LENGTH(
minsize=1,
maxsize=512,
error_message='Problem title cannot be empty. Max 512 
characters.'
)
   )

I didn't expect 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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: RSVP: Massimo @ Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-11 Thread Jim S
Will there be anyone recording the event/presentations?

-Jim

On Thursday, November 6, 2014 1:48:14 AM UTC-6, weheh wrote:

 Hi Bay Area web2py'ers. Get excited!

 *Massimo will attend our very own Bay Area* *web2py meetup* to meet, 
 greet and present. Additional talks are planned. Details follow:

 Date: *Friday, December 5*
 Time: *6:30PM to 9:00PM*
 Location: *1125 Jackson Street, Albany, CA (directly off the Buchanan 
 freeway ramp)*
 Sponsor: *YAKiToMe.com* (a development-stage web2py-based TTS app)
 Cost: *Free*
 RSVP: *please RSVP by replying inline to this post*
 Parking: Plentiful free parking is readily available directly in front of 
 the meeting room

 *Agenda: *We'll have an informal mixer from 6:30PM to 7:00PM, with 
 refreshments (like pizza and drinks). Then, a 1 hour talk by Massimo and 
 hopefully two 20-minute volunteered talks.

 *Call for Talks*: Please volunteer to give a talk. Or a 5 minute 
 lightning pitch for your web2py app or cool web2py trick. Please let me 
 know privately or via a posting here.

 *Equipment Needs: *We will need a digital projector that can plug into a 
 laptop. If you are coming and can lend a working projector for the night, 
 please let me know as it would be much appreciated. Otherwise, I will have 
 to rent one. If you are giving a presentation, please plan on bringing your 
 own laptop. I will have a Windows laptop available just in case.

 *Spread The Word*. If you belong to the python user's group in San 
 Francisco or elsewhere in the Bay Area or are a member of a Django, Drupal, 
 Ruby or other web framework user's group, please help spread the word about 
 this meetup. This posting will be the official organizing document for the 
 meetup, so post your questions and comments here.

 Thanks, and hope to meet a bunch of web2py'ers on December 5!


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Odd field validation issue

2014-11-11 Thread Willoughby
I think one is for forms, one is for the insert. From the book:
Notice that requires=... is enforced at the level of forms, required=True 
is enforced at the level of the DAL (insert), while notnull, unique and 
ondelete are enforced at the level of the database. While they sometimes 
may seem redundant, it is important to maintain the distinction when 
programming with the DAL.

On Tuesday, November 11, 2014 10:36:41 AM UTC-5, Cliff Kachinske wrote:

 This field will not fail validation when submitted empty. Web2py 2.8.2 
 with lazy tables and archiving.

 REQUIRE_MSG = SPAN('Required', _style=color:orange;)

Field(
 'problem_title', 
 length=512,
 required=True,
 comment=REQUIRE_MSG,
  )

 Written this way, it works.

Field(
 'problem_title', 
 length=512,
 required=True,
 comment=REQUIRE_MSG,
 requires=IS_LENGTH(
 minsize=1,
 maxsize=512,
 error_message='Problem title cannot be empty. Max 512 
 characters.'
 )
)

 I didn't expect 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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Odd field validation issue

2014-11-11 Thread Cliff Kachinske
OK, except I have other apps where required=True works as expected, that 
is, it causes a validation failure when the field is submitted empty. 

These other apps are running on the same Web2py instance, so this is 
puzzling.

On Tuesday, November 11, 2014 10:54:21 AM UTC-5, Willoughby wrote:

 I think one is for forms, one is for the insert. From the book:
 Notice that requires=... is enforced at the level of forms, required=True 
 is enforced at the level of the DAL (insert), while notnull, unique and 
 ondelete are enforced at the level of the database. While they sometimes 
 may seem redundant, it is important to maintain the distinction when 
 programming with the DAL.

 On Tuesday, November 11, 2014 10:36:41 AM UTC-5, Cliff Kachinske wrote:

 This field will not fail validation when submitted empty. Web2py 2.8.2 
 with lazy tables and archiving.

 REQUIRE_MSG = SPAN('Required', _style=color:orange;)

Field(
 'problem_title', 
 length=512,
 required=True,
 comment=REQUIRE_MSG,
  )

 Written this way, it works.

Field(
 'problem_title', 
 length=512,
 required=True,
 comment=REQUIRE_MSG,
 requires=IS_LENGTH(
 minsize=1,
 maxsize=512,
 error_message='Problem title cannot be empty. Max 512 
 characters.'
 )
)

 I didn't expect 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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: RSVP: Massimo @ Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-11 Thread Leonel Câmara
Yes, please record, the San Francisco Bay Area is kind of far away from 
Lisbon, Portugal.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: How to fix error type 'exceptions.ImportError'(No module named configuration)?

2014-11-11 Thread Leonel Câmara
Does it work if you erase all .pyc files in your application modules folder 
and subfolders, restart whatever is running web2py and try again?

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Sending email from server

2014-11-11 Thread Leonel Câmara
That's not due to apache settings, that's due to the way you configured 
web2py mail settings or your mail server configuration. Permission denied 
can be caused because you didn't set mail.settings.login correctly, it can 
be because you didn't set mail.settings.hostname to a hostname your mail 
server is configured to allow, etc. It can be for many different reasons.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Is Web2py ill-suited for apps that heavily interact with other services?

2014-11-11 Thread Anthony
I think there is a confusion between third party *services* and third party 
*tools*. web2py has absolutely no problem accessing third party APIs (such 
as Google Analytics), and this will be exactly the same as you would handle 
things in other frameworks. The comment you found on SO has nothing to do 
with accessing external APIs. Instead, it refers to some complications that 
arise specifically when using third party unit testing tools due to the way 
web2py executes application code. In any case, that comment vastly 
overstates the difficulty. There are several recipes and existing libraries 
for doing testing in web2py, and once you understand how it works, it is 
not difficult to deal with (though admittedly not quite as straightforward 
as testing in other frameworks). Of course, there are many other areas in 
which web2py will make your life much easier.

Anthony

On Sunday, November 9, 2014 11:38:59 PM UTC-5, WhoSoLovesUs wrote:

 Hi, I'm in the beginning stages of building my app.

 One of the most important things it will do is connect to 3rd party 
 services via their APIs (e.g. Google Analytics)

 I ran into a disconcerting comment on this stackoverflow thread 
 http://stackoverflow.com/questions/3646002/django-turbo-gears-web2py-which-is-better-for-what
 .

 To quote Mike A's comment 
 http://stackoverflow.com/questions/3646002/django-turbo-gears-web2py-which-is-better-for-what#comment8500264_3648273
 :

 web2py has many good features, but be very wary of the global environment 
 which becomes a real pain after a short time. It makes interacting with 
 third-party tools like test-runners very difficult. Django is much more 
 mature, being older than web2py, and has a much larger community and number 
 of installations.


 Can anyone here comment on this? Not being a programmer myself, I need 
 some more information about what this exactly means and why Mike would be 
 of this opinion.

 Thanks :)


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: Odd field validation issue

2014-11-11 Thread Anthony
On Tuesday, November 11, 2014 10:59:19 AM UTC-5, Cliff Kachinske wrote:

 OK, except I have other apps where required=True works as expected, that 
 is, it causes a validation failure when the field is submitted empty. 

 These other apps are running on the same Web2py instance, so this is 
 puzzling.


Please show some code. I suspect the fields in question have default 
validators that already require values (e.g., reference fields). Setting 
required=True all by itself does not add a validator to the field.

Anthony

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: SQL query to find all records which are not in another table

2014-11-11 Thread Vladimir Makarov
Hi, Leonel. Thank you for taking me to the right way.
It works well:
 rows = db(~db.persons.id.belongs(db()._select(db.tbl.person))).select()
And I don't use dots in table names.


On Monday, November 10, 2014 10:56:17 PM UTC+3, Leonel Câmara wrote:

 You can use belongs. You ask for those that do not belong.

 http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#belongs

 something like
 tbl_person =  db()._select(db['tbl.person'].id)
 db(~db.persons.id.belongs(tbl_person)).select()

 Do you actually have dots in your tablename? That's a terrible idea.



-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: How to fix error type 'exceptions.ImportError'(No module named configuration)?

2014-11-11 Thread John Davis
On Tuesday, November 11, 2014 11:41:02 AM UTC-5, Leonel Câmara wrote:

 Does it work if you erase all .pyc files in your application modules 
 folder and subfolders, restart whatever is running web2py and try again?


I will try that.  I'm kind of waiting for the next approach to before I do 
that.  Here is what I noticed.

o The version of web2py on the server which works is not the same as the 
version on the second server.
o  If I packaged the app on the server that works and then transfer it to 
the new one using the admin ide webpage, the package created by packall is 
only 16MB.  If I tar up the entire web2py directory which includes the 
applicaitons/thecustom app folder, I get a whopping 3GB tar file.  I'm 
currently uploading that 3GB file to the new server so I can run the whole 
framework and app.  I'm thinking that this duplicates the web2py framework 
and in case there is something there which is not in the pack all 
operation, this will get it.
o regarding the .pyc files, i did do a clean operation in the ide. I 
assumed that would clear out the compile python files.  perhaps not.

 

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: How to fix error type 'exceptions.ImportError'(No module named configuration)?

2014-11-11 Thread Leonel Câmara
Copying the entire web2py directory would work if the module was in the 
web2py directory site-packages, but, in that case, it also wouldn't work in 
the other server you used the packed application with. Clean doesn't clean 
the modules folder pyc files. The main reason for the size difference is 
probably the application's uploads folder which doesn't get packed with the 
application.

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: RSVP: Massimo @ Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-11 Thread Richard Warg
I will bring a video camera.

On Tue, Nov 11, 2014 at 8:05 AM, Leonel Câmara leonelcam...@gmail.com
wrote:

 Yes, please record, the San Francisco Bay Area is kind of far away from
 Lisbon, Portugal.

 --
 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 a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/C2gkf6K9Kyo/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Richard Warg

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: RSVP: Massimo @ Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-11 Thread Jim S
Thanks - the rest of us would really appreciate being able to watch those 
after the event.

-Jim

On Tuesday, November 11, 2014 1:33:49 PM UTC-6, Richard Warg wrote:

 I will bring a video camera.

 On Tue, Nov 11, 2014 at 8:05 AM, Leonel Câmara leonel...@gmail.com 
 javascript: wrote:

 Yes, please record, the San Francisco Bay Area is kind of far away from 
 Lisbon, Portugal.

 -- 
 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 a topic in the 
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/web2py/C2gkf6K9Kyo/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 web2py+un...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




 -- 
 Richard Warg

 

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: How to fix error type 'exceptions.ImportError'(No module named configuration)?

2014-11-11 Thread John Davis
Hello Leonel,

Well after using the entire directory from the original server for web2py
and installing various missing system components (mongodb, elaphe, etc.) it
at least starts. I get a web2py exception later when I try to authenticate,
but that is probably a user config issue.

I appreciate your tips and thank you for your time and expertise,

John

On Tue, Nov 11, 2014 at 2:08 PM, Leonel Câmara leonelcam...@gmail.com
wrote:

 Copying the entire web2py directory would work if the module was in the
 web2py directory site-packages, but, in that case, it also wouldn't work in
 the other server you used the packed application with. Clean doesn't clean
 the modules folder pyc files. The main reason for the size difference is
 probably the application's uploads folder which doesn't get packed with the
 application.

 --
 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 a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/web2py/nFx3VLWqEok/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
John F. Davis
6 Kandes Court
Durham, NC 27713
919-888-8358

独树一帜

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] py and pyc files

2014-11-11 Thread John Davis
Hello

If I get an error in the ticket exception output which shows an error at 
line x in a .pyc file, can I assume that the corresponding .py file on line 
x is the error?

John

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: Is Web2py ill-suited for apps that heavily interact with other services?

2014-11-11 Thread joseph simpson
Anthony:

Would you be willing to share specific information about web2py testing
approaches.

I plan on starting a web2py project early next year and would like to use a
TDD approach.

What do you suggest?

Have fun,

Joe

On Tue, Nov 11, 2014 at 9:18 AM, Anthony abasta...@gmail.com wrote:

 I think there is a confusion between third party *services* and third
 party *tools*. web2py has absolutely no problem accessing third party
 APIs (such as Google Analytics), and this will be exactly the same as you
 would handle things in other frameworks. The comment you found on SO has
 nothing to do with accessing external APIs. Instead, it refers to some
 complications that arise specifically when using third party unit testing
 tools due to the way web2py executes application code. In any case, that
 comment vastly overstates the difficulty. There are several recipes and
 existing libraries for doing testing in web2py, and once you understand how
 it works, it is not difficult to deal with (though admittedly not quite as
 straightforward as testing in other frameworks). Of course, there are many
 other areas in which web2py will make your life much easier.

 Anthony


 On Sunday, November 9, 2014 11:38:59 PM UTC-5, WhoSoLovesUs wrote:

 Hi, I'm in the beginning stages of building my app.

 One of the most important things it will do is connect to 3rd party
 services via their APIs (e.g. Google Analytics)

 I ran into a disconcerting comment on this stackoverflow thread
 http://stackoverflow.com/questions/3646002/django-turbo-gears-web2py-which-is-better-for-what
 .

 To quote Mike A's comment
 http://stackoverflow.com/questions/3646002/django-turbo-gears-web2py-which-is-better-for-what#comment8500264_3648273
 :

 web2py has many good features, but be very wary of the global environment
 which becomes a real pain after a short time. It makes interacting with
 third-party tools like test-runners very difficult. Django is much more
 mature, being older than web2py, and has a much larger community and number
 of installations.


 Can anyone here comment on this? Not being a programmer myself, I need
 some more information about what this exactly means and why Mike would be
 of this opinion.

 Thanks :)

  --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Joe Simpson
*All that is gold does not glitter,**Not all those who wander are lost;**The
old that is strong does not wither,*
*Deep roots are not reached by the frost.  J. R.R. Tolkien*

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: RSVP: Massimo @ Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-11 Thread joseph simpson
Great idea...

On Tue, Nov 11, 2014 at 12:30 PM, Jim S j...@qlf.com wrote:

 Thanks - the rest of us would really appreciate being able to watch those
 after the event.

 -Jim

 On Tuesday, November 11, 2014 1:33:49 PM UTC-6, Richard Warg wrote:

 I will bring a video camera.

 On Tue, Nov 11, 2014 at 8:05 AM, Leonel Câmara leonel...@gmail.com
 wrote:

 Yes, please record, the San Francisco Bay Area is kind of far away from
 Lisbon, Portugal.

 --
 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 a topic in the
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit https://groups.google.com/d/
 topic/web2py/C2gkf6K9Kyo/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 web2py+un...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




 --
 Richard Warg

   --
 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 unsubscribe from this group and stop receiving emails from it, send an
 email to web2py+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
Joe Simpson
*All that is gold does not glitter,**Not all those who wander are lost;**The
old that is strong does not wither,*
*Deep roots are not reached by the frost.  J. R.R. Tolkien*

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] Re: RSVP: Massimo @ Bay Area web2py meetup (refreshments) -- 12/5/2014, 6:30PM - 9:00PM -- BE THERE!!!

2014-11-11 Thread weheh
Thanks, Richard! I will have a backup just in case. I can offer a tripod as 
well. But I doubt I'll have the time to edit and post the video, so I 
really appreciate your volunteering to record the session.

On Tuesday, November 11, 2014 11:33:49 AM UTC-8, Richard Warg wrote:

 I will bring a video camera.

 On Tue, Nov 11, 2014 at 8:05 AM, Leonel Câmara leonel...@gmail.com 
 javascript: wrote:

 Yes, please record, the San Francisco Bay Area is kind of far away from 
 Lisbon, Portugal.

 -- 
 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 a topic in the 
 Google Groups web2py-users group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/web2py/C2gkf6K9Kyo/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 web2py+un...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




 -- 
 Richard Warg

 

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.