[web2py] Re: ajax_trap=False behavior on ajax loaded component

2017-03-06 Thread LightDot
Perhaps someone can make an alternative suggestion if you explain what 
exactly does a form do if it isn't trapped by ajax_trap. Does it refresh 
the page, redirect, something else..?

Regards

On Friday, March 3, 2017 at 9:38:55 PM UTC+1, Carlos Cesar Caballero wrote:
>
> Hi, I am using a component who has a form like this: 
>
>  
>   
>  Option 1 
>  Option 2 
>   
>  Go 
>  
>
> As you can see is a simple form who does a get request to another 
> controller (it could be easily done with two links but the requirement 
> needs a form) 
>
> If I call the component using "ajax=False" it works without problems, 
> but it needs to be reloaded by actions occurring in others components in 
> the page and for that it needs to be called with "ajax=True" (if I use 
> "ajax=False" i can't call the component javascript reload() function) 
> the problem is that "ajax=True" traps the call inside the div and 
> ignores the "ajax_trap=False" option. 
>
> Is there a way to load via ajax a component with a form but don't trap 
> it inside the div? 
>
> Greetings. 
>

-- 
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: why you should upgrade to web2py 2.13.4

2016-12-28 Thread LightDot

On Saturday, December 24, 2016 at 2:05:53 PM UTC+1, Rodrigo attique santana 
wrote:
>
> .. an app created in 2.14 does not run in 2.11. It returns me invalid 
> request. ...
>

That's only to be expected. One can create an app in 2.11.x and it should 
run under later versions of web2py (as it's guaranteed to be backward 
compatible), such as 2.14.x, but there's no guarantee for the other way 
around. Apps created under later versions of web2py might or might not run 
under older versions, depending on the changes that happened in the mean 
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: stuck up on Deployment on CentOS 6.7

2016-05-21 Thread LightDot
Basically, you need to have mod_wsgi properly configured and you need to 
create an appropriate apache virtual host for your domain. There were 
threads here about this before and the above mentioned CentOS 7 script has 
this covered in a certain way, so you can look into it for ideas. Generic 
mod_wsgi how-to's on the internet should also give you a good starting 
point, web2py doesn't need anything that special in this regard. I suggest 
working on getting you custom apache and custom python working together 
with the use of mod_wsgi first, this is the crucial part.

There are other ways of running web2py under apache (apart from mod_wsgi) 
but this is probably the most well documented approach when it comes to 
apache and python in general. And it's really not that bad either.

Btw, is there any chance you could switch to CentOS 7 and use apache and 
python provided by the OS? That would simplify your sysadmin life a lot.

Regards


On Friday, May 20, 2016 at 12:09:24 PM UTC+2, Rahul wrote:
>
> Hey LightDot,
>Thats correct I have manually installed Apache2. However I also 
> have python2.7.11(I guess that is the latest one) installed in other 
> directory .  Both python 2.6.6 and 2.7.11 co-exist separately. I have 
> followed instructions to make sure I dont mess up the original 
> distribution. Now for #3 - What instructions do I have to follow to achieve 
> it. That is just what I can go but dont know my options. I am the root user 
> so I can install other packages. Please suggest 
>
> Thanks Rahul
>
> On Friday, May 20, 2016 at 3:19:14 PM UTC+5:30, LightDot wrote:
>>
>> Go for 3.
>>
>> Two caveats:
>> - apache installed in /usr/local/apache2 is not a part of CentOS 
>> distribution. It must have been installed manually at some point
>> - if you're using python provided by the OS, you'll be stuck on this last 
>> version of web2py. Web2py > 2.14.6 isn't python 2.6 compatible anymore.
>>
>> Regards
>>
>>
>> On Friday, May 20, 2016 at 8:29:50 AM UTC+2, Rahul wrote:
>>>
>>> Thanks! Dave. That section deals with centOS7,  I will check nginx 
>>> section and try to make it work for me. Starting the web2py manually with 
>>> nohup command over my public IP works but that would have a port where I 
>>> would need to access it. I want a cleaner way to make it work 
>>> automatically. 
>>> 1. Start web2py automatically as a service ? and 
>>> 2. know where to have the file for my project (or sym link) placed so it 
>>> either redirects to it or 
>>> 3. Have apache2 (site-packages\web2py) file where it can pick up web2py 
>>> project and launch it automatically. 
>>>
>>> Any idea on above points? 
>>>
>>> Rahul
>>>
>>> On Friday, May 20, 2016 at 5:59:30 AM UTC+5:30, Dave S wrote:
>>>>
>>>>
>>>>
>>>> On Thursday, May 19, 2016 at 6:03:18 AM UTC-7, Rahul wrote:
>>>>>
>>>>> Hi All,
>>>>>   I have root access for the VPS server which is on centOS6.7 I 
>>>>> have installed web2py in /home/www/ directory and Apache2 is by default 
>>>>> installed in /usr/local/apache2.  Now accessing my website shows me the 
>>>>> Apache welcome screen which says -
>>>>> You may now add content to the directory /var/www/html/. Note that 
>>>>> until you do so, people visiting your website will see this page and not 
>>>>> your content. To prevent this page from ever being used, follow the 
>>>>> instructions in the file /etc/httpd/conf.d/welcome.conf.
>>>>> Now my question is how do I proceed with deployment further from here 
>>>>> ? I am a bit stuck . Please suggest
>>>>>
>>>>> Rahul
>>>>>
>>>>
>>>> You've looked through this?
>>>> >>> http://web2py.com/books/default/chapter/29/13/deployment-recipes#Apache-setup
>>>> >
>>>>  
>>>> There is also web2py/scripts/set-web2py-centos7.sh.  I took a glance 
>>>> at it, and didn't see what needed to be backrevved for Centos 6.  Maybe 
>>>> daemon startup.
>>>>
>>>> Finally, if you have a choice, the official web2py position is to 
>>>> recommend nginx over apache.  Chapter 13 has an nginx section, and there 
>>>> are scripts for it, in the same place as above.
>>>>
>>>> /dps
>>>>
>>>>

-- 
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: stuck up on Deployment on CentOS 6.7

2016-05-20 Thread LightDot
Go for 3.

Two caveats:
- apache installed in /usr/local/apache2 is not a part of CentOS 
distribution. It must have been installed manually at some point
- if you're using python provided by the OS, you'll be stuck on this last 
version of web2py. Web2py > 2.14.6 isn't python 2.6 compatible anymore.

Regards


On Friday, May 20, 2016 at 8:29:50 AM UTC+2, Rahul wrote:
>
> Thanks! Dave. That section deals with centOS7,  I will check nginx section 
> and try to make it work for me. Starting the web2py manually with nohup 
> command over my public IP works but that would have a port where I would 
> need to access it. I want a cleaner way to make it work automatically. 
> 1. Start web2py automatically as a service ? and 
> 2. know where to have the file for my project (or sym link) placed so it 
> either redirects to it or 
> 3. Have apache2 (site-packages\web2py) file where it can pick up web2py 
> project and launch it automatically. 
>
> Any idea on above points? 
>
> Rahul
>
> On Friday, May 20, 2016 at 5:59:30 AM UTC+5:30, Dave S wrote:
>>
>>
>>
>> On Thursday, May 19, 2016 at 6:03:18 AM UTC-7, Rahul wrote:
>>>
>>> Hi All,
>>>   I have root access for the VPS server which is on centOS6.7 I have 
>>> installed web2py in /home/www/ directory and Apache2 is by default 
>>> installed in /usr/local/apache2.  Now accessing my website shows me the 
>>> Apache welcome screen which says -
>>> You may now add content to the directory /var/www/html/. Note that 
>>> until you do so, people visiting your website will see this page and not 
>>> your content. To prevent this page from ever being used, follow the 
>>> instructions in the file /etc/httpd/conf.d/welcome.conf.
>>> Now my question is how do I proceed with deployment further from here ? 
>>> I am a bit stuck . Please suggest
>>>
>>> Rahul
>>>
>>
>> You've looked through this?
>> > http://web2py.com/books/default/chapter/29/13/deployment-recipes#Apache-setup
>> >
>>  
>> There is also web2py/scripts/set-web2py-centos7.sh.  I took a glance at 
>> it, and didn't see what needed to be backrevved for Centos 6.  Maybe daemon 
>> startup.
>>
>> Finally, if you have a choice, the official web2py position is to 
>> recommend nginx over apache.  Chapter 13 has an nginx section, and there 
>> are scripts for it, in the same place as above.
>>
>> /dps
>>
>>

-- 
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 add payment integration in web2py?

2016-04-26 Thread LightDot
On Tuesday, April 26, 2016 at 9:10:32 PM UTC+2, Dave S wrote:
>
> On Tuesday, April 26, 2016 at 11:37:58 AM UTC-7, Steve Joe wrote:
>>
>> But the code for stripe is only for credit cards. What about debit cards 
>> and net banking?
>
>
> I would expect it to cover debit cards that have the Visa or MasterCharge 
> logos.  Is that not the case? 
>
> I have heard that credit cards are rare in Europe, with almost everything 
> being done with debit cards.
>

This reminds me a bit on those humorous maps where everything outside USA 
is covered with "here be dragons", "unicorns" and various forms of question 
marks.

Credit cards are not rare in Europe in any way. Stripe covers customers 
from the entire world. It's not as flexible for business owners (those 
accepting payments):
https://support.stripe.com/questions/what-countries-does-stripe-support
 

> Does Stripe cover Europe?  If not, do some of the other examples cover 
> Europe?
>
> /dps
>
>
On the other hand, if most of your customers are in a specific country, 
there might be better suited providers than Stripe. Not that there isn't 
plenty of competition globally too.

Regards

-- 
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: 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 projects built in Django.

Regards


On Friday, February 19, 2016 at 4:13:15 PM UTC+1, Ron Chatterjee wrote:
>
> 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 plugins 
> etc.
>
>
>- Custom templates 
> 
>per page or blog post
>- Twitter Bootstrap  integration
>- API for custom content types 
>
> 
>- Search engine and API 
>
>- Seamless integration with third-party Django apps
>- Multi-device detection and template handling
>- One step migration from other blogging engines
>- Automated production provisioning and deployments
>- Disqus  integration, or built-in threaded 
>comments
>- Gravatar  integration
>- Google Analytics  integration
>- Twitter  feed integration
>- bit.ly integration
>- Akismet  spam filtering
>- Built-in test suite 
>
>- JVM  compatible 
>(via Jython )
>- SEO friendly URLs and meta data
>- Ecommerce / Shopping cart module (Cartridge 
>)
>- Configurable dashboard 
> 
>widgets
>- Blog engine
>- Tagging
>- Free Themes , and a Premium Themes 
> Marketplace
>- User accounts and profiles with email verification
>- Translated to over 35 languages
>- Sharing via Facebook or Twitter
>- Multi-lingual sites 
>
>
>
>
>
> On Friday, February 19, 2016 at 2:54:02 AM UTC-5, Jörg Schneider wrote:
>>
>> I was able to built a Custom-CMS for a refugee helper association only by 
>> watching the videos an reading the manual. I do only have really basic 
>> knowledge in programming and because Joomla and Wordpress didn't fit my 
>> needs I started from the scratch with web2py which is really a cool 
>> framework.
>> I just want to encourage you to go step by step and I promise that you 
>> will have a steep learning curve.
>>
>> Am Dienstag, 13. Oktober 2015 16:11:20 UTC+2 schrieb Leonel Câmara:
>>>
>>> I may actually have to make a web2py CMS quite soon. I have a bunch 
>>> requirements that off-the-shelf CMSes don't fulfill but I would be really 
>>> interested in seeing your code Carlos, give us a heads up when you release.
>>>
>>

-- 
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-appreport

2016-02-12 Thread LightDot
I've been using it in production for years, generating quite a few pdfs 
daily. If I remember correctly, I made only minor modifications for my 
needs.

Can't help with your issue though.

Regards

On Friday, February 12, 2016 at 1:05:22 PM UTC+1, Anthony Smith wrote:
>
> Hi,
> I gather this plugin is not correct and doesn't work without lots of work.
>
> cheers 
> Anthony 
>
> On Tuesday, 9 February 2016 21:08:46 UTC+11, Anthony Smith wrote:
>>
>> Hi Massimo,
>>
>> Thanks for you help you can download form here 
>> https://github.com/lucasdavila/web2py-appreport/wiki
>>
>> Thanks for looking into this 
>>
>> On Tuesday, 9 February 2016 13:37:01 UTC+11, Massimo Di Pierro wrote:
>>>
>>>  do not know. Can you post this plugin? I have never seen it. Perhaps 
>>> assumes a library that is not installed.
>>>
>>> On Monday, 8 February 2016 02:24:38 UTC-6, Anthony Smith wrote:

 Hi Massimo, 

 Tried that and now getting this error 

 1.
 2.
 3.
 4.
 5.
 6.
 7.
 8.
 9.
 10.
 11.
 12.
 13.

 Traceback (most recent call last):
   File "/home/tony/web2py/gluon/restricted.py", line 227, in restricted
 exec ccode in environment
   File "/home/tony/web2py/applications/reports/models/plugin_appreport.py" 
 ,
  line 25, in 
 import plugin_appreport as plugin_appreport_module
   File "/home/tony/web2py/gluon/custom_import.py", line 85, in 
 custom_importer
 modules_prefix, globals, locals, [itemname], level)
   File "applications/reports/modules/plugin_appreport/__init__.py", line 
 2, in 
 import report_web2py
   File "/home/tony/web2py/gluon/custom_import.py", line 89, in 
 custom_importer
 raise ImportError, 'Cannot import module %s' % str(e)
 ImportError: Cannot import module 
 'applications.reports.modules.report_web2py'


 On Sunday, 7 February 2016 16:43:47 UTC+11, Massimo Di Pierro wrote:
>
> import modules.plugin_appreport as plugin_appreport_module
>
> should be
>
>
> import plugin_appreport as plugin_appreport_module
>
>
> On Saturday, 6 February 2016 00:38:24 UTC-6, Anthony Smith wrote:
>>
>> Hi All, 
>>
>> I was following the tutorial from 
>> https://github.com/lucasdavila/web2py-appreport/wiki/Docs-and-examples, 
>> Helper for simple reports and get the follow error when I try to open 
>> the 
>> app 
>>
>> Any ideas would be great 
>>
>>  Cannot import module 
>> 'applications.reports.modules.modules'Version 
>> web2py™ Version 2.13.4-stable+timestamp.2015.12.26.04.59.39 
>> Python Python 2.7.6: /usr/bin/python (prefix: /usr) Traceback 
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>>
>> Traceback (most recent call last):
>>   File "/home/tony/web2py/gluon/restricted.py", line 227, in restricted
>> exec ccode in environment
>>   File 
>> "/home/tony/web2py/applications/reports/models/plugin_appreport.py" 
>> ,
>>  line 25, in 
>> import modules.plugin_appreport as plugin_appreport_module
>>   File "/home/tony/web2py/gluon/custom_import.py", line 89, in 
>> custom_importer
>> raise ImportError, 'Cannot import module %s' % str(e)
>> ImportError: Cannot import module 'applications.reports.modules.modules'
>>
>>

-- 
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] Upgrading to the latest version

2015-06-23 Thread LightDot

On Tuesday, June 23, 2015 at 1:28:11 PM UTC+2, Vinicius Assef wrote:
>
> Besides that, I would copy the files under static folder that comes with 
> the welcome application.
>
> Sometimes there’s some update in web2py.js, etc.
>
>
IMHO, that's not a prudent advice, especially not to inexperienced users..

The one file you mention, web2py.js, is specific to web2py, most of the 
other files there are completely specific to CSS frameworks used in 
whatever the welcome application has at the time. You shouldn't simply 
expect that you can interchange them at will, without impacting the 
functionality of your application.

With copying these files, you might be just updating Bootstrap from 3.x.z 
to 3.x.y or you might be overwriting your Bootstrap 2.x with 3.x files, 
breaking you application completely in the process.

I'd advise anyone to make a clear distinction, anything that's under the 
application folder, except the admin, is , not web2py. 
Don't touch it unless you're prepared to.

Regards

-- 
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: New web2py user with some questions/need for advice

2015-05-18 Thread LightDot
Well, with the information given, I would opt for using web2py's scheduler 
for the background tasks and ajax on the client side. I would probably try 
to add records to the database as needed, rather than new tables. Database 
records and resident files can be later pruned by another scheduler task, 
depending on the requirements.

The only problematic aspect I see here is the requirement of not 
authenticating the uploaders. You'll need to identify them somehow, even if 
just temporarily.

Regards


On Saturday, May 16, 2015 at 4:41:36 PM UTC+2, Adrià Cereto i Massagué 
wrote:
>
> Hi all,
>
> I just found myself in the need of writing a web application, and with my 
> extremely limited knowledge of JavaScript or anything else besides Python, 
> web2py was the most appealing framework to work with.
>
> So I need to write an application roghlt like the following:
>
>
>- The user (not necessarily logged in) submits a file
>- The file is processed, which can take up to several minutes
>- The user is then presented with a results page with a table witht he 
>results.
>
> So, if I udnerstood it correctly, I'll need a scheduler for the background 
> process, and to store the results in a database table so I can use 
> SQLFORM.grid or .smartgrid to present them. My question is, is that the 
> best approach?
>
> My other question is, if I follow that approach, several files/tables will 
> be generated for that particular session. How can I do file/database 
> cleanup after a session ends? Should I schedule their deletion with a 
> scheduler the moment they are created (say, after some hours of their 
> creation)?
>
> Also, I see that the Catalan translation of web2py's interface is not 
> complete and that it's missing plural forms. How could I help with that?
>
> Thanl you for your patience.
>

-- 
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: Cron-like job

2015-04-14 Thread LightDot
If "periodically from the time of saving" is a must and you also need to 
refresh the data changes in real time, not, for example, retroactively, 
once per hour, then I suggest using the web2py's Scheduler. It's in the 4th 
chapter of the book. Otherwise a regular system's cron job would be enough.

Regards


On Tuesday, April 14, 2015 at 1:34:56 AM UTC+2, sasogeek wrote:
>
> I want to do something but I doubt cron is the right thing to attempt, I'm 
> not even sure what I'm supposed to do except that it's going to be a 
> scheduled task and it may or may not be solved by cron, I need some 
> guidance.
>
> I want to simulate a bank. users get to 'save' some (virtual) money in the 
> 'bank', and every hour (in real time, periodically from the time of 
> 'saving') they earn some percentage of their saved money.
>
> for instance, every hour, 
> balance = db(db.bank.account_id == 
> auth.user.bank_account_id).select().first().balance
> db(db.bank.account_id == 
> auth.user.bank_account_id).update(balance=balance+(0.0001*balance))
> or something like that.
>
> how do i 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 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: Can we disable moderation in the group?

2015-03-12 Thread LightDot
I have some experience in moderating Googlegroups, stumbled on everything 
from regular bots to some determined individuals with personal issues. The 
most efficient policy was to moderate the new users and approve them after 
the first post. Everything else was a gamble and the spam got trough.

The main issue we had was that approving users sometimes took more than a 
few hours. It gave users an impression of prolonged moderation, although 
this really wasn't the case. But the internet and communication in general 
moves very quickly... new users expect to participate within minutes... new 
threads to answer, questions to make... It's just hard to wait. It's a 
perception issue, I think. If this group needs more hands & eyes, I'd be 
glad to help as much as time permits.

Regards


On Friday, March 13, 2015 at 3:14:39 AM UTC+1, Anthony wrote:
>
> On Thursday, March 12, 2015 at 5:51:00 PM UTC-4, Jack Kuan wrote:
>>
>> I too have a feeling that all my posts have been moderated because 
>> whenever I make a new post, I have to wait for hours or a day for it to 
>> show up in the group.
>>
>
> Your posts are not moderated, but it looks like many existing members are 
> still moderated.
>
> Perhaps we could try turning off moderation, and instead of group owners 
> spending time approving new users or individual messages, we could instead 
> delete spam and block their senders. The latter task may end up being just 
> as easy and would remove a barrier for new users.
>
> 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: IMPORTANT - DROPPING SUPPORT FOR PYTHON 2.5?

2015-03-11 Thread LightDot
RHEL 5 (and naturally CentOS 5 etc.) ship with python 2.4.3, that's already 
water under the bridge as far ar web2py goes.

Keeping python 2.6 compatibility for a good while longer would be greatly 
appreciated - we have quite a few production apps on RHEL 6 / Scientific 
Linux 6, but python 2.5 is of no interest to us.

Looking at the greater picture, I see nobody speaking in favor of python 
2.5 compatibility so far. Hm? No Mac OS X users that still need it..?

Regards


On Wednesday, March 11, 2015 at 7:07:04 PM UTC+1, Gary Cowell wrote:
>
>
>
> On Saturday, 7 March 2015 19:18:17 UTC, Massimo Di Pierro wrote:
>>
>> Who is opposed? Why?
>>
>
> It would mean support going for Red Hat 5 I think
>
> Red Hat 6 is on 2.6, Red Hat 7 is 2.7. 
>
> Everything I have is at least Red Hat 6.
>
> But that would be the reason, most probably 
>

-- 
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: Off Topic - Webix

2014-12-25 Thread LightDot
There is a bunch of nice projects out there and so little time to keep 
track of everything. Could you please write a couple of sentences about 
what is the project especially good at it and how does it relate to web2py? 
Did you use it with web2py?

Also, I saw pricing on their page but a quick look didn't reveal an actual 
license the code is released under. I admit I didn't look deep.

Regards


On Thursday, December 25, 2014 11:39:40 PM UTC+1, Ramos wrote:
>
> Seems nice 
>
> http://webix.com/
>
>
>

-- 
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: new feature in trunk: TODO panel in admin editor

2014-12-21 Thread LightDot
Didn't have time to take look yet, but If I understand correctly, just make 
a comment in any .py file, starting with TODO and it will show in the panel.

This is similar to e.g. Sublime text's SublimeTODO plugin and others... I 
suggest looking at those for ideas, e.g. SublimeTODO shows comments 
starting with "TODO:", "NOTE:", "FIXME:", "CHANGED:".

I use the first three, mostly.

Regards

On Saturday, December 20, 2014 10:08:36 PM UTC+1, LoveWeb2py wrote:
>
> How do we add to the TODO panel? I've tried double clicking and looking 
> for additional documentation but can't seem to find anything.
>
> On Sunday, December 8, 2013 4:36:00 AM UTC-5, Paolo Valleri wrote:
>>
>> Dear all,
>> the online editor has got a new TODO panel in which are listed all TODO 
>> you might have in the current application.
>> For the time being it highlights only TODO in python files, in the short 
>> future we will support other file types and special keywords, along with 
>> the keyword TODO I've seen users using FIXME (please let me know the ones 
>> you use most). 
>>
>> It is still in a work in progress feature, given that please let me know 
>> not only any issue you will find but also all extensions you foresee.
>>
>> Paolo
>>
>

-- 
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 deployment: Apache, Nginx and Plesk Panel

2014-11-14 Thread LightDot
Er... why would you run a VPS deployment script on a server with a working 
control panel..? I hope you have backups :/

If 1) is still your goal, the best thing you could do now is to try and 
revert everything the deployment script broke, then rethink your approach. 
I'd advise you to follow Plesk documentation about using python and/or 
custom vhost includes. There are several approaches you could try, but the 
point is, use Plesk to get web2py working. Anyway, you'll have to fix your 
Plesk installation before you can even attempt that.

Regards


On Friday, November 14, 2014 11:41:25 AM UTC+1, lesssugar wrote:
>
> @LightDot, thanks for your reply. I agree that the first, clean option is 
> the way to go.
>
> So, I am trying to make web2py work on Apache, keeping access to Plesk. I 
> will try to make this post up to date, in case anyone has similar issues.
>
> First problems that have occurred:
>
> 1) After using the deployment script (
> http://web2py.googlecode.com/hg/scripts/setup-web2py-fedora.sh), Plesk is 
> not available under :8443 port anymore (which seems to be occupied by other 
> process). I'm currently investigating that and trying to get Plesk back to 
> working state.
> 2) Even after creating a new vhost for my web2py application via Plesk, it 
> seems that the default vhost is served (/var/www/vhosts/default). Changing 
> this is a mystery for me at this point, but I'll keep digging.
>
> Anyone who might have clues on any of these issues is welcome to join :)
>
> *UPDATE:*
>
> Solution to problem no. 1) 
> To allow accessing Plesk Panel on port 8443 after the deployment script is 
> complete, go to */etc/sysconfig/iptables*, add the following rule: *-A 
> INPUT -p tcp --dport 8443 -j ACCEPT* and restart the firewall with: *service 
> iptables restart*
>
> On Friday, November 14, 2014 2:04:21 AM UTC+1, LightDot wrote:
>>
>> We've been running Plesk on our servers for more than a decade now but 
>> I'm afraid I don't have a ready-made & tested solution for Plesk and 
>> web2py. We're phasing Plesk out and a large part of our hosting 
>> infrastructure has been moved to a custom solution that's better suited for 
>> web2py too, among other things.
>>
>> I should have probably worked out some details before giving a definitive 
>> answer, but 1) seems like a cleaner approach, if you intend to offer Plesk 
>> to your customers or actively use it yourself. Your customers will be 
>> wanting to use it to create databases, monitor disk usage and visitor 
>> statistics, etc. Even if you do move web2py hosts out of that environment 
>> (option 2) ), you'll still be wanting to integrate this new parallel 
>> hosting system into Plesk, at least partially. It can be done, I'm just not 
>> sure how much hacking would it require.
>>
>> Regards
>>
>>
>> On Thursday, November 13, 2014 12:01:13 AM UTC+1, lesssugar wrote:
>>>
>>> Does anyone have experience with setting up web2py with Plesk Panel 
>>> preinstalled on the server?
>>>  
>>> I'm using a VPS with one IP, CentOS 6.6. Initially I wanted to setup 
>>> Nginx with uWSGI, however Plesk won't work in this configuration (it needs 
>>> Apache). Apache service could be stopped permanently and web2py will work 
>>> just fine on Nginx, but at the same time Plesk Panel would be usless.
>>>
>>> Correct me if I'm wrong, but the choices I see are:
>>>
>>> 1. Adjust Plesk-driven Apache configuration (vhosts, httpd includes, 
>>> etc.) in the way that it runs web2py application under the domain name 
>>> (with Plesk working as intended)
>>> 2. Configure Nginx and Apache so they are running together: serve web2py 
>>> application using Nginx and uWSGI, and keep Apache only for Plesk
>>>
>>> Any ideas what would be the better solution and how to achieve any of 
>>> these? Unfortunately, I'm not an admin, so I'm honestly looking for a 
>>> step-by-step instructions if possible, or at least any hint to start 
>>> looking into.
>>>
>>> Scripts provided under http://web2py.googlecode.com/hg/scripts are 
>>> great, but none of them works with Plesk "magic".
>>>
>>

-- 
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 deployment: Apache, Nginx and Plesk Panel

2014-11-13 Thread LightDot
We've been running Plesk on our servers for more than a decade now but I'm 
afraid I don't have a ready-made & tested solution for Plesk and web2py. 
We're phasing Plesk out and a large part of our hosting infrastructure has 
been moved to a custom solution that's better suited for web2py too, among 
other things.

I should have probably worked out some details before giving a definitive 
answer, but 1) seems like a cleaner approach, if you intend to offer Plesk 
to your customers or actively use it yourself. Your customers will be 
wanting to use it to create databases, monitor disk usage and visitor 
statistics, etc. Even if you do move web2py hosts out of that environment 
(option 2) ), you'll still be wanting to integrate this new parallel 
hosting system into Plesk, at least partially. It can be done, I'm just not 
sure how much hacking would it require.

Regards


On Thursday, November 13, 2014 12:01:13 AM UTC+1, lesssugar wrote:
>
> Does anyone have experience with setting up web2py with Plesk Panel 
> preinstalled on the server?
>  
> I'm using a VPS with one IP, CentOS 6.6. Initially I wanted to setup Nginx 
> with uWSGI, however Plesk won't work in this configuration (it needs 
> Apache). Apache service could be stopped permanently and web2py will work 
> just fine on Nginx, but at the same time Plesk Panel would be usless.
>
> Correct me if I'm wrong, but the choices I see are:
>
> 1. Adjust Plesk-driven Apache configuration (vhosts, httpd includes, etc.) 
> in the way that it runs web2py application under the domain name (with 
> Plesk working as intended)
> 2. Configure Nginx and Apache so they are running together: serve web2py 
> application using Nginx and uWSGI, and keep Apache only for Plesk
>
> Any ideas what would be the better solution and how to achieve any of 
> these? Unfortunately, I'm not an admin, so I'm honestly looking for a 
> step-by-step instructions if possible, or at least any hint to start 
> looking into.
>
> Scripts provided under http://web2py.googlecode.com/hg/scripts are great, 
> but none of them works with Plesk "magic".
>

-- 
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: web2py trunk is broken??

2014-10-08 Thread LightDot
Googlecode and Github repos are equal, there are no plans to abandon either 
one, AFAIK. I'll raise this up on the devel list.

I just pulled from both, made a diff and there really is a problem at the 
moment. I'll report the issue in a bit. This happened a couple of times in 
the past and was always fixed quickly.

Regards


On Wednesday, October 8, 2014 8:34:11 PM UTC+2, Jim S wrote:
>
> Me too, not a git user, only have a github account to keep up with the 
> latest web2py developments.  Personally, I'd really like to see the 
> mercurial repos to still be available, but I understand it makes sense to 
> only keep one.
>
> On Wed, Oct 8, 2014 at 1:30 PM, Dave S > 
> wrote:
>
>>
>>
>> On Monday, October 6, 2014 9:48:48 AM UTC-7, Jim S wrote:
>>>
>>> Any options to clone/pull using Mercurial?
>>>
>>
>> Mercurial has the Convert extension that covers Git repos, and another 
>> one that I think only does Git, but I haven't tried accessing GitHub with 
>> them.  Web2py is the only reason I have a GitHub account, and I just do a 
>> download from the web interface instead of a pull.
>>
>> /dps
>>
>>  -- 
>> 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/pvVGtt7lpdc/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.
>>
>
>

-- 
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 there w2p script for letting users drag table data to set the order they want?

2014-09-29 Thread LightDot
There's S-cubism's Table Permuter: 
http://dev.s-cubism.com/plugin_tablepermuter

On Monday, September 29, 2014 6:27:41 PM UTC+2, Alex Glaros wrote:
>
> for example, script would let user prioritize most important projects by 
> dragging them higher on the window than other projects.
>
> if there is anything like this, are there limits on how many records the 
> table can have?
>
> thanks
>
> Alex Glaros
>

-- 
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: ssl certificate?

2014-09-15 Thread LightDot
In my experience, startssl staff manually checks the site for which the 
certificate is requested for (non)commercial content. Some borderline sites 
pass, some don't. If this is for web2py.com itself, I think there shouldn't 
be any issues.

For non-free certificates, various Comodo, GeoTrust or Thawte resellers 
have certificates in the 5 to 30 USD per year range (email / domain 
verification). If you need business entity verification, prices are higher. 
In any case, prices have plummeted in the last few years.

Can't recommend anyone in particular, though.

Regards

On Monday, September 15, 2014 1:54:15 PM UTC+2, Anthony wrote:
>
> Note, the free one is supposed to be limited to non-commercial use.
>
> On Monday, September 15, 2014 5:05:20 AM UTC-4, Michele Comitini wrote:
>>
>> +1
>>  startssl.com class 1 certificate is good if you do not need anything 
>> fancy.
>>
>> 2014-09-15 3:51 GMT+02:00 Anthony >:
>>
>>> Check out StartSSL: http://www.startssl.com/?app=39
>>>
>>> They offer Class 1 certificates for free. $59.90 for Class 2 /3.
>>>
>>> Anthony 
>>>
>>> On Sunday, September 14, 2014 9:30:45 PM UTC-4, Massimo Di Pierro wrote:

 Any recommendation about where to buy a cheat ssl certificate? I have 
 used RapidSSL before. 
>>>
>>>  -- 
>>> 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+un...@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] Re: Send data to print.

2014-08-10 Thread LightDot
What is the location of the printer? If this is going to be on the client 
side, then you'll need to open the browser print dialog. You can use 
javascript to do so, plenty of examples can be found on the web.

Regards

On Sunday, August 10, 2014 1:20:05 PM UTC+2, Avi A wrote:
>
> Hi,
> I need help with something like that: I want to create a simple print app, 
> where a user picks some options, presses "print", it is sent to the 
> controller, then the controller print the string directly to the printer.
> Any suggestions/directions?
> Thanks,
> Avi.
>
>

-- 
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 vs others. Status of 2014

2014-08-07 Thread LightDot
Bleeding edge in terms of enterprise means something completely different 
then on a personal device. If they are running CentOS or Red Hat or 
Scientific Linux then they are a good step towards running a solid 
enterprise IT system, so good for them. In their case, beeing bleeding edge 
means testing available alpha and beta releases of those OSes as they 
emerge, instead of adopting a couple of years after a stable release.

On the other hand, for a personal device, being bleeding edge and keeping 
one's sanity at the same time means running Arch on a laptop. If the sanity 
requirement is omitted, one can go with Slackware. The danger is, one's 
head might overload with GNU/linux knowledge enough to spin and explode. 
Well... in any case, Fedora is for sissies. :)

Anyway, seriously, Fedora isn't bleeding edge for more than a pre-alha to 
alpha period. Then it gets boringly stable. Which is a good thing if you 
need to have some actual work done.

Being sane and bleeding edge at the same time is also running web2py from 
the trunk. I usually look at the last commits and sometimes skip an update 
or two, but most of the time I don't use anything else than trunk 
everywhere. Which probably means web2py's public releases could be a lot 
more frequent.

Regards


On Friday, August 8, 2014 2:34:33 AM UTC+2, Dave S wrote:
>
>
>
> On Thursday, August 7, 2014 7:43:57 AM UTC-7, Jim S wrote:
>>
>> Speaking as an employee of a modern agri-business company, using web2py, 
>> from the midwest, with windows xp a distant memory, I can tell you that 
>> your stereotypes are pretty far off.  Seems to me there is a lot of tall 
>> corn right down in Illinois near where Massimo started web2py.
>>
>> -Jim
>>
>>
> Well, if they are running Centos or RedHat, then they are a good step back 
> from the bleeding edge.  But I'm not really in a position to toss pebbles; 
> I only retired my Ice Cream Sandwich phone this spring, my laptop is a 3 
> year-old i5, and I use a Fedora 16 system as a key workstation.  And since 
> I'm no good at maintaining heavy machinery, I use duct tape rather than 
> baling wire.  No XP, though, and I have at least used W8.1 in the lab.
>
> (Not sure how edgy AIX/AS400 users are ... but I do remember the 
> commercials IBM put out a couple of Olympics ago.)
>
> /dps
>
>
>  
>
>> On Tuesday, August 5, 2014 2:35:50 AM UTC-5, Joe Barnhart wrote:
>>>
>>> I look forward to Massimo's improvements.
>>>
>>> One of the continuing thorns in my side is that a significant number of 
>>> my users are still on XP and IE8 -- about 15% -- and my users are in 
>>> California.  I can only imagine the ratio would be higher in middle America 
>>> where the tall corn grows.  I could choose to ignore these users, but they 
>>> have money to spend and I want to get it.
>>>
>>> As we move to more client-heavy designs, it means more javascript and 
>>> more chances that it won't run in antique computers.  I can't leave 15% of 
>>> my revenue on the table.  
>>>
>>> On the other hand, more and more of my users are on mobile platforms, 
>>> which fits perfectly with the heavy client approach.
>>>
>>> Agh!
>>>
>>> -- Joe
>>>
>>>
>>> On Monday, June 9, 2014 5:01:39 AM UTC-7, Ramos wrote:

 what is the status of the evolution of web2py compared with other, 
 mainly rails /or django ?


 which of these including web2py has gain more improvements over the 
 last year?
 Does anybody knows?
 Is still web2py over the others?


 From the beginning Massimo used the phrase
 "Ideas we had , ideas we stole"

 I would like to know if Massimo  is stealing more ideas from others.
 Also what new "Killer" ideas are we expecting for near future?

 Regards

 António
  
>>>

-- 
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: Switch off cookies unless the user logs in?

2014-08-03 Thread LightDot
In the beginning of your controller (e.g.):

def index():
if not auth.is_logged_in():
session.forget(response)

Regards

On Sunday, August 3, 2014 2:11:29 PM UTC+2, Thomas Wimmer wrote:
>
> How can i switch off (session) cookies unless a user logs in?
>
> 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: How to remove the symbol. What is the cause of its appearance?

2014-08-02 Thread LightDot
It's a common issue with unicode & python, perhaps this will give you some 
ideas on how to proceed:

http://stackoverflow.com/questions/2153920/returning-the-first-n-characters-of-a-unicode-string

Regards

On Tuesday, July 29, 2014 6:41:26 PM UTC+2, Капылов Данил wrote:
>
> Maybe you're right. But I have displayed several blocks with different 
> text, and if I change 400 to 401 or 403 or any other number. In some units 
> this symbol appears.
>
> How can I solve this problem?
>
>
>
> вторник, 29 июля 2014 г., 3:18:44 UTC+6 пользователь Derek написал:
>>
>> ok, so my guess is that this is unicode text, so it's not counting 400 
>> characters, it's counting 400 bytes, so it may potentially cut off a byte 
>> thus making an invalid unicode character. You can probably change it from 
>> 401 to 400 or 402, just to make sure you are cutting at the appropriate 
>> place.
>>
>>
>> On Thursday, July 24, 2014 11:48:34 PM UTC-7, Капылов Данил wrote:
>>>
>>> When displaying text in some text at the end appears. and some do not. 
>>> In this text there is no character. How to fix it was not? 
>>>
>>> 
>>> {{if len(row.body)>400:}}
>>> {{=(row.body[:401] + '. . .')}}
>>>
>>> {{else:}}
>>> {{=row.body}}
>>> {{pass}}
>>> 
>>>
>>>
>>>
>>> 
>>>
>>

-- 
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: which web2py version contains the hypermedia api in gluon contrib?

2014-06-23 Thread LightDot
What's a bigger pointer than a big red button called "Git repository" or 
"Mercurial repository"..? They are right there, on the downloads page... :)

Regards

On Monday, June 23, 2014 10:43:46 PM UTC+2, greaneym wrote:
>
> Hi,
>
> Never mind, I found the version on github.  Thanks (  There should 
> probably be a pointer from the downloads page on the main web2py site to 
> github ).
>
> Margaret
>
> On Monday, June 23, 2014 10:42:32 AM UTC-5, greaneym wrote:
>>
>> Hello,
>>
>> I am interested in testing the hypermedia collectionjs combination in 
>> web2py. I downloaded 2.9.5-trunk+timestamp.2014.03.29.21.54.41 but it's 
>> not in the gluon/contrib.
>>
>> which version should I download to test please?
>>
>> 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: PIL library not working with apache 2.2

2014-06-11 Thread LightDot
Show us some code. How are you importing the library, how are you using it?

Regards

On Wednesday, June 11, 2014 12:16:47 PM UTC+2, Sharjeel Ali Shaukat wrote:
>
> I m having a problem when running PIL library with apache i always get 
>  this error
> global name 'ImageGrab' is not defined
> please help me regarding this issue
>

-- 
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: What is a clear procedure to style web2py css files using Bootstrap theme generators/choosers?

2014-05-09 Thread LightDot
As far as Bootswatch 2 themes are concerned, the original, stock 
bootstrap-responsive.min.css must be loaded if you wish your page to be 
"responsive". Bootswatch 2 themes do not provide this functionality. So, 
regardless of the Bootswatch 2 theme used, they can all co-exist with the 
same, stock bootstrap-responsive.min.css.

What bootstrap-responsive.min.css does is explained in the old Bootstrap 2 
docs, for example here: 
http://getbootstrap.com/2.3.2/scaffolding.html#responsive and you can just 
try how your page looks with or without it. Just to be clear - you don't 
have to use the responsive features or even load the 
bootstrap-responsive.min.css, it's optional.

Regards

On Friday, May 9, 2014 5:24:23 PM UTC+2, JoeCodeswell wrote:
>
> Dear LightDot and Ari,
>
> Thanks for the responses. The situation is getting clearer in my mind.
>
> I have some follow-on questions for LightDot. You said:
>
> Details such as whether you need to replace just bootstrap.min.css (and 
>> keep the original bootstrap-responsive.min.css) or replace the 
>> bootstrap.min.css and remove bootstrap-responsive.min.css altogether, are 
>> going to be stated in the documentation of the theme / project you're 
>> switching to.
>
>
> I am sure you know WAY more about the history of Bootstrap and its 
> documentation than I do. I went to http://bootswatch.com/2/ and looked at 
> the Cerulean Preview, which seems to me to be the "the documentation of the 
> theme". I did a firefox page search for "responsive". Result: "Phrase not 
> found".
>
> Here are my questions, LightDot. Thanks in advance for educating me.
>
> Does every Bootstrap2 theme have a *correspondingly 
> developed*bootstrap-responsive.min.css? I assume the answer to this is NO.
>
> Will every Bootstrap2 theme work with a *separately 
> developed*bootstrap-responsive.min.css?
>
> Will the web2py default bootstrap-responsive.min.css "work" with any 
> Bootstrap2 theme's bootstrap.min.css? If, YES, generally what will the 
> result look like, when the bootstrap-responsive.min.css is in control?
>
> Thanks again, LightDot and Ari.
>
> Love and peace,
>
> Joe
>
> On Wednesday, May 7, 2014 11:57:54 AM UTC-7, ari northage-orr wrote:
>>
>> LightDot is correct, this is due to the fact that web2py comes with 
>>> bootstrap 2. I had the exact same issue as you, I was trying to use a theme 
>>> from Bootswatch and it ended up breaking the navbar and messing up the 
>>> placement of things on my page. Googling themes for bootstrap 2 and using 
>>> one of those fixed the issue completely. 
>>>
>>

-- 
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: apply static html/graphic to layout template

2014-05-07 Thread LightDot
I don't think there is a straight definitive answer to what you're asking. 
It depends on the expertise and preference of both the designer and the 
web2py developer you'll end up working with.

Since you already have the design made, I would proceed with looking for a 
web2py developer and then asking him which way he/she prefers. You might 
find a developer who can cut his own graphics directly from the source 
files, or you might find one that would prefer a finished html page to work 
with. In both cases, some input or corrections / additions by the original 
designer might be needed.

It's basically a question of two or more people working together and how 
they can best adjust their working process and collaborate. In my 
experience, this tends to be very subjective and varies from project to 
project, even if the same group of people is involved.

Regards

On Wednesday, May 7, 2014 12:32:59 PM UTC+2, Andrey K wrote:
>
> Dear web2py users,
>  
> Could you please help/suggest me how to deal with following dilemma:
> I have developed a web2py application and have a graphic design from an 
> outsource designer in the form of static pictures (png) and vector layouts 
> in illustrator format (.aoi). Now, I would like to apply the graphical 
> design to my web2py application. But, because of lack of time and 
> experience on the topic, I'd like to outsource this task (i.e. integration 
> of a design with the web2py)
>  
> Same designer who did a graphic version of the design can prepare the 
> results in the static/plain HTML page format, but not in any template 
> format including web2py template.
>  
> I wonder what is more time (and cost) effective solution:
>  
> 1) order plain html design from the same designer. Then find a web2py 
> developer who will use previously created html design and apply it to 
> web2py template (layout.html) and other other necessary elements. Is it 
> difficult to move from plain htmls to web2py template?
>  
> Or
>  
> 2) Request same designer to prepare only css and static graphics(icons). 
> After which find web2py developer who can layout whole design in web2py 
> using css and icons.
>  
> Is there any other way to deal with it.
>  
> Thank you in advance. Looking for your comments.
>  

-- 
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: What is a clear procedure to style web2py css files using Bootstrap theme generators/choosers?

2014-05-07 Thread LightDot
The three bars in the upper right of your Firefox are a part of the 
browser, not your page. That's how the recent Firefox menu looks like.

The web2py welcome app currently comes with Bootstrap 2, not 3. If you wish 
to use a bootswatch theme or any similar, you'll need to use an older, 
Bootstrap 2 compatible one. My guess is that this is the source of your 
problem.

Details such as whether you need to replace just bootstrap.min.css (and 
keep the original bootstrap-responsive.min.css) or replace the 
bootstrap.min.css and remove bootstrap-responsive.min.css altogether, are 
going to be stated in the documentation of the theme / project you're 
switching to. That's pretty much all there is to it, hence no python 
script...

Regards


On Tuesday, May 6, 2014 9:45:55 PM UTC+2, JoeCodeswell wrote:
>
> Dear web2py Community,
>
> What is a clear procedure [*dare i hope for a python script??*] to style 
> web2py css files using Bootstrap theme generators/choosers, like 
> bootswatch.com or stylebootstrap.info?
>
> My motivation is merely to change the background-color of my navbar.  I am 
> running 2.9.5-stable+timestamp.2014.03.16.02.35.39
>
> After research, I took Niphlod's suggestion to use stylebootstrap.info on 
> this post . 
>
> I followed Crash Course in Web2py (Part 
> 5...to
>  Update CSS. It said to copy the generated css into 
> *bootstrap.min.css*
>
> *RESULT*: The menu is broken. 
>
> After my signature, at the end of this post are 2 screenshots: 
>
>
>
> 1 - What my app looks like with *default css*, followed by 
> 2 - A screenshot of the *RESULT *of the *css update*. 
>
> I suspect i need to somehow alter *bootstrap-responsive.min* because 3 
> bars appear in the upper right of my firefox  browser because my screen 
> resolution is 1024 x 768.
>
> What specific files must be altered and how should they be altered to 
> follow Niphlod's suggestion about using a bootstrap generator to style 
> web2py? Please be very specific. A Python script would be MAGNIFICENT. 
>
> Thanks in advance.
>
> Love and peace,
>
> Joe
>
>
>
>
>
>
> 
>
>
>
>
> 
>
>
>
> 
>

-- 
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: 2.7 support up to 2020

2014-04-22 Thread LightDot
That's good news. Red Hat was already going to support it until 2024 (end 
of RHEL 7 production phase) / 2027 (extended life) anyway, this makes it 
that much easier for them and everybody else...

On Tuesday, April 22, 2014 9:36:58 AM UTC+2, Michele Comitini wrote:
>
> 2.7 life span doubled: 
>
>
> http://hg.python.org/peps/rev/76d43e52d978?utm_source=Python+Weekly+Newsletter&utm_campaign=ef1c091c06-Python_Weekly_Issue_135_April_17_2014&utm_medium=email&utm_term=0_9e26887fc5-ef1c091c06-312666777
>  
>

-- 
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: Classic Error with Rocket - can't launch web2py any more

2014-04-21 Thread LightDot
The error is pretty self-explanatory. Another service (or another instance 
of the same one) is already using port 8000.

So, the solution is to:

- find out which service is it (execute the command 'netstat -lnptu' in 
your terminal)
- shut that service down.

BTW, installing or uninstalling clamav won't have any effect on running 
services, nor will disconnecting from your home wi-fi.

Regards

On Monday, April 21, 2014 5:03:24 PM UTC+2, Dansant vzw wrote:
>
> I'am again trying (after several earlier and succesfull atempts) to learn 
> some web2py. In the past I just got the framework up and running without 
> any problem at all. 
>
> Unless I tryed it recently again and got the following error, which seems 
> to be a classic:
>
> ERROR:Rocket.Errors.Port8000:Socket 127.0.0.1:8000 in use by other 
> process and it won't share.
> WARNING:Rocket.Errors.Port8000:Listener started when not ready.
>
> I'am working on a Debian Linux machine (Wheezy) and have the Python IDLE 
> 2.6, 2.7 and 3.2 installed on my machine.
>
> I also recently did some experiments with wordpress running on my desktop, 
> but I uninstalled everything (incl. Apache).
>
> And it is still not running properly. The only thing I can think off is 
> the fact that I installed a virus protection clamav. But even when I 
> uninstalled that one, it didn't work. 
>
> It is even not working when I'am trying to use it offline (shutting down 
> my home wifi for a while)
>
>

-- 
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: 500 Internal Server Error under CentOS Apache and Web2py 2.9.5

2014-04-21 Thread LightDot
You use /opt/web-apps/web2py_2.9.5/ in one place and /opt/web-apps/web2py/ 
in other places. Besides, you should copy the wsgihandler.py into the 
web2py directory, don't call the file directly from handlers... (unless 
you've modified the paths within, but running directly from handlers isn't 
a really clean way of doing things...).

Have you made any other changes? For example, things like WSGISocketPrefix 
run/wsgi, was this used and working before?

Regards

On Sunday, April 20, 2014 4:25:29 PM UTC+2, lucas wrote:
>
> hello everyone,
>
> i just upgraded from web2py 2.4.6 to 2.9.5.  i am running centos 6.5 with 
> apache httpd server 2.2.15 and mod_wsgi is 3.2.3.
>
> i have no applications installed yet, just trying to get the default 
> welcome, examples, and admin interfaces working.  apache returns, "500 
> Internal Server Error".  not sure where to start to fix the error.
>
> here is my /etc/httpd/conf.d/wsgi.conf file:
> BOF...
> LoadModule wsgi_module modules/mod_wsgi.so
> WSGIDaemonProcess web2py user=apache group=apache
> WSGIApplicationGroup %{GLOBAL}
> WSGIProcessGroup web2py
> WSGISocketPrefix run/wsgi
> WSGIScriptAlias / /opt/web-apps/web2py_2.9.5/handlers/wsgihandler.py
> ...EOF
>
> here is my /etc/httpd/conf.d/default.conf file:
> BOF...
> NameVirtualHost *:80
> NameVirtualHost *:443
>
> 
>   SSLEngine on
>   SSLCertificateFile /etc/httpd/ssl/self_signed.cert
>   SSLCertificateKeyFile /etc/httpd/ssl/self_signed.key
>
>   
> AllowOverride None
> Order Allow,Deny
> Deny from all
> 
>   Allow from all
> 
>   
>
>   AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) 
> /opt/web-apps/web2py/applications/$1/static/$2
>
>   
> Options -Indexes
> ExpiresActive On
> ExpiresDefault "access plus 1 hour"
> Order Allow,Deny
> Allow from all
>   
>
>   CustomLog /var/log/httpd/access_log common
>   ErrorLog /var/log/httpd/error_log
> 
> ...EOF
>
> here is my /etc/httpd/conf.d/welcome.conf file:
> BOF...
> 
> Options -Indexes
> ErrorDocument 403 /error/noindex.html
> 
> ...EOF
>
> thanx for your help in advance, lucas
>
>

-- 
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] Nginx/passenger/web2py -> 504 Gateway Timeout?

2014-04-17 Thread LightDot
First thing, try ditching the symlink and copy the wsgihandler.py directly 
to passenger_wsgi.py. There might be a security measure in place, 
preventing symlinks.

The next thing I'd try is seeing if the paths within the passenger_wsgi.py 
get proper values, but this might be a long shot.

Since you say you're on a shared host, I assume you can't see how your web 
server and passenger configuration files actually look like? That would 
help.


On Thursday, April 17, 2014 1:57:40 PM UTC+2, Krzysztof Socha wrote:
>
> Yes - this is what I did. And yes - it seams to be a configuration 
> issue... It is just that I have no clue where to look :( 
>
> On Wednesday, April 16, 2014 12:59:36 PM UTC+2, LightDot wrote:
>>
>> So, I would say this is a configuration issue... But I'm not sure what's 
>> the problem. @Krzysztof, when you say you've put all web2py files within 
>> the folder, expected by passenger, did you omit the top web2py 
>> directory? The structure should be simply:
>>
>> top_passenger_dir/
>>   applications
>>   deposit
>>   gluon
>>   ...etc...
>>   passenger_wsgi.py
>>   web2py.py
>>
>> Regards
>>
>> On Tuesday, April 15, 2014 6:17:17 PM UTC+2, Richard wrote:
>>>
>>> I make it works with Phusion long time ago, and then get convinced after 
>>> reading a blog post that this were a bad idea, since at that time phusion 
>>> was not following the same rule as other linux in matter of service 
>>> managment, so I resign. I remember having read and work hard, since there 
>>> were no single one-stop place to make it works... The phusion doc, was the 
>>> better place + blog post and tuto.
>>>
>>> Sorry I couldn't help more... But I would again suggest you to walkaway 
>>> of phusion if you can somehow. My understanding is this project is not 
>>> enough or wasn't (1,5 years ago) to work in production. I was required to 
>>> compile Nginx to include phusion module because it is not include by 
>>> default, to me just that is enough to not consider it prod ready...
>>>
>>> Richard
>>>
>>>
>>> On Tue, Apr 15, 2014 at 3:34 AM, Krzysztof Socha wrote:
>>>
>>>> Thanks... But I kinda cannot... The hosting I am using is providing 
>>>> nginx + phusion passenger... and it works with a simple script, as I have 
>>>> shown. Unfortunately, it looks like the web2py handler never returns 
>>>> anything and the request time-outs... I do not even know where to look to 
>>>> understand what happens... Any suggestions?
>>>>
>>>> Krzysztof.
>>>>
>>>>
>>>> On Monday, April 14, 2014 3:58:16 PM UTC+2, Richard wrote:
>>>>>
>>>>> Use unicorn!!
>>>>>
>>>>> Phusion is more work...
>>>>>
>>>>> You can have a look in contrib there is a scrip that help deploy 
>>>>> redmine beside web2py with unicorn, so you can derive something for you 
>>>>> need from it. It works with 12.04.
>>>>>
>>>>> Richard
>>>>>
>>>>>
>>>>>  -- 
>>>> 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+un...@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] Re: Newbie print question

2014-04-17 Thread LightDot
I think there is a bit of vocabulary mismatch happening here. I assume you, 
by "print", mean displaying generated html in the browser?

In that case, please be more specific about what exactly you want removed 
or altered. Show us your code or a screenshot and state *exactly* what's 
the issue.

Regards

On Thursday, April 17, 2014 12:25:14 PM UTC+2, jimbo wrote:
>
> Right, I have made a simple database which works well and looks nice on 
> screen. That is in 'edit' everything looks as it should, everything in nice 
> neat boxes and that is how I would like it to print.
>
> However when I print the page a lot of other stuff appears which I gather 
> are link details, a Google lead me to believe that this is caused by some 
> code in the css of web2py. I have looked through the css but can't see 
> which bit I could alter/remove.
>
>
> Any ideas, explained simply please?
>
> Thanks, Jimmy
>

-- 
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: Hosting separate web2py application and PHP application on same apache fedora server

2014-04-16 Thread LightDot
Browser could not find... means exactly that. That might not be an apache 
error at all...

If your domain / subdomain names are correct, than you're missing DNS 
entries for either caspdb or cleav subdomains. They might work locally if 
you've put them in /etc/hosts, but they most certainly won't resolve over 
the internet.

Before worrying about how your PHP is set up, you need to get to the point 
when your index.php is either executed or you see the text contents...

That being said, this is not really connected with web2py in any way.


On Thursday, April 17, 2014 2:57:11 AM UTC+2, sonu kumar wrote:
>
> When I open my catdb application on web it says browser could not find...
> there is one php.conf file in /etc/httpd/conf.d/
>
> my php application is totally independent of web2py application...
>
> On Wednesday, 16 April 2014 17:45:35 UTC-7, LightDot wrote:
>>
>> So what is the error you get? Apache should either complain at server 
>> restart or you should be able to see at least some error description when 
>> you attempt to open the page.
>>
>> Also, I assume you have PHP configured outside of this vhost and enabled 
>> server-wide? Are you using mod_fcgid or..?
>>
>>
>> On Thursday, April 17, 2014 2:36:48 AM UTC+2, sonu kumar wrote:
>>>
>>> I just corrected all typos and deleted "Deny from all" and also added
>>>
>>> ErrorLog /data/www/html/caspdb/error_log
>>>
>>> but still not working as well as nothing is written in error_log file
>>>
>>>
>>> On Wednesday, 16 April 2014 17:04:58 UTC-7, LightDot wrote:
>>>>
>>>> First thing that jumps at me is the "Deny from all" directive in your 
>>>> PHP vhost... The other things I notice are the typos: you have catdb 
>>>> subdomain, catpdb document root and caspdb directory. At least one of 
>>>> those 
>>>> is a clear typo.
>>>>
>>>> Apache logs are quite helpful with these stuff.
>>>>
>>>> Regards
>>>>
>>>> On Thursday, April 17, 2014 1:02:12 AM UTC+2, sonu kumar wrote:
>>>>>
>>>>> I am running one web2py application on fedora webserver. Now I would 
>>>>> like to run one PHP application on this same server, but I am not able to 
>>>>> configure its httpd.conf file.
>>>>>
>>>>> At the moment my web2py application setting in httpd.conf file is 
>>>>> below in black and red is for my PHP application but not able to access 
>>>>> PHP 
>>>>> application from web but web2py application running fine:
>>>>>
>>>>> NameVirtualHost *:80
>>>>> NameVirtualHost *:443
>>>>>
>>>>> 
>>>>>ServerName catdb.sanfordburnham.org
>>>>>DocumentRoot /data/www/html/catpdb
>>>>>
>>>>>
>>>>> AllowOverride None
>>>>> Order Allow,Deny
>>>>> Deny from all
>>>>> DirectoryIndex index.php
>>>>>   
>>>>>
>>>>> 
>>>>>
>>>>>
>>>>> 
>>>>>   ServerName cleav.sanfordburnham.org
>>>>>   WSGIDaemonProcess web2py user=apache group=apache processes=1 
>>>>> threads=1
>>>>>   WSGIProcessGroup web2py
>>>>>   WSGIScriptAlias / /opt/web-apps/web2py/wsgihandler.py
>>>>>   WSGIPassAuthorization On
>>>>>
>>>>>   
>>>>> AllowOverride None
>>>>> Order Allow,Deny
>>>>> Deny from all
>>>>> 
>>>>>   Allow from all
>>>>> 
>>>>>   
>>>>>
>>>>>   AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) 
>>>>> /opt/web-apps/web2py/applications/$1/static/$2
>>>>>
>>>>>   
>>>>> Options -Indexes
>>>>> Order Allow,Deny
>>>>> Allow from all
>>>>>   
>>>>>
>>>>>   
>>>>> Deny from all
>>>>>   
>>>>>
>>>>>   
>>>>> Deny from all
>>>>>   
>>>>>
>>>>>   CustomLog /var/log/httpd/access_log common
>>>>>   ErrorLog /var/log/httpd/error_log
>>>>> 
>>>>>
>>>>> 
>>>>>   ServerName cleav.sanfordburnham.org
>>>>>   SSLEngine on
>>>>>   SSLCertificateFile /etc/httpd/ssl/self_signed.cert
>>>>>   SSLCertificateKeyFile /etc/httpd/ssl/self_signed.key
>>>>>
>>>>>   WSGIProcessGroup web2py
>>>>>   WSGIScriptAlias / /opt/web-apps/web2py/wsgihandler.py
>>>>>   WSGIPassAuthorization On
>>>>>
>>>>>   
>>>>> AllowOverride None
>>>>> Order Allow,Deny
>>>>> Deny from all
>>>>> 
>>>>>   Allow from all
>>>>> 
>>>>>   
>>>>>
>>>>>   AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) 
>>>>> /opt/web-apps/web2py/applications/$1/static/$2
>>>>>
>>>>>   
>>>>> Options -Indexes
>>>>> ExpiresActive On
>>>>> ExpiresDefault "access plus 1 hour"
>>>>> Order Allow,Deny
>>>>> Allow from all
>>>>>   
>>>>>
>>>>>   CustomLog /var/log/httpd/access_log common
>>>>>   ErrorLog /var/log/httpd/error_log
>>>>> 
>>>>>
>>>>>

-- 
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: Hosting separate web2py application and PHP application on same apache fedora server

2014-04-16 Thread LightDot
So what is the error you get? Apache should either complain at server 
restart or you should be able to see at least some error description when 
you attempt to open the page.

Also, I assume you have PHP configured outside of this vhost and enabled 
server-wide? Are you using mod_fcgid or..?


On Thursday, April 17, 2014 2:36:48 AM UTC+2, sonu kumar wrote:
>
> I just corrected all typos and deleted "Deny from all" and also added
>
> ErrorLog /data/www/html/caspdb/error_log
>
> but still not working as well as nothing is written in error_log file
>
>
> On Wednesday, 16 April 2014 17:04:58 UTC-7, LightDot wrote:
>>
>> First thing that jumps at me is the "Deny from all" directive in your PHP 
>> vhost... The other things I notice are the typos: you have catdb subdomain, 
>> catpdb document root and caspdb directory. At least one of those is a clear 
>> typo.
>>
>> Apache logs are quite helpful with these stuff.
>>
>> Regards
>>
>> On Thursday, April 17, 2014 1:02:12 AM UTC+2, sonu kumar wrote:
>>>
>>> I am running one web2py application on fedora webserver. Now I would 
>>> like to run one PHP application on this same server, but I am not able to 
>>> configure its httpd.conf file.
>>>
>>> At the moment my web2py application setting in httpd.conf file is below 
>>> in black and red is for my PHP application but not able to access PHP 
>>> application from web but web2py application running fine:
>>>
>>> NameVirtualHost *:80
>>> NameVirtualHost *:443
>>>
>>> 
>>>ServerName catdb.sanfordburnham.org
>>>DocumentRoot /data/www/html/catpdb
>>>
>>>
>>> AllowOverride None
>>> Order Allow,Deny
>>> Deny from all
>>> DirectoryIndex index.php
>>>   
>>>
>>> 
>>>
>>>
>>> 
>>>   ServerName cleav.sanfordburnham.org
>>>   WSGIDaemonProcess web2py user=apache group=apache processes=1 threads=1
>>>   WSGIProcessGroup web2py
>>>   WSGIScriptAlias / /opt/web-apps/web2py/wsgihandler.py
>>>   WSGIPassAuthorization On
>>>
>>>   
>>> AllowOverride None
>>> Order Allow,Deny
>>> Deny from all
>>> 
>>>   Allow from all
>>> 
>>>   
>>>
>>>   AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) 
>>> /opt/web-apps/web2py/applications/$1/static/$2
>>>
>>>   
>>> Options -Indexes
>>> Order Allow,Deny
>>> Allow from all
>>>   
>>>
>>>   
>>> Deny from all
>>>   
>>>
>>>   
>>> Deny from all
>>>   
>>>
>>>   CustomLog /var/log/httpd/access_log common
>>>   ErrorLog /var/log/httpd/error_log
>>> 
>>>
>>> 
>>>   ServerName cleav.sanfordburnham.org
>>>   SSLEngine on
>>>   SSLCertificateFile /etc/httpd/ssl/self_signed.cert
>>>   SSLCertificateKeyFile /etc/httpd/ssl/self_signed.key
>>>
>>>   WSGIProcessGroup web2py
>>>   WSGIScriptAlias / /opt/web-apps/web2py/wsgihandler.py
>>>   WSGIPassAuthorization On
>>>
>>>   
>>> AllowOverride None
>>> Order Allow,Deny
>>> Deny from all
>>> 
>>>   Allow from all
>>> 
>>>   
>>>
>>>   AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) 
>>> /opt/web-apps/web2py/applications/$1/static/$2
>>>
>>>   
>>> Options -Indexes
>>> ExpiresActive On
>>> ExpiresDefault "access plus 1 hour"
>>> Order Allow,Deny
>>> Allow from all
>>>   
>>>
>>>   CustomLog /var/log/httpd/access_log common
>>>   ErrorLog /var/log/httpd/error_log
>>> 
>>>
>>>

-- 
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: Hosting separate web2py application and PHP application on same apache fedora server

2014-04-16 Thread LightDot
First thing that jumps at me is the "Deny from all" directive in your PHP 
vhost... The other things I notice are the typos: you have catdb subdomain, 
catpdb document root and caspdb directory. At least one of those is a clear 
typo.

Apache logs are quite helpful with these stuff.

Regards

On Thursday, April 17, 2014 1:02:12 AM UTC+2, sonu kumar wrote:
>
> I am running one web2py application on fedora webserver. Now I would like 
> to run one PHP application on this same server, but I am not able to 
> configure its httpd.conf file.
>
> At the moment my web2py application setting in httpd.conf file is below in 
> black and red is for my PHP application but not able to access PHP 
> application from web but web2py application running fine:
>
> NameVirtualHost *:80
> NameVirtualHost *:443
>
> 
>ServerName catdb.sanfordburnham.org
>DocumentRoot /data/www/html/catpdb
>
>
> AllowOverride None
> Order Allow,Deny
> Deny from all
> DirectoryIndex index.php
>   
>
> 
>
>
> 
>   ServerName cleav.sanfordburnham.org
>   WSGIDaemonProcess web2py user=apache group=apache processes=1 threads=1
>   WSGIProcessGroup web2py
>   WSGIScriptAlias / /opt/web-apps/web2py/wsgihandler.py
>   WSGIPassAuthorization On
>
>   
> AllowOverride None
> Order Allow,Deny
> Deny from all
> 
>   Allow from all
> 
>   
>
>   AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) 
> /opt/web-apps/web2py/applications/$1/static/$2
>
>   
> Options -Indexes
> Order Allow,Deny
> Allow from all
>   
>
>   
> Deny from all
>   
>
>   
> Deny from all
>   
>
>   CustomLog /var/log/httpd/access_log common
>   ErrorLog /var/log/httpd/error_log
> 
>
> 
>   ServerName cleav.sanfordburnham.org
>   SSLEngine on
>   SSLCertificateFile /etc/httpd/ssl/self_signed.cert
>   SSLCertificateKeyFile /etc/httpd/ssl/self_signed.key
>
>   WSGIProcessGroup web2py
>   WSGIScriptAlias / /opt/web-apps/web2py/wsgihandler.py
>   WSGIPassAuthorization On
>
>   
> AllowOverride None
> Order Allow,Deny
> Deny from all
> 
>   Allow from all
> 
>   
>
>   AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) 
> /opt/web-apps/web2py/applications/$1/static/$2
>
>   
> Options -Indexes
> ExpiresActive On
> ExpiresDefault "access plus 1 hour"
> Order Allow,Deny
> Allow from all
>   
>
>   CustomLog /var/log/httpd/access_log common
>   ErrorLog /var/log/httpd/error_log
> 
>
>

-- 
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] Nginx/passenger/web2py -> 504 Gateway Timeout?

2014-04-16 Thread LightDot
I use apache and mod_passenger (Scientific Linux 6.x / EPEL) on a couple of 
high traffic web2py apps, works like a charm. Passenger is really neat, I'm 
testing an unified solution that provides python, nodejs and ruby support 
with seamless passtrough for PHP / HTML / static files.

Apart of configuring apache / passenger, the only thing needed on web2py 
side was to use wsgihandler.py, renamed as passenger_wsgi.py.

So, I would say this is a configuration issue... But I'm not sure what's 
theproblem. @Krzysztof, 
when you say you've put all web2py files within the folder, expected by 
passenger, did you omit the top web2py directory? The structure should be 
simply:

top_passenger_dir/
  applications
  deposit
  gluon
  ...etc...
  passenger_wsgi.py
  web2py.py

Regards

On Tuesday, April 15, 2014 6:17:17 PM UTC+2, Richard wrote:
>
> I make it works with Phusion long time ago, and then get convinced after 
> reading a blog post that this were a bad idea, since at that time phusion 
> was not following the same rule as other linux in matter of service 
> managment, so I resign. I remember having read and work hard, since there 
> were no single one-stop place to make it works... The phusion doc, was the 
> better place + blog post and tuto.
>
> Sorry I couldn't help more... But I would again suggest you to walkaway of 
> phusion if you can somehow. My understanding is this project is not enough 
> or wasn't (1,5 years ago) to work in production. I was required to compile 
> Nginx to include phusion module because it is not include by default, to me 
> just that is enough to not consider it prod ready...
>
> Richard
>
>
> On Tue, Apr 15, 2014 at 3:34 AM, Krzysztof Socha 
> 
> > wrote:
>
>> Thanks... But I kinda cannot... The hosting I am using is providing nginx 
>> + phusion passenger... and it works with a simple script, as I have shown. 
>> Unfortunately, it looks like the web2py handler never returns anything and 
>> the request time-outs... I do not even know where to look to understand 
>> what happens... Any suggestions?
>>
>> Krzysztof.
>>
>>
>> On Monday, April 14, 2014 3:58:16 PM UTC+2, Richard wrote:
>>>
>>> Use unicorn!!
>>>
>>> Phusion is more work...
>>>
>>> You can have a look in contrib there is a scrip that help deploy redmine 
>>> beside web2py with unicorn, so you can derive something for you need from 
>>> it. It works with 12.04.
>>>
>>> Richard
>>>
>>>
>>>  -- 
>> 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+un...@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] Re: deployment error

2014-04-15 Thread LightDot
Hmm, no... for example, on our servers, setting file permissions of a CGI 
script to 777 will prevent it from working as a security measure. So, file 
ownership or permissions are still first things that come to mind.

Create a new app from scratch (as you say, this works) and upload/extract a 
zip or a w2p of the same welcome app, then compare the file and directory 
ownership / permissions. By compare, I mean compare *exactly*, file for 
file, dir for dir...

Regards

On Tuesday, April 15, 2014 11:01:08 AM UTC+2, Richard wrote:
>
> The issue was an admin app from an older version.
>  
> The site on Justhost.com is running again. I am using the cgihandler.py.
>  
> BUT: imported apps do not run and give the error [an error occurred while 
> processing this directive]
> I tried both : installing the w2p file and copying the application as a 
> zip and extract in the application directory. 
>  
> Creating a new app from scratch thru the admin interface gives an app that 
> works.
>  
> I have also put permisions to 777, so permissions is also excluded as 
> possible cause.
>  
> Any clu? 
> thanks 
> Richard
>  
>
> On Sunday, April 13, 2014 10:12:46 PM UTC+2, Richard wrote:
>
>> Gooed evening,
>>
>> When I call an app on my domain the index view is returned.
>> But having an SSL connection In Chrome I do get the following error (In 
>> IE 11 I do not get an error)
>>
>> Any clus what may cause this? I run from the latest source version of 
>> web2py.
>>
>> Thank you in advance
>>
>> TICKET ID
>>
>> 213.10.60.120.2014-04-13.14-08-36.a2f01714-7fb0-4aa9-8519-636ee745fb03
>>  not enough arguments for format string
>> VERSIONweb2py™stablePythonPython 2.6.6: /usr/bin/python (prefix: /usr)
>> TRACEBACK
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>>
>> Traceback (most recent call last):
>>   File "/home4/mamplcom/public_html/cgi-bin/gluon/restricted.py", line 217, 
>> in restricted
>> exec ccode in environment
>>   File 
>> "/home4/mamplcom/public_html/cgi-bin/applications/admin/views/default/site.html",
>>  line 123, in 
>> 
>> TypeError: not enough arguments for format string
>>
>> ERROR SNAPSHOT 
>>
>

-- 
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: Pyston

2014-04-12 Thread LightDot
On Friday, April 11, 2014 9:18:30 PM UTC+2, Joe Barnhart wrote:
>
> It's Pyston!  Guido works at Dropbox, so any new revolutionary Python 
> system from there is likely to carry his stamp on it.  He has seemed 
> impressed by PyPy in the past, but always a little distant.  I think this 
> is what he wants for the future of Python.  Not an all-encompassing "python 
> written in python" but a straightforward JIT to bring it up to at least JVM 
> speed, and maybe better.
>

Why do you consider this as Guido's direct answer to PyPy..? I really think 
that would be reading into it a bit too much... I simply see Pyston as a 
research project at this time. If all parts fall together nicely, it might 
bring important changes to Python, if not, it will most likely get 
abandoned.

Remember the Unladen Swallow? It was started by three core CPython 
developers, who were all working at Google at the time, same as Guido was. 
And we all know it's ultimate fate...

So, there are similarities here. The goal is JIT on top of LLVM, Pyston is 
started by engineers at Dropbox, while Guido is also currently working at 
Dropbox. And, similarly, the project's success (or impending doom) lies in 
the approach taken to achieve JIT.

How ever this turns, it's a good thing. Google funded full time (not 
Guido's, mind you) development of Unladen Swallow for a while, the project 
produced some code that was merged upstream (for example, cPickle) and, 
most importantly, researched an approach to JIT, which is knowledge now 
available to the community. Hopefully, Pyston is well aware of it.

If Pyston achieves at least that much with the help of funding from Dropbox 
(again, Guido isn't working on this, AFAIK), I wouldn't complain. If it 
reaches the ultimate goal or at least brings significant improvements, 
well.. that would be great..!

-- 
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: Help defining architecture for app

2014-04-04 Thread LightDot
On Friday, April 4, 2014 7:14:39 PM UTC+2, Francisco Betancourt wrote:
>
> Hello LightDot
>
> Thanks for the interest in my post, hope we can come up with a way to 
> improve performance. This is my current setup:
>
>
>- Host: Digital Ocean (and yes I do think their Droplets (as instances 
>are called) are KVM)
>- OS: Ubuntu 13.04
>- Web Server: Apache 2.2
>- Database: PostgreSQL 9.1
>- Memory usage in peak times is about 1.4GB (out of 2GB)
>- By the way I have no swap partition
>- I don't know how to count db connections, but in my db definition I 
>used the poolsize=50, but again I don't know how to check the amount of 
>connections at any given time
>- Disk usage acording to Digital Ocean metrics is medium never high 
>(do truly I have never understand their graph)
>- CPU usage at some points gets close to 50% (since this a dual core I 
>would assume one of the cores is at 100%)
>
> I don't know what else to mention but, if I missed anything please ask. 
> And thanks again.
>

This is good information to start with. Do you have more statistics, such 
as top and iostat output at the peak times, etc. ?

Postgresql itself has statistics available, for example see 
http://www.postgresql.org/docs/9.1/static/monitoring-stats.html

Did you already tune apache or postgresql in any way? if so, what are your 
settings..? On the web2py side and for your current use case, the 
poolsize=50 setting might be ok or not, depending on your apache/pg setup...

-- 
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: Help defining architecture for app

2014-04-04 Thread LightDot
It would be prudent to see some numbers and to learn about your setup 
more...

So, what is your current setup like? Which web server are you using, which 
database? How much simultaneous db connections are we talking about?

Digital Ocean is using KVM virtualization, correct? How is you memory 
usage, which OS are you using within your VPS? How bad is the i/o really..?


On Friday, April 4, 2014 4:30:27 PM UTC+2, Francisco Betancourt wrote:
>
> Thanks for the response Niphlod. I believe the bottleneck is the db, I am 
> rewriting the code to use less queries, but in general terms I think I 
> agree with you, I need a faster server. I currently host on Digital Ocean 
> and I'm running a dual core with 2GB in RAM server. The statistics for the 
> server show CPU usage never reaches 100% (not even 50%),even when doing the 
> big files, so I guess the problem is I/O. This server already use SSDs, so 
> I was thinking of using a second db server to divide the work, so the 
> information that I get back from the web service is stored in another db, 
> and then I could use this db also for my scheduler tasks. 
>
> Do you think this makes sense?
>
> El jueves, 3 de abril de 2014 10:17:09 UTC-6, Niphlod escribió:
>>
>> I think the main point you need to assess if you have enough resources to 
>> do what you want. If your server can't keep up with the work you're asking 
>> it to do, then using scheduler or whatever won't bring any benefits.
>> If instead you have a not-so-snappy user-interface because you don't have 
>> enough power to respond quickly to a user, then the scheduler is a right 
>> fit.
>>
>> If you're seeing all the "hurdle" of the system on the db backend, then 
>> you're in the same situation as the first one, i.e. you need to "buy more 
>> juice".
>>
>> On Thursday, April 3, 2014 1:33:59 AM UTC+2, Francisco Betancourt wrote:
>>>
>>> Hello everyone.
>>>
>>> I need some help defining the architecture for an application. We 
>>> already have something in place, but the size of the the users data files 
>>> is making the site very unresponsive. The app works as follows:
>>>
>>>
>>>1. The user uploads a csv file
>>>2. The user file is read to a table for further processing
>>>3. The user previews the data I read from his file (to see if 
>>>everything is ok)
>>>4. If data is ok he clicks a button which will make us generate an 
>>>xml (using some of the data he uploaded) and send the xml to a web 
>>> service
>>>5. The web service is not ours, and we must send the xml files one 
>>>at a time (though we can send hundreds simultaneously)
>>>6. The web service returns data, and we store that data into the db
>>>7. Once done we offer a print friendly version of the final data
>>>
>>> So currently we are doing the following:
>>>
>>>1. Receive a file, and once saved we process it with web2py built in 
>>>import from csv.
>>>2. Once data has been read we show a view with all the rows and a 
>>>button to start the process
>>>3. Using js we send groups of 20 rows at a time through ajax, to be 
>>>processed (to xml) and sent to the web service
>>>4. Each ajax call returns js code to update a progress bar
>>>
>>> Originally this files were suppose to consist of hundreds hardly a 
>>> thousand row, but in the end we have files with 15000 rows and the average 
>>> is about 4000. Incredibly the view (even with 15000 rows and js) works 
>>> well. But the site becomes quite unresponsive (especially because there are 
>>> normally a dozen or so users doing the same thing simultaneously).
>>>
>>> We have already done as many optimizations as we know (use migrate=False 
>>> for db, call session.forget in ajax controller functions, byte compile the 
>>> code) but it still is way too slow. So we are making some heavy changes. I 
>>> want to try to use the scheduler and workers to do this job, but I fear it 
>>> will generate even more db queries and make things worse. So I would like 
>>> some suggestions on how to tackle this problem??
>>>
>>> Is scheduler the way to go? An if so should I make a task for every xml 
>>> and webservice call (this seems like a bad idea to me). Or should I group 
>>> them in chunks of an arbitrary size (e.g. 50)? And if I make this change 
>>> will I be able to display the progress of the process?
>>>
>>> Thanks for all the help. Good day.
>>>
>>

-- 
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: Major issue with request separation

2014-04-03 Thread LightDot
Clients need to be uniquely identified, then you can track and return 
content to them accordingly. So, you need some form of authentication / 
identification / authorization. Web2py has access control built in and this 
might provide all you need to get you started.

Regards

On Wednesday, April 2, 2014 6:27:52 PM UTC+2, cl...@northernbrewer.com 
wrote:
>
> I'm having a major issue with a web2py application in a production 
> environment. It is easily reproducible and causing major issues.
>
> At it's most basic level I can make a new function which does just one 
> thing - dumps something out to a log, appends to a file, posts an xmlrpc 
> response, etc. all results are the same.
>
> The result is If multiple clients request the same controller action at 
> the same time, only one of the requests is processed, and all clients 
> receive the same response.
>
> For example, 2 clients call "myfunction". Both get a response, but 
> "myfunction" writes to a log, file, or makes an external request only once! 
> This is a major issue, because many functions make an xmlrpc call to 
> another server, and everyone gets the same data, not what they requested.
>
> For what it is worth, these requests are coming in from Javascript/Ajax - 
> although that should not matter, multiple clients should be able to request 
> the same URL and get the correct data for what they posted. If these 
> requests are separated by 1 second, then they work normally, but any less 
> and this problem appears.
>
> Is there something missing here? A decorator or request._ variable 
> that needs to be set? 
>
> Any insight is greatly appreciated.
>

-- 
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: Best way for using CSS variables with web2py ?

2014-03-23 Thread LightDot
If it's only such variables you're after, you could achieve the same with 
Less. Anyway, Bootstrap has an official Sass port, see:

http://getbootstrap.com/getting-started/
https://github.com/twbs/bootstrap-sass/

Regards

-- 
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: howto: ajax call in FORM with signed URL

2014-03-19 Thread LightDot
Try:

TD(INPUT(_id='keyword', _name='keyword', _onkeyup="ajax(URL('callback', 
['keyword', 'stype'], user_signature=True), 'target');"), _name=
"search_type")))

Regards

On Wednesday, March 19, 2014 1:59:38 PM UTC+1, Mike Constabel wrote:
>
> Hi,
>
> in a form i have
>
> TD(INPUT(_id='keyword', _name='keyword', _onkeyup="ajax(URL('callback', 
> ['keyword', 'stype']), 'target');"), _name="search_type")))
>
> If a text is entered, callback is called an some text is displayed in 
> target. This works.
>
> But now I want to sign the URL.
>
> If I add @auth.requires_signature() to callback function, it no longer 
> works. The ajax call must be signed.
>
> @auth.requires_signature()
> def callback():
> return P("foo")
>
> But how can I add "user_signature=True" to the code above so that the ajax 
> call will be signed?
>
> Regards,
> Mike
>

-- 
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: Database access without DAL but with connection pool

2014-03-19 Thread LightDot
Well, if you want to do it without the DAL, there are several options that 
might just work without any additional code:
- check if specific python libs that you'll use for the db connection 
already provide a similar pooling function, they might
- check if the database backend natively provides such a function.

If neither is applicable... I suggest extending the DAL to support a new 
database ;)

Regards

On Wednesday, March 19, 2014 3:49:39 PM UTC+1, tec...@gmail.com wrote:
>
> Hello Massimo,
>
> Thank you for reply.
>
> On Wednesday, March 19, 2014 7:20:27 PM UTC+5, Massimo Di Pierro wrote:
>>
>> I am not sure about pymongo but if you use 
>>
>> DAL('mongodb:')
>>
>> the dal will do pooling for you.
>>
> Ok, I will check this.
>
>
> Actually I don't want to use pymongo only, it could any database which DAL 
> doesn't support.
> As I wrote before I think it's not good idea to connect (disconnect) to 
> database in controller function.
> Could you (anybody) provide example of custom connection pool? Just 
> checked web2py resources, no any single example? 
>
>
>
> Andrey A.
>  
>
>>
>> On Wednesday, 19 March 2014 01:33:04 UTC-5, tec...@gmail.com wrote:
>>>
>>> Dear Sirs,
>>>
>>>
>>> I understand it's possible to use databases without DAL.
>>> For example function in controller:
>>>
>>> def values():
>>> client = pymongo.MongoClient('localhost', 27017)
>>> db = client.mybase
>>> mytable = db["mytable"]
>>> res = mytable.find()
>>> .
>>>
>>> return dict()
>>>
>>> And of course it works.
>>> But is it fast to connect/disconnect every time in function? What's 
>>> about connection pool?
>>> I consider connection pool could increase access to database. 
>>>
>>> 1. Actually I would like to ask how to access to database without DAL 
>>> but at maximum speed?
>>> 2. Do I need connection pool for fast database access? (I think, yes.)
>>> 3. How could I build custom connection pool for database access without 
>>> DAL? Or any solution to re-use connections to database server? Any examples?
>>>
>>>
>>>
>>> Andrey A.
>>>
>>

-- 
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: REF: Downloading static files with spaces gives an error

2014-03-19 Thread LightDot
Vital parts of information are missing - are the files served by Rocket , 
Apache, or..? How is the file being downloaded? By a browser request? How 
is the request formulated, are you following a link or entering the URL by 
typing it directly?

Regards

On Wednesday, March 19, 2014 3:24:03 PM UTC+1, software.ted wrote:
>
> I have trying to download files stored in static/upload/my file.pdf, it 
> returns page not found. But when i remove spaces and change the static 
> file, it works.
>
> Any ideas on why this behaviour or explanation?
>
> -- 
>
> ...
> Teddy Lubasi Nyambe
> Opensource Zambia
>
>

-- 
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: Appadmin on 2.9.4

2014-03-15 Thread LightDot
Btw, this seems to be one of the more elusive features of web2py, when it 
comes to finding information about it... @simonD, can I ask what did you 
first think when you saw _2.9.4 in the path, but no corresponding folder?

Did you assume anything else besides a missing folder? Did you search the 
group for answers and if so, what keywords did you use?

I'm trying to figure out how should web2py & it's documentation convey the 
information about this feature better...

Regards

On Saturday, March 15, 2014 8:12:22 PM UTC+1, LightDot wrote:
>
> Er... creating folders is NOT the solution. You don't have any folders 
> missing.
>
> The _2.9.4 comes from *virtual* static asset management. This number will 
> change now and then, as static files get updated, so please don't go 
> creating actual folders for this.
>
> Search the book and this group for response.static_version, it's been 
> explained several times.
>
> Regards
>
> On Saturday, March 15, 2014 7:12:18 PM UTC+1, SimonD wrote:
>>
>> Thanks to all other contributors. 
>> Massimo nailed it, I think, with the proposal to use Chromes diagnostics. 
>> I must get properly acquainted with Chrome...
>>
>> The core problem was: a folder missing under admin/static (called 
>> _2.9.4). Although I think the other Apache config solution may have worked, 
>> creating the missing folder seemed the best course of action.
>>
>> For interest, this is the content of the missing folder.
>> _2.9.4:
>> css
>> js
>> plugin_multiselect
>> plugin_statebutton
>>
>>   _2.9.4/css:
>>   bootstrap_essentials.css
>>   bootstrap.min.css
>>   bootstrap-responsive.min.css
>>   calendar.css
>>
>>   _2.9.4/js:
>>   calendar.js
>>   jquery.js
>>   web2py.js
>>
>>   _2.9.4/plugin_multiselect:
>>   jquery.multi-select.js
>>   multi-select.css
>>   start.js
>>
>> _2.9.4/plugin_statebutton/css:
>> bootstrap-switch.css
>>
>> _2.9.4/plugin_statebutton/js:
>> bootstrap-switch.js
>>
>> Again, thanks to all.
>>
>>
>>
>> On Friday, March 14, 2014 4:28:51 PM UTC, Massimo Di Pierro wrote:
>>>
>>> Can you open the page with chrome? In the javascript console (under 
>>> network activity) it will tell you which files return a 404 error (if any). 
>>> Then you can check if the files are there or not.
>>>
>>> On Friday, 14 March 2014 11:06:09 UTC-5, SimonD wrote:
>>>>
>>>> Thanks,
>>>> The vhost configs (I assuming that we are talking about 
>>>> sites-available/default ?), is as per the setup script as kindly included 
>>>> in web2py. It is unchanged apart from the installation directory (i.e. 
>>>> other than www-data). I have changed all references of www-data to a new 
>>>> directory name. I guess these all resolve OK, because the server works as 
>>>> expected in every other respect. I am pretty sure it is not a permission 
>>>> issue as they are the same across the whole directory.
>>>> It just looks like there is a missing CSS or JS or similar. The only 
>>>> 'vhost' reference is in apache2.conf but thats just a log file name.
>>>> Actually, the Welcome Hello World screen looks fine at 
>>>> welcome/default/index. But clicking through to admin/default/index is 
>>>> where 
>>>> the issue starts presenting. Note the top black navbar is not showing 
>>>> (although there seems to be a navbar reference in the page source), so 
>>>> maybe part of the layout include is not being served. Does admin require 
>>>> different includes?
>>>> is there anything specific I should I look for in the conf files? (I am 
>>>> not an apache expert)
>>>> Thanks
>>>>
>>>>
>>>> On Friday, March 14, 2014 2:34:15 PM UTC, shapova...@gmail.com wrote:
>>>>>
>>>>> I remember seeing something similar on previous version, IIRC the 
>>>>> thing was in apache's vhost config.
>>>>>
>>>>> On Friday, March 14, 2014 4:27:04 PM UTC+2, Massimo Di Pierro wrote:
>>>>>>
>>>>>> Anybody else experiencing this?
>>>>>>
>>>>>> On Friday, 14 March 2014 06:39:08 UTC-5, SimonD wrote:
>>>>>>>
>>>>>>> Hello, I have seen a previous post on an apparently broken Admin 
>>>>>>> screen, but I think this is a different issue (or just a noobie 
>>>

[web2py] Re: One Step Production Deployment

2014-03-15 Thread LightDot
As I just wrote in another thread: the _2.9.4 comes from *virtual* static 
asset management. This number will change now and then, as static files get 
updated, so please don't go creating actual folders for this.

This feature is defined with response.static_version, it's in the book and 
the troubleshooting in regards to it has been addressed several times in 
the group.

This seems to be one of those features that users have most problems 
finding information about...

Regards

On Saturday, March 15, 2014 6:18:50 PM UTC+1, horridohobbyist wrote:
>
> Sorry, I spoke too soon. While the visual rendering is okay, the menus 
> don't work. So I can't create the _2.9.4 folder. Damn.
>
>
> On Saturday, 15 March 2014 13:08:36 UTC-4, horridohobbyist wrote:
>>
>> Okay, I solved the other piece of the mystery. The Administrative 
>> Interface view is now referencing its CSS, JS, and plugins in a folder one 
>> level deeper called "_2.9.4". So I simply created a _2.9.4 folder and moved 
>> css, js, plugin_multiselect and plugin_statebutton into it. Everything is 
>> now okay.
>>
>> But this begs the question:  Why wasn't my test VM doing the same thing 
>> with respect to the _2.9.4 folder??
>>
>>
>> On Saturday, 15 March 2014 12:48:33 UTC-4, horridohobbyist wrote:
>>>
>>> Okay, I figured out what happened. During the "One step production 
>>> deployment", *for some reason*, the wsgihandler.py file did NOT get 
>>> copied to the web2py parent folder. Don't ask me why. (In my test VM, the 
>>> wsgihandler.py file did get copied, in fact, moved. Go figure.)
>>>
>>> Now, I'm finding that the Administrative Interface cannot locate the CSS 
>>> for proper rendering. Any ideas?
>>>
>>> (Why is "One step production deployment" going so wrong???)
>>>
>>>
>>> On Saturday, 15 March 2014 07:57:59 UTC-4, horridohobbyist wrote:

 I'm trying to reinstall web2py on my Linux server. I'm trying to start 
 from a clean slate...

 First, I've updated my server to Ubuntu Server 12.04. I've restored the 
 original *httpd.conf* (empty file) and *sites-available/default* files 
 for Apache2. So, for all intents and purposes, web2py is gone from my 
 system.

 Then, I removed all things web2py from the */home/www-data* folder. So 
 I have a clean slate, right?

 Finally, I followed the "One step production deployment" recipe. So, 
 the thing should just work, right?

 Except, it doesn't. Visit http://67.213.70.250/welcome and you get 
 nothing, /welcome Not Found.

 Um, what's wrong?

 This worked just fine in my Linux VM, so I am puzzled.

>>>

-- 
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: Appadmin on 2.9.4

2014-03-15 Thread LightDot
Er... creating folders is NOT the solution. You don't have any folders 
missing.

The _2.9.4 comes from *virtual* static asset management. This number will 
change now and then, as static files get updated, so please don't go 
creating actual folders for this.

Search the book and this group for response.static_version, it's been 
explained several times.

Regards

On Saturday, March 15, 2014 7:12:18 PM UTC+1, SimonD wrote:
>
> Thanks to all other contributors. 
> Massimo nailed it, I think, with the proposal to use Chromes diagnostics. 
> I must get properly acquainted with Chrome...
>
> The core problem was: a folder missing under admin/static (called _2.9.4). 
> Although I think the other Apache config solution may have worked, creating 
> the missing folder seemed the best course of action.
>
> For interest, this is the content of the missing folder.
> _2.9.4:
> css
> js
> plugin_multiselect
> plugin_statebutton
>
>   _2.9.4/css:
>   bootstrap_essentials.css
>   bootstrap.min.css
>   bootstrap-responsive.min.css
>   calendar.css
>
>   _2.9.4/js:
>   calendar.js
>   jquery.js
>   web2py.js
>
>   _2.9.4/plugin_multiselect:
>   jquery.multi-select.js
>   multi-select.css
>   start.js
>
> _2.9.4/plugin_statebutton/css:
> bootstrap-switch.css
>
> _2.9.4/plugin_statebutton/js:
> bootstrap-switch.js
>
> Again, thanks to all.
>
>
>
> On Friday, March 14, 2014 4:28:51 PM UTC, Massimo Di Pierro wrote:
>>
>> Can you open the page with chrome? In the javascript console (under 
>> network activity) it will tell you which files return a 404 error (if any). 
>> Then you can check if the files are there or not.
>>
>> On Friday, 14 March 2014 11:06:09 UTC-5, SimonD wrote:
>>>
>>> Thanks,
>>> The vhost configs (I assuming that we are talking about 
>>> sites-available/default ?), is as per the setup script as kindly included 
>>> in web2py. It is unchanged apart from the installation directory (i.e. 
>>> other than www-data). I have changed all references of www-data to a new 
>>> directory name. I guess these all resolve OK, because the server works as 
>>> expected in every other respect. I am pretty sure it is not a permission 
>>> issue as they are the same across the whole directory.
>>> It just looks like there is a missing CSS or JS or similar. The only 
>>> 'vhost' reference is in apache2.conf but thats just a log file name.
>>> Actually, the Welcome Hello World screen looks fine at 
>>> welcome/default/index. But clicking through to admin/default/index is where 
>>> the issue starts presenting. Note the top black navbar is not showing 
>>> (although there seems to be a navbar reference in the page source), so 
>>> maybe part of the layout include is not being served. Does admin require 
>>> different includes?
>>> is there anything specific I should I look for in the conf files? (I am 
>>> not an apache expert)
>>> Thanks
>>>
>>>
>>> On Friday, March 14, 2014 2:34:15 PM UTC, shapova...@gmail.com wrote:

 I remember seeing something similar on previous version, IIRC the thing 
 was in apache's vhost config.

 On Friday, March 14, 2014 4:27:04 PM UTC+2, Massimo Di Pierro wrote:
>
> Anybody else experiencing this?
>
> On Friday, 14 March 2014 06:39:08 UTC-5, SimonD wrote:
>>
>> Hello, I have seen a previous post on an apparently broken Admin 
>> screen, but I think this is a different issue (or just a noobie 
>> question).
>> I have done my app development on 2.3.2 (on Ubuntu 10.04 LTS).
>> I have setup a new local server (test production) on my LAN, with a 
>> clean/fresh install of Ubuntu 12.04 LTS. I downloaded 2.9.4 and used the 
>> 'setup-web2py-ubuntu.sh' script for Apache2. I copied my app over (it is 
>> still using SQLite for now), and updated web2py.js, appadmin.py and 
>> appadmin.htms as per the release notes. My actual web-application seems 
>> to 
>> work fine on the server.
>>
>> But, from my 10.04 machine, when I access the 12.04 server's appadmin 
>> (over the LAN) via SSL, the layout/design of the screens is lost. See 
>> the 
>> example screenshot. The "admin login", "installed applications", and 
>> "edit" 
>> screens are broken.
>> Although not consistently, this also breaks the appadmin on my local 
>> 10.04 machine. Clearing history/cache etc etc in Firefox usually 
>> corrects 
>> the issue.
>>
>> However, I has also upgraded my 10.04LTS development environment to 
>> 2.9.4 and although the app admin screens were not broken in the same 
>> way, 
>> the "Manage" buttons were not working (i.e. the dropdown "edit, about, 
>> etc" 
>> options  don't show). Again usually clearing the firefox history/cache 
>> corrects that. But restarts were required on 2 occasions. OK, its not a 
>> biggie, but there is something underlying that is worrying.
>>
>> For now, I have reverted to 2.3.2 (on 10.04 LTS) to continue 
>

[web2py] Re: Bootstrap3 package - help to test

2014-03-14 Thread LightDot
Are you looking for ways to set the required css class for the table itself 
or anything more?

For example, you can manipulate the DOM for the table class. It's not a 
perfect approach, but should do for the time being:

grid = SQLFORM.grid (...code...)
grid.element('table', replace=lambda el: el.add_class(
   'table table-striped table-condensed'))

Regards


On Saturday, March 15, 2014 1:46:58 AM UTC+1, Brando wrote:
>
> Paolo, I got everything moved over.  So far no problems.  I'm trying to 
> figure out the best way to style a SQLFORM.grid without using custom js. 
> What is the easiest way to style the SQLFORM.grid with bootstrap3?
>
>
>
>
>
> On Thursday, March 13, 2014 8:59:07 AM UTC-7, Brando wrote:
>>
>> Just found this Post.  Thanks Paolo.  I'll move my app over to this 
>> template and report any issues I find.
>>
>>
>>
>>
>> On Monday, December 23, 2013 12:20:48 PM UTC-8, Paolo Caruccio wrote:
>>>
>>> I just completed a package that applies the bootstrap3 style to some 
>>> web2py elements - the current version covers the navigation menus, the auth 
>>> navbar and SQLFORMs (via formstyle) - but I need your help for testing it.
>>>
>>> The package includes the following files:
>>>
>>>  - bootstrap3.py
>>>  - web2py-bootstrap3.css
>>>  - web2py-bootstrap3.js
>>>  - example of layout.html
>>>  - a readme file containing the istallation and usage instructions
>>>  - license (please report if the license is right for a future inclusion 
>>> in web2py)
>>>
>>> Here attached some screenshots and a web2py app with examples. 
>>>
>>> Thank you in advance for your feedbacks, suggestions for optimizing the 
>>> code and any additions and everything else useful to improve the package.
>>>
>>> Marry Christmas. 
>>>
>>>
>>>
>>>
>>>
>>>

-- 
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: Understanding translation and accept-language header?

2014-03-14 Thread LightDot
I'm less familiar with the translation parts of web2py that I'd like to be, 
but is this connected with the definitions of:

'!langcode!': 'en-us',
'!langname!': 'English (US)',

that can be found in languages/default.py?

Regards


On Friday, March 14, 2014 8:39:21 PM UTC+1, User wrote:
>
> I'd really like to understand this.  If I set the current language to 
> 'en', why does en-gb get translated but en-us does not get translated?
>
> On Sunday, March 9, 2014 10:31:57 PM UTC-4, User wrote:
>>
>> So why do en-us and en-gb behave differently?  That is, why is en-gb 
>> translated and en-us not translated?
>>
>> On Sunday, March 9, 2014 9:04:23 PM UTC-4, Massimo Di Pierro wrote:
>>>
>>> Because if T.current_languages: ['en'] it means you say that 'en' does 
>>> not need to be translated. This is the default behaviour.
>>>
>>> On Friday, 7 March 2014 17:49:23 UTC-6, User wrote:

 I made a bare bones app based on the welcome app:

 In db.py:
 T.current_languages = ['en']


 in en-us.py:
 # -*- coding: utf-8 -*-
 {
 '!langcode!': 'en-us',
 '!langname!': 'English (American)',
 'xyztest': 'Pass! (US English)'
 }

 in en-gb.py:
 # -*- coding: utf-8 -*-
 {
 '!langcode!': 'en-gb',
 '!langname!': 'English (British)',

 'xyztest': 'Pass! (UK)'

 }


 In a view:
 Language testing:
 string: {{=T('xyztest')}}
 current_languages: {{=T.current_languages}}
 T.http_accept_language: {{=T.http_accept_language}}
 T.accepted_language: {{=T.accepted_language}}


 The rendered output of this is:

 string: *xyztest*
 T.current_languages: ['en']
 T.http_accept_language: en-us,en;q=0.5
 T.accepted_language: en-us

 Why does this not get translated? By contrast, if I set my browser 
 accept language to include en-gb the rendered output is:

 string:* Pass! (UK)*
 T.current_languages: ['en']
 T.http_accept_language: en-gb,en-us;q=0.7,en;q=0.3
 T.accepted_language: en-gb




-- 
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 Mac OS Mavericks, trying to use port 80

2014-03-14 Thread LightDot
Hello Manuel, welcome to the list.

The issue you're seeing is not a bug, it's a feature of the OS or, rather, 
of it's security settings. The same behavior can be observed on Linux, 
FreeBSD, Solaris, ... any UN*X OS basically: non root users can't bind to 
ports below 1024.

This limit can be changed (per user or per process), but I don't recommend 
this unless you understand all implications of doing so. There are other 
ways around this, such as starting the process as root and then dropping 
privileges, using a proxy that has such functionality, using iptables to 
redirect ports, etc.

Regards

On Friday, March 14, 2014 7:34:58 AM UTC+1, audi...@gmail.com wrote:
>
> Hello,
> Thanks to the team for the great tool !
> I have minor issues on Mac OS Mavericks, just wanted to check before 
> creating an issue on google code.
>
> System
> Mac OS 10.9.2
> $ which python
> /usr/bin/python
> $ python --version
> Python 2.7.5
>
> Steps
> download web2py_src.zip
> unzip the archive into $basedir
> from an Mac administrator account, launch Terminal
> $ cd $basedir
> $ python web2py.py
> ...
> Version 2.9.4-stable+timestamp.2014.03.05.04.44.09
> ...
> The web2py graphical interface launches
> Leave "server ip" on "local"
> Set "Server Port" to "80"
> Enter a password in "Choose password" field
> Click on "start server"
>
> Expected result
> web2py framework, start listening on port 80
>
> Actual result
> The terminal output :
> ERROR:Rocket.Errors.Port80:Socket 127.0.0.1:80 in use by other process 
> and it won't share.
> WARNING:Rocket.Errors.Port80:Listener started when not ready.
>
> What have I tried
> Check active ports with Apple's network utility (port scan) : no active 
> port between 10 and 100
>
> Use 
> $ sudo python web2py.py
> instead of 
> $ python web2py.py
> Then you can actually launch web2py on port 80
> Terminal output :
> ...
> please visit:
> http://127.0.0.1/
> starting browser...
>
> It seems this is related to Mac OS policy to keep use of some ports for 
> it's own usage.
> My question is wether this is a bug or an enhancement request to have an 
> error message in the graphical web2py launch app to inform user ?
> (When using the Mac OS package instead of the source version, you don't 
> have any feedback on this issue, the server is just not starting).
>
> As this is my first post on this list, let me know if I made any mistake.
> thanks,
> Manuel
>

-- 
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: Verbatim Tag

2014-03-14 Thread LightDot
Hi Massmo,

On Friday, March 14, 2014 2:46:58 PM UTC+1, Massimo Di Pierro wrote:
>
> {{data.message + " world!"}}
>
> should be
>
> {{= data.message + " world!"}}
>

No... this part is fictional AngularJS code, just meant as an example.

I think you're missing the point of this thread, and that is whether web2py 
should have a special variable to temporarily disable the parsing of {{ }} 
and leave that to another parser, such as AngularJS. This would enable both 
web2py and AngularJS to keep using the same delimiters.

I believe Django has this functionality. What I don't know is the reasoning 
for their inclusion and possible caveats... @David Simmons, do you perhaps 
know if there was a discussion there and what were the arguments? Have they 
had any issues with the implementation?

Regards

 

> On Thursday, 13 March 2014 17:21:28 UTC-5, David Simmons wrote:
>>
>> Hi All (again).
>>
>> I did some digging around with the web2py source code and came up with 
>> this.
>>
>> https://gist.github.com/shortly-portly/9538005
>>
>> The usage is pretty straight forward. You can use normal Web2py tags {{ 
>> and }}. When you want to drop down into Angular, surround your stuff with 
>> {{ verbatim }} and {{ endverbatim }}. For example
>>
>> {{ extend 'layout.html }} <- translated by web2py as normal
>>
>> {{ verbatim }}
>> 
>> 
>> {{data.message + " world!"}}<--- not touched by 
>> web2py
>> 
>>
>> {{ endverbatim }}
>>
>> Could someone who knows more about the web2py source code let me know if 
>> this looks like a valid change. I'd love to be able to submit it.
>>
>> cheers
>>
>> Dave
>>
>>

-- 
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: Images not showed on linux

2014-03-12 Thread LightDot
First thing that comes to mind is that Linux is case sensitive, while 
Windows is not. So ../Silos/static is different then ../silos/static/... 
etc.

If not, then please provide the actual errors displayed and/or server 
logs... There must be an error, "no images showed" doesn't tell us much.

Regards


On Wednesday, March 12, 2014 8:32:28 PM UTC+1, jldistefano wrote:
>
> Hi, I am developing on windows an application that show images stored in 
> the static folder, it works great on Firefox , Chrome  and IE. 
>
> The problem is when I serve the application from a Linux machine running  
> Ubuntu. 
> The images aren’t showed on Firefox (didn’t try other browser). I tried 
> with both of this ways on the view.
>
> 
>
>   (Silos is the app name) and variations 
> like   
>
> And the result is the same, no images showed.
>
> I need some help or clues here. 
>
> Thanks in advance.
>
>

-- 
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: recaptcha doesn't work in a component (LOAD)

2014-03-06 Thread LightDot
Well, if people want to use ajax for the recaptcha, they can make a load 
component out of it. I think that the parameter really is redundant...

Anyway, thanks for spotting & fixing this.

Regards


On Thursday, March 6, 2014 11:56:40 AM UTC+1, Tim Richardson wrote:
>
>
>
> On Thursday, 6 March 2014 18:29:40 UTC+11, Paolo Valleri wrote:
>>
>> I haven't tested, just an idea, instead of adding a new parameter, what 
>> about checking current.request.ajax ? 
>>
>>
> I didn't know about that. Does that mean that the client_side parameter in 
> redirect is redundant?
>
> people may want to optionally use the ajax recaptcha API even in non-LOAD 
> circumstances, since it probably gives faster perceived load times, so 
> there is probably justification for the extra control that a parameter 
> gives. 
>  However, perhaps the default can be changed to True in case of 
> current.request.ajax. 
>
>
>
>
>  Paolo
>>
>>
>> 2014-03-06 0:59 GMT+01:00 Tim Richardson :
>>
>>> I've made the PR, but my knowledge of jquery/javascript is paleolithic 
>>> so Paolo is would be great if you can look at it. 
>>> It works. 
>>> https://github.com/web2py/web2py/pull/389
>>>
>>>
>>> On Thursday, 6 March 2014 07:12:11 UTC+11, Tim Richardson wrote:



 On Thursday, 6 March 2014 01:06:07 UTC+11, Paolo Valleri wrote:
>
> I run a couple of tests and I got the same issues, I am try to figure 
> out why the js library (recaptcha_canary.js) is not loaded at all
>  
>  Paolo
>
>

 I've opened issues 1888 and I've worked out how to fix it (see code on 
 the issue page). I'll make a PR today/tongith 

>
> 2014-03-05 12:17 GMT+01:00 Tim Richardson :
>
>>
>>
>> On Wednesday, 5 March 2014 21:56:49 UTC+11, Paolo Valleri wrote:
>>>
>>> Hi,
>>> Is it working without placing it in a component?
>>> have you tried to disable the facebook plugin? I'm just wondering if 
>>> there is a correlation between the two.
>>>
>>
>> I removed the facebook plugin but it made no difference.
>> Yes, it works when not in a plugin. 
>> The generated code is very different between the working example and 
>> the LOAD. It seems that the Google javascript for recapture is not being 
>> executed when LOAD is used. 
>> When it works (no LOAD) there is a quite of lot of injected code 
>> which is not present in the LOADed component. In Firebug, I'm told to 
>> "reload the page to get source for http:..www.google.com/recpatcha/..." 
>> so the 

[web2py] Re: web2py official site erroneously displays mobile view from google search

2014-03-04 Thread LightDot
I should clarify also - I do get the mobile version when the browser width 
gets below 980px (width reported by Developer Tools in Firefox), but I 
didn't see this as an issue. Like Jim said, it's the expected behaviour.

Regards

On Tuesday, March 4, 2014 7:29:00 PM UTC+1, Jim S wrote:
>
> I should clarify.  I can reproduce it but don't feel it is an issue.  In 
> my opinion, this is the way responsive sites are supposed to work.
>
> -Jim
>
> On Tuesday, March 4, 2014 12:06:50 PM UTC-6, Jim S wrote:
>>
>> I'm able to reproduce if my browser width falls under a width of 994.  I 
>> think that is just the bootstrap nav system kicking in.
>>
>> If I widen my browser back wider than 993, then it comes back into place.
>>
>> I'm using firefox extension browserize to set my browser size.  It will 
>> then also show the size in the lower right of my browser so I can see when 
>> it kicks over to the collapsed menus.
>>
>> -Jim
>>
>>
>> On Tuesday, March 4, 2014 11:47:26 AM UTC-6, LightDot wrote:
>>>
>>> Can't reproduce this, tried Chromium 32.0.1.1700.102 and 33.0.1750.117 
>>> on Fedora 20 and Chrome 32.0.1700.107m and 33.0.1750.146m on Windows 7, 
>>> both normal and incognito modes. Google search bar -> top web2py link -> 
>>> everything is normal, as expected.
>>>
>>> Regards
>>>
>>> On Tuesday, March 4, 2014 5:22:11 PM UTC+1, Jay Martin wrote:
>>>>
>>>> When I enter 'web2py' into the Google search bar, then click on the 
>>>> official site link to web2py.com from the top search result, the 
>>>> web2py site appears to be displayed with a mobile view (see attached). I 
>>>> am 
>>>> using a desktop, so this is incorrect. This also happens when using chrome 
>>>> incognito mode. This doesn't happen from Bing. Nor does it happen when 
>>>> entering the URL directly into the chrome omni-bar.
>>>>
>>>> Could someone else test this as well? Any ideas?
>>>>
>>>> My best,
>>>>
>>>> Jay
>>>>
>>>>
>>>>

-- 
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/groups/opt_out.


[web2py] Re: web2py official site erroneously displays mobile view from google search

2014-03-04 Thread LightDot
Can't reproduce this, tried Chromium 32.0.1.1700.102 and 33.0.1750.117 on 
Fedora 20 and Chrome 32.0.1700.107m and 33.0.1750.146m on Windows 7, both 
normal and incognito modes. Google search bar -> top web2py link -> 
everything is normal, as expected.

Regards

On Tuesday, March 4, 2014 5:22:11 PM UTC+1, Jay Martin wrote:
>
> When I enter 'web2py' into the Google search bar, then click on the 
> official site link to web2py.com from the top search result, the web2py 
> site appears to be displayed with a mobile view (see attached). I am using 
> a desktop, so this is incorrect. This also happens when using chrome 
> incognito mode. This doesn't happen from Bing. Nor does it happen when 
> entering the URL directly into the chrome omni-bar.
>
> Could someone else test this as well? Any ideas?
>
> My best,
>
> Jay
>
>
>

-- 
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/groups/opt_out.


[web2py] Re: Where does Apache HTTP server stores incoming request's data

2014-02-28 Thread LightDot
Well, if files under /var/log/httpd are empty, then apache is either set up 
not to log anything or it's set up to log to another location. Third 
possibility would be that it isn't serving requests at all...

No way of knowing really, without looking at apache configuration files. 
How do you have it set up?

Regards

On Friday, February 28, 2014 11:04:05 AM UTC+1, Gliese 581 g wrote:
>
> I have Apache HTTP server configured on Linux machine. I am sending 
> requests to it from my Windows machine. I want to check the contents of 
> incoming request. Where does it stores the data of incoming request? I have 
> checked it on my Windows machine where it uses 
> *C:\Users\username\AppData\Local\Temp* file for this(Where I do not have 
> Apache server and web2py is running on rocket server). I have looked 
> into/var/log/httpd/access_logfolder on Linux machine but all files in that 
> folder are empty. 
>
> I have a json web service developed using web2py framework and it is 
> hosted on Apache HTTP server on Linux machine. It has get_tkn web service 
> which I am trying to access from Python shell.
>
> import jsonrpclib
> import json
> 
> server_url = 'http://ip_address/appname/controllername/call/jsonrpc/'
> api = jsonrpclib.Server(server_url)
> tk_request = { 
>  'header' : { 
> 'a_id':u'f23ew343',\ 
> 'a_key':u'ldddk333k444d4',
> 'r_id':'12345',
> 
> 't_id':'mec','uip_address':'someipaddr',
> 'tkn':''
> },   
>  'body' : {'prms' :{}}
>  }
> api.get_tkn(tk_request)
>
> I want to check the data in the request because I am passing some values 
> in the dictionary whhich are of type Unicode and when I hit the web service 
> hosted on my Windows machine(rocket server), I get those values in Unicode 
> as expected. But when I call web service hosted on Linux machine(Apache 
> HTTP server), I get these values as str(not unicode). 
>

-- 
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/groups/opt_out.


[web2py] Re: Strange 'SQLTABLE linkto' behaviour

2014-02-26 Thread LightDot


On Wednesday, February 26, 2014 10:44:21 AM UTC+1, mcamel wrote:
>
> ...
> If you agree you can close 1881 ticket. It's not a bug at the code (maybe 
> at the manual).
>
> By the way, is it proper to open issues to suggest corrections of the 
> manual (i have a few)?.
>
> Thanks.
>

You can also open an issue or make a pull request at the book's github repo:

https://github.com/mdipierro/web2py-book

Regards

-- 
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/groups/opt_out.


[web2py] Re: Submit FORM not working in IE11

2014-02-26 Thread LightDot
Sounds like SSL certs or cookies. I remember once troubleshooting 
Facebook's OAuth frantically for an hour before I realized my browser had 
3rd party cookies blocked. :)

Does either of the sites use SSL? If it does, does it have a valid cert or 
do you need to confirm an exception in your browser? For cookies, you could 
temporarily disable session checking for the form in question and see the 
result.

if form.process(session=None).accepted:
...code...

Regards


On Wednesday, February 26, 2014 6:08:53 PM UTC+1, Davy Jacops wrote:
>
> I am trying to isolate the problem.
>
> Situation: the web2py form is embedded in an iframe on drupalgardens site.
> The web2py server is on Amazon EC2 machine running ubuntu.
>
> What I found out so far:
> When I take a PC (mac, windows, it doesn't matter) with any browser (IE, 
> safari for sure), then at first the popups and the submit actions are NOT 
> working.
> The submit button says "working" for a second and then nothing happens.
>
> BUT if I then play around with that PC for a while, and surf directly to 
> the ubuntu server (without iframe), possibly loggin in, then suddenly the 
> popups and submit button start working.
> When I then try it on that same PC with the iframe, it works as well (from 
> the drupalgardens site).
>
> Seems that something needs to pass a gate once and then it works for that 
> PC.
> certificates?? 
>
> Still root cause is unknown.
> My site is not deployable like this :(
>
> DJ
>
>
> When I use a 
>
> Op dinsdag 25 februari 2014 21:55:42 UTC+1 schreef Davy Jacops:
>>
>> My web2py app is ready, and I was about to deploy, but
>> just found out it doesn't work at al under Internet Explorer 11!
>>
>> I developed everything using safari, chrome & also tested in firefox.
>> All working fine.
>>
>> But I have a form (generated via SQLFORM.factory) with a submit button.
>>
>> Using IE11: when pushing the SUBMIT button, is says "working" very 
>> briefly, but then nothing at all happens.
>> I cannot test if older IE versions have the same problem.
>>
>> Are there any special tricks to be applied for IE?
>>
>> Thank you for your help
>>
>> DJ
>>
>

-- 
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/groups/opt_out.


[web2py] Re: HELP with bootstrap 3

2014-02-24 Thread LightDot
Modernizr and Respond are not interchangeable. Modernizr detects detailed 
browser capabilities and makes conditional JS/CSS programming possible, 
while Respond adds the support for certain CSS3 media queries to older 
browsers (IE 6-8), thus enabling them to display responsive designs.

Bootstrap 3 won't work on IE8 or older browsers without the Respond library 
(or some other similar lib - there are others, but Respond is small and 
fast).

Direct link to the minified version from the author:
https://raw.github.com/scottjehl/Respond/master/dest/respond.min.js

I'm not opposed to keeping modernizr in static/js if others think that it's 
still needed. I don't use it and since it's commented out in Paolo's 
layout, I vote for removal and a comment, suggesting to users that it 
exists...





Regards


On Monday, February 24, 2014 10:04:31 PM UTC+1, Massimo Di Pierro wrote:
>
> Can you elaborate on the pros and cons?
>
> On Monday, 24 February 2014 12:31:12 UTC-6, LightDot wrote:
>>
>> I misunderstood you at first because I was looking at the modernizr too 
>> much. If the proposal is to put respond.js into static/js, and remove 
>> modernizr from it, than I'm +1 to that.
>>
>> 
>> 
>> 
>>>> https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4</a>.
>>>> 2/respond.js">
>>>> 
>>>>> https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js</a>
>>>>> ">
>>>>> 

[web2py] Re: HELP with bootstrap 3

2014-02-24 Thread LightDot
I misunderstood you at first because I was looking at the modernizr too 
much. If the proposal is to put respond.js into static/js, and remove 
modernizr from it, than I'm +1 to that.




>> https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.
>> 2/respond.js">
>> 
>>> https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js
>>> ">
>>> 

[web2py] Re: HELP with bootstrap 3

2014-02-24 Thread LightDot
Both of these js's are commented out by default (note, the if sentence is 
commented out entirely), so it would work without internet connection. 
Anyway, for me it's ok either way... Pesonally, I don't use CDNs but I also 
prefer to have as few files in the welcome app as possible, especially if 
they are commented out.

Regards

On Monday, February 24, 2014 5:21:15 PM UTC+1, Niphlod wrote:
>
> I'm not confortable with having something cdn dependant. By default apps 
> should be available also if no internet connectivity is assured.
> +1 with defaulting to local and a comment to enable the cdn version.
>
> On Monday, February 24, 2014 1:05:13 PM UTC+1, LightDot wrote:
>>
>> Note to those not reading this group from a web interface: I edited my 
>> post to fix copy paste typos in the code. This is the correct code again:
>>
>> 
>> 
>> 
>>
>> I apologize for the mix up.
>>
>> Regards
>>
>>
>> On Monday, February 24, 2014 12:28:19 PM UTC+1, LightDot wrote:
>>>
>>> How about putting Paolo's bootstrap3.py into contrib an have welcome app 
>>> import it from there? His module provides most of the bootstrap 3 support 
>>> (forms, navigation, etc.). We could remove all this from core web2py.
>>>
>>> As for the welcome app static files, these are redundant (leftovers) now 
>>> and should be deleted:
>>>
>>> static/css/bootstrap-responsive.min.css
>>> static/css/web2py_bootstrap.css
>>> static/css/web2py_bootstrap_nojs.css
>>> static/js/dd_belatedpng.js
>>> static/js/web2py_bootstrap.js
>>>
>>> This one is old (v3.0.3, should be v3.1.1):
>>> static/css/bootstrap-theme.min.css
>>>
>>> I think we should define modernizr.custom.js to use a CDN and remove it 
>>> from the static files too, same as respond.js is defined now. I also think 
>>> we should be suggesting users to use  a free CDN instead of Maxcdn, so this 
>>> should be in layout.html instead of what is now:
>>>
>>> 
>>> 
>>> 
>>>
>>> Another minor thing for the new layout.html: header section should also 
>>> have id="header", same as other sections have.
>>>
>>> I didn't have time to test the changes to gluon/tools.py yet, I'll check 
>>> out trunk a bit later...
>>>
>>> (note: edited to fix a typo in the code)
>>>
>>> Regards
>>>
>>>
>>> On Monday, February 24, 2014 9:40:22 AM UTC+1, Niphlod wrote:
>>>>
>>>> in my POV instead of reducing all alterations of default widgets in 
>>>> javascript we should ship new widget sets alltogether. 
>>>> This was discussed long ago but nobody seemed to care  we can't 
>>>> really start supporting every css framework out there unless we change the 
>>>> way widgets are generated.
>>>> Going "bootstrap3" with this much FOUC is good for a plugin 
>>>> proof-of-concept but I'd not ship it as a scaffolding application...
>>>>
>>>> On Monday, February 24, 2014 7:12:22 AM UTC+1, Massimo Di Pierro wrote:
>>>>>
>>>>> Can we get rid of web2py-bootstrap3.js? 
>>>>>
>>>>> Do we all these files?
>>>>> web2py.css
>>>>> bootstrap-responsive.min.css
>>>>> bootstrap-theme.min.css
>>>>> web2py-bootstrap3.css
>>>>> web2py_bootstrap.css
>>>>> web2py_bootstrap_nojs.css
>>>>>
>>>>> can we reduce to two:
>>>>> web2py.css
>>>>> web2py-bootstrap3.css
>>>>>
>>>>>
>>>>>
>>>>> On Monday, 24 February 2014 00:09:48 UTC-6, Massimo Di Pierro wrote:
>>>>>>
>>>>>> Added some of the missing files. They were created by Paolo but it 
>>>>>> was my mistake not to post them. They should address most of the issues.
>>>>>>
>>>>>> On Sunday, 23 February 2014 23:51:04 UTC-6, Ron McOuat wrote:
>>>>>>>
>>>>>>> I found this on Stack Overflow
>>>>>>>
>>>>>>>
>>>>>>> http://stackoverflow.com/questions/16214326/bootstrap-dropdown-with-hover
>>>>>>>
>>>>>>> ul.nav li.dropdown:hover ul.dropdown-menu {
>>>>>>>display: block;
>>>>>>> }
>>>>>>>
>>>>>>> and I find this solution using CSS in the .css file under welcome 
>>>>>>> named
>>>>>>>
>>>>>>> static/css/web2py_bootstrap_nojs.css but not in any other css file.
>>>>>>>
>>>>>>> However this file is not included by another file anywhere in the 
>>>>>>> welcome application.
>>>>>>>
>>>>>>> If this is it I just got lucky is all. :-)
>>>>>>>
>>>>>>> The Welcome application name header is scrunched up under the menu 
>>>>>>> bar and partially visible lastest Firefox Ubuntu 12.04 LTS
>>>>>>>
>>>>>>> The web2py menu item (yellow) doesn't open like in 2.8.2
>>>>>>>
>>>>>>> Ron
>>>>>>>
>>>>>>>
>>>>>>>

-- 
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/groups/opt_out.


[web2py] Re: HELP with bootstrap 3

2014-02-24 Thread LightDot
Note to those not reading this group from a web interface: I edited my post 
to fix copy paste typos in the code. This is the correct code again:





I apologize for the mix up.

Regards


On Monday, February 24, 2014 12:28:19 PM UTC+1, LightDot wrote:
>
> How about putting Paolo's bootstrap3.py into contrib an have welcome app 
> import it from there? His module provides most of the bootstrap 3 support 
> (forms, navigation, etc.). We could remove all this from core web2py.
>
> As for the welcome app static files, these are redundant (leftovers) now 
> and should be deleted:
>
> static/css/bootstrap-responsive.min.css
> static/css/web2py_bootstrap.css
> static/css/web2py_bootstrap_nojs.css
> static/js/dd_belatedpng.js
> static/js/web2py_bootstrap.js
>
> This one is old (v3.0.3, should be v3.1.1):
> static/css/bootstrap-theme.min.css
>
> I think we should define modernizr.custom.js to use a CDN and remove it 
> from the static files too, same as respond.js is defined now. I also think 
> we should be suggesting users to use  a free CDN instead of Maxcdn, so this 
> should be in layout.html instead of what is now:
>
> 
> 
> 
>
> Another minor thing for the new layout.html: header section should also 
> have id="header", same as other sections have.
>
> I didn't have time to test the changes to gluon/tools.py yet, I'll check 
> out trunk a bit later...
>
> (note: edited to fix a typo in the code)
>
> Regards
>
>
> On Monday, February 24, 2014 9:40:22 AM UTC+1, Niphlod wrote:
>>
>> in my POV instead of reducing all alterations of default widgets in 
>> javascript we should ship new widget sets alltogether. 
>> This was discussed long ago but nobody seemed to care  we can't 
>> really start supporting every css framework out there unless we change the 
>> way widgets are generated.
>> Going "bootstrap3" with this much FOUC is good for a plugin 
>> proof-of-concept but I'd not ship it as a scaffolding application...
>>
>> On Monday, February 24, 2014 7:12:22 AM UTC+1, Massimo Di Pierro wrote:
>>>
>>> Can we get rid of web2py-bootstrap3.js? 
>>>
>>> Do we all these files?
>>> web2py.css
>>> bootstrap-responsive.min.css
>>> bootstrap-theme.min.css
>>> web2py-bootstrap3.css
>>> web2py_bootstrap.css
>>> web2py_bootstrap_nojs.css
>>>
>>> can we reduce to two:
>>> web2py.css
>>> web2py-bootstrap3.css
>>>
>>>
>>>
>>> On Monday, 24 February 2014 00:09:48 UTC-6, Massimo Di Pierro wrote:
>>>>
>>>> Added some of the missing files. They were created by Paolo but it was 
>>>> my mistake not to post them. They should address most of the issues.
>>>>
>>>> On Sunday, 23 February 2014 23:51:04 UTC-6, Ron McOuat wrote:
>>>>>
>>>>> I found this on Stack Overflow
>>>>>
>>>>>
>>>>> http://stackoverflow.com/questions/16214326/bootstrap-dropdown-with-hover
>>>>>
>>>>> ul.nav li.dropdown:hover ul.dropdown-menu {
>>>>>display: block;
>>>>> }
>>>>>
>>>>> and I find this solution using CSS in the .css file under welcome named
>>>>>
>>>>> static/css/web2py_bootstrap_nojs.css but not in any other css file.
>>>>>
>>>>> However this file is not included by another file anywhere in the 
>>>>> welcome application.
>>>>>
>>>>> If this is it I just got lucky is all. :-)
>>>>>
>>>>> The Welcome application name header is scrunched up under the menu bar 
>>>>> and partially visible lastest Firefox Ubuntu 12.04 LTS
>>>>>
>>>>> The web2py menu item (yellow) doesn't open like in 2.8.2
>>>>>
>>>>> Ron
>>>>>
>>>>>
>>>>>

-- 
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/groups/opt_out.


[web2py] Re: HELP with bootstrap 3

2014-02-24 Thread LightDot
How about putting Paolo's bootstrap3.py into contrib an have welcome app 
import it from there? His module provides most of the bootstrap 3 support 
(forms, navigation, etc.). We could remove all this from core web2py.

As for the welcome app static files, these are redundant (leftovers) now 
and should be deleted:

static/css/bootstrap-responsive.min.css
static/css/web2py_bootstrap.css
static/css/web2py_bootstrap_nojs.css
static/js/dd_belatedpng.js
static/js/web2py_bootstrap.js

This one is old (v3.0.3, should be v3.1.1):
static/css/bootstrap-theme.min.css

I think we should define modernizr.custom.js to use a CDN and remove it 
from the static files too, same as respond.min.js is defined now. I also 
think we should be suggesting users to use  a free CDN instead of Maxcdn, 
so this should be in layout.html instead of what is now:





Another minor thing for the new layout.html: header section should also 
have id="header", same as other sections have.

I didn't have time to test the changes to gluon/tools.py yet, I'll check 
out trunk a bit later...

Regards


On Monday, February 24, 2014 9:40:22 AM UTC+1, Niphlod wrote:
>
> in my POV instead of reducing all alterations of default widgets in 
> javascript we should ship new widget sets alltogether. 
> This was discussed long ago but nobody seemed to care  we can't really 
> start supporting every css framework out there unless we change the way 
> widgets are generated.
> Going "bootstrap3" with this much FOUC is good for a plugin 
> proof-of-concept but I'd not ship it as a scaffolding application...
>
> On Monday, February 24, 2014 7:12:22 AM UTC+1, Massimo Di Pierro wrote:
>>
>> Can we get rid of web2py-bootstrap3.js? 
>>
>> Do we all these files?
>> web2py.css
>> bootstrap-responsive.min.css
>> bootstrap-theme.min.css
>> web2py-bootstrap3.css
>> web2py_bootstrap.css
>> web2py_bootstrap_nojs.css
>>
>> can we reduce to two:
>> web2py.css
>> web2py-bootstrap3.css
>>
>>
>>
>> On Monday, 24 February 2014 00:09:48 UTC-6, Massimo Di Pierro wrote:
>>>
>>> Added some of the missing files. They were created by Paolo but it was 
>>> my mistake not to post them. They should address most of the issues.
>>>
>>> On Sunday, 23 February 2014 23:51:04 UTC-6, Ron McOuat wrote:

 I found this on Stack Overflow


 http://stackoverflow.com/questions/16214326/bootstrap-dropdown-with-hover

 ul.nav li.dropdown:hover ul.dropdown-menu {
display: block;
 }

 and I find this solution using CSS in the .css file under welcome named

 static/css/web2py_bootstrap_nojs.css but not in any other css file.

 However this file is not included by another file anywhere in the 
 welcome application.

 If this is it I just got lucky is all. :-)

 The Welcome application name header is scrunched up under the menu bar 
 and partially visible lastest Firefox Ubuntu 12.04 LTS

 The web2py menu item (yellow) doesn't open like in 2.8.2

 Ron




-- 
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/groups/opt_out.


[web2py] Re: Change color of grid=SQLFORM.grid(db.abc, user_Signature=False)

2014-02-21 Thread LightDot
Question is a bit vague, yes ;) Like going to a mechanic and saying you 
want your car fixed, without any additional information and without showing 
your car.

Grid is basically a html table, you have borders, rows, columns, fields, 
font colors, etc. etc. If your CSS template is overriding the Bootstrap's 
and web2py's CSS, then there is no magic one liner that will change all 
that back into something else. You need to redefine all CSS values that you 
want changed. This can be done for the grid alone.

I suggest looking at your grid's CSS with a developer tool within your 
browser (all modern browsers have those built in, or you can use a plugin 
like Firebug for Firefox). This will show you which CSS definitions cause 
the color changes and which CSS file are they coming from. Then you can 
override them.

Regards

On Friday, February 21, 2014 5:31:35 PM UTC+1, Austin Taylor wrote:
>
> Really need help with this so if my question isn't clear please let me 
> know and i'll try to rephrase.
>
> On Thursday, February 20, 2014 11:16:50 AM UTC-5, Austin Taylor wrote:
>>
>> I'm currently using a CSS template in my layout, but it changed my grid 
>> spreadsheet to an unreadable color. I've tried playing with the different 
>> css settings with no luck.
>>
>> Is there a way to just change the spreadsheet color? 
>>
>>
>>

-- 
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/groups/opt_out.


[web2py] Re: How to schedule a task to run at the same time every day

2014-02-21 Thread LightDot
In "trunk" refers to the development version of web2py. Basically, it means 
that this feature will be available in the next web2py release, but isn't a 
part of the current 2.8.2. You can check out web2py from google code or 
github if you'd like to use it now - keeping in mind that you'll be using a 
devel version that might include some less tested code, of course.

Regards


On Friday, February 21, 2014 4:54:12 PM UTC+1, John Felps wrote:
>
> Can I use it on the page appadmin/insert/db/scheduler_task?
> If so, where does it go?
> There are no fields called "trunk"
>
> On Friday, February 21, 2014 8:47:15 AM UTC-7, Niphlod wrote:
>>
>> it's a parameter (available in trunk), not an argument.
>>
>> On Friday, February 21, 2014 4:29:35 PM UTC+1, John Felps wrote:
>>>
>>> Thanks for the quick reply. When I try to add 
>>> prevent_drift=True to the args in 
>>> appadmin/insert/db/scheduler_task
>>> I get invalid json
>>>
>>> On Friday, February 21, 2014 8:15:35 AM UTC-7, Anthony wrote:

 As of web2py 2.8.2, you can do:

 scheduler.queue_task(..., prevent_drift=True)

 See http://web2py.com/books/default/chapter/29/04/the-core#Scheduler.

 Anthony

 On Friday, February 21, 2014 9:54:09 AM UTC-5, John Felps wrote:
>
> I have a daily task, scheduled for midnight, with a repeat of 0 and a 
> period of 86400 that has been running daily for about a month, but over 
> time it has drifted so that it starts at nearly 4 am. How do I just tell 
> the task to always start at midnight?
>


-- 
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/groups/opt_out.


[web2py] Re: Running a web2py command after sleep

2014-02-17 Thread LightDot
Err... don't do this like you did :) There are some "do's" and "don'ts" in 
the programming books and you've touched most of the "don'ts" with your 
code.

Use the scheduler:
http://web2py.com/books/default/chapter/29/04#Scheduler

You'll also most likely be using ajax to poll the database and check if the 
task has finished in order to make your front-end perform something. Once 
you have some code in place, don't hesitate to ask more questions if you 
get stuck. Sheduler has also been discussed a lot in the past, so the 
group's search will help you too.

Regards


On Monday, February 17, 2014 12:28:59 PM UTC+1, Robin Manoli wrote:
>
> Hey, I would like to create a background timer, and when it finishes I 
> would like web2py to do something.
>
> I have tried numerous ways to do this, without succeeding. The closest one 
> to success looked like this:
> 1. import urllib; urllib.urlopen(url).read() # read url which is a php 
> script that calls a python script that sleeps
> 2. url is a php script that calls a python script that sleeps inside thread
> 3. the php script uses exec("/path/to/script.py &") which goes in the 
> background
> 4. when I access the php url from my browser the web server answers 
> instantly, which is why I thought it would succeed
> 5. when I access the php url from python/web2py however, as in the code 
> above, it waits until after the sleep, which causes a timeout
>
> Note that web2py is using apache webserver in my case.
>
> I have also tried to sleep inside a thread in web2py, calling the script 
> through a subprocess from web2py, but nothing has worked.
>
> Is there any way to run a web2py command after a customly chosen 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/groups/opt_out.


[web2py] Re: logout error

2014-02-17 Thread LightDot
 Keep in mind that redirect() is an equivalent to raising an HTTP(303) 
exception. In other words, an intentional exception is raised to create a 
redirect.

Looks like it's your own code doing a traceback and creating an error page 
on every exception, including the cases of the intentional redirect(), 
which is not what you want.

Regards


On Monday, February 17, 2014 8:23:57 AM UTC+1, ajith c t wrote:
>
> Hi Massimo, there is one more thing, it seems that the redirect problem is 
> not only with my login function. Every function where I use a redirect call 
> from my controller results in a error page with a log as 303 error.
>
> File "/srv/trustvouch-fe/applications/app/controllers/default.py", line 
> 480, in mrtusrMgr
> form = crud.update(db.tv_auth_users, request.args(1), 
> next=URL('mrtusrMgr'))
>   File "/srv/trustvouch-fe/gluon/tools.py", line 3906, in update
> redirect(next)
>   File "/srv/trustvouch-fe/gluon/http.py", line 147, in redirect
> Location=loc)
> HTTP: 303 SEE OTHER
>
>
> File "/srv/trustvouch-fe/applications/app/controllers/reportmgr.py", line 
> 85, in options
> redirect(URL('reportmgr', 'list'))
>   File "/srv/trustvouch-fe/gluon/http.py", line 147, in redirect
> Location=loc)
> HTTP: 303 SEE OTHER
>
>
>
> On Monday, 17 February 2014 11:57:29 UTC+5:30, ajith c t wrote:
>>
>> Sorry Massimo,  I commented both the requires_login() and 
>> requires_permission() for both dashboard() and my index() functions, still 
>> the error is same.
>>
>> 2014-02-17 06:12:42,411 - ERROR - app - Traceback (most recent call last):
>>   File "/srv/trustvouch-fe/applications/app/controllers/default.py", line 
>> 25, in login
>> form = auth.login()
>>   File "/srv/trustvouch-fe/gluon/tools.py", line 2393, in login
>> redirect(next, client_side=settings.client_side)
>>   File "/srv/trustvouch-fe/gluon/http.py", line 147, in redirect
>> Location=loc)
>> HTTP: 303 SEE OTHER
>>
>> got no idea on this. 
>>
>> On Sunday, 16 February 2014 13:35:20 UTC+5:30, Massimo Di Pierro wrote:
>>>
>>> Sorry I mean here:
>>>
>>> @auth.requires_login()
>>> @auth.requires_permission(request.function)
>>> def dashboard():
>>>
>>> you should NOT have both. Perhaps this was causing the problem?
>>>
>>> On Saturday, 15 February 2014 09:15:18 UTC-6, ajith c t wrote:

 Hi Massimo, 

  Thanks for the reply, but sorry to say this, but I didn't 
 understand what you meant there, which function should have both. I wanted 
 every user to have login and logout functions, thats why I didn't add 
 auth.permission for them.   And can you explain why it is giving 303 
 error. 
 Is it something with the redirect(next).

 On Thursday, 13 February 2014 18:16:27 UTC+5:30, ajith c t wrote:
>
>
> Hi ,
>   I am using web2py 2.5.1-stable+timestamp.2013.06.06.15.39.19 in my 
> production environment. I know it is old but thinking about the mysql and 
> other folders and files structure changes I am little hesitant to update 
> it. My problem is this.
>
> My logout function doesn't work properly.  
>
> # Login function
> def login():
>   
>   try:  
> logger.debug("login page")
> form = auth.login()
> return dict(form = form)
>
>   except Exception,e:
> logger.error(traceback.format_exc())
> redirect(URL(errorpage))
>
> @auth.requires_login()
> def index():
>
> try:
> if auth.has_membership('root'):
> logger.debug(auth.user.first_name + ": logged in")
> redirect(URL('default', 'usrMgr')) 
> else:
> logger.debug(auth.user.first_name +": logged in")   
>
> redirect(URL('dashboard'))
> 
> except Exception,e:
> logger.error(traceback.format_exc())
> redirect(URL(errorpage))
>
> @auth.requires_login()
> @auth.requires_permission(request.function)
> def dashboard():
>
>   try:
> logger.info("dashboard")
> ###Some Code###
>   except Exception,e:
> logger.error(traceback.format_exc())
> redirect(URL(errorpage))
>
>  def logout():
>  
>try:
>  logger.debug("logout")
>  auth.logout(next=URL(r=request, c='default', f='login'))
>  return dict()
>except Exception,e:
>  logger.error(traceback.format_exc())
>  redirect(URL(errorpage))
>
>
> The behavior is different in different browsers. In Chrome when I 
> select logout from the dashboard page, it remains in the same page. When 
> I 
> select the developer tools and check the network the urls are logout, 
> login, dashboard in order and its loaded from cache. But there is no 
> problem in firefox.
>
> My problem is the

[web2py] Re: Reaching pages by a descriptive pagename

2014-02-10 Thread LightDot
What you're looking for is called a "slug". Web2py makes it really easy, 
since it already has a validator that can create a slug:
http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=is_slug

Last time I implemented this was for a concert site, creating a slug from 
the concert name, location, etc. Then I used the precreated slug together 
with the concert id in the URL args, displaying something like 
domain.com/concert/917/artist-city-date-venue-something-something-etc. to 
visitors. Basically, the id is needed, the rest is just there for the show 
(and SEO).

Regards


On Monday, February 10, 2014 4:44:48 PM UTC+1, BlueShadow wrote:
>
> Hi I would love if I could reach my Articles not only by this type of URL: 
> www.mydomain.com/Article?id=112 but also by this type of URL: 
> www.mydomain.com/Article:Title-of-the-Article (or something similar I 
> just want to have the Title of that Article in the URL). Is there an easy 
> way to do this? The old URLs still have to work! I would love to have a 
> redirect to my new type of URL.
> Thanks for your 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/groups/opt_out.


[web2py] Re: recovering from crash

2014-02-10 Thread LightDot
Sure, shouldn't be complicated either, assuming your database definitions 
and the actual database structure is the same.

Restore your database and it's contents, restore the web2py code and then 
all that is left is to rebuild the web2py's database metadata. Take a look 
at fake migrations in the book: 
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer?search=fake_migrate

Regards

On Monday, February 10, 2014 11:41:25 AM UTC+1, rif wrote:
>
> Hi guys,
>
> If I lost the content of datatbases directory can I restore a web2py 
> application having only the pg_dump of the application datatbase?
>
> -rif
>

-- 
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/groups/opt_out.


[web2py] Re: SQLFORM.grid, how to edit non-visible field in the onvalidate function?

2014-02-07 Thread LightDot
Hello Marty,

On Saturday, February 8, 2014 6:55:26 AM UTC+1, A36_Marty wrote:
>
> I've given up on trying hide a field in the grid yet still be able to see 
> and modify it in the onvalidation route.
>
> I tried for a few hours to achieve the same via custom forms by using 
> hidden={'fieldname':value}.  I could see the hidden field in the validation 
> function of the custom form, but couldn't get the value in the storage 
> fields to make it back to the database. (..cut..)
>

You're probably not missing much here. The SQLFORM does not process hidden 
fields automatically, that's a security measure. You need to manually 
transfer such values from request.vars back into form.vars, for example:

form=SQLFORM() 
form.vars.field_hidden=request.vars.field_hidden 
if form.accepts() 

Keep in mind that hidden form fields can be altered by the user. You have 
no guarantee what the value of the hidden field is after you've received it 
back.
 

> I'm just a hobbyist, trying to learn, but am fast thinking I should just 
> stick to spreadsheets / this is proving to be over my head.
>

Nah, keep at it! :) Sure, some issues will take time to troubleshoot, but 
it gets easier after every one. Web2py is very intuitive and the Web2py 
Book, this group, slices, etc. are great resources.

Regards

-- 
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/groups/opt_out.


[web2py] Re: How to reset authentication?

2014-02-07 Thread LightDot
Looks like web2py thinks that your main database structure is different 
than it really is. With other words, database migrations are broken for 
your app. That's why auth works if you start with a fresh database and 
doesn't if you use the existing one.

Since you've been replacing one database with another (to test auth, etc.), 
how did you handle database migrations in web2py? Migrations are described 
here:
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Migrations

What I would do:

1) if there was important data in the main database: check the differences 
between the database definitions and your current main database structure, 
sort that out using fake migrations (refer to Fixing broken migrations 
chapter in the book)

2) if there was no need to keep the old data from the main database:
a) drop all tables from the main database
b) delete all files from the applications/yourapp/databases folder 
(assuming there are no sqlite databases in there that you still need)

Regards


On Friday, February 7, 2014 10:07:15 PM UTC+1, Austin Taylor wrote:
>
> Thanks, Massimo. Whenever I click register I get some new unknown column 
> 'modified_by' in the field list (error 1054).
>
> I have tried manually adding each field whenever I get new errors, but I'm 
> tired of it and just want to start over.
>
> I restored the views and controller to the default, but still get errors. 
> When I create a new app and just use SQLite instead of mysql the register 
> function works great. It also works well when I use it with another 
> database in MYSql, but if I use it with my main database I run into issues.
>
> On Friday, February 7, 2014 1:50:54 PM UTC-5, Massimo Di Pierro wrote:
>>
>> Hard to help you without seeing the cod or the error tickets. There 
>> should be no difference between auth in sqlite or mysql. You should not 
>> save auth info a different database else you lose the ability to join the 
>> auth_user table with other tables and that is often an important 
>> requirement.
>>
>> On Thursday, 6 February 2014 06:38:26 UTC-6, Austin Taylor wrote:
>>>
>>> I've tried creating another app and authentication works fine there with 
>>> the sqlite database, but when I try to use my mysql instance I run into 
>>> error after error.
>>>
>>> Right now I have Login, Forgot Username and Lost Password when I hover 
>>> over the login button. I don't know how to get it back to the default of 
>>> just register/lost password/login.
>>>
>>> I have no idea where the code could be that messed up my registration. 
>>> It was initially working but I tried creating another registration script 
>>> that seems to have messed everything up.
>>>
>>> I tried removing the script and creating a new app and cloning the 
>>> models/controllers but the old registration form which request a username 
>>> still pops up.
>>>
>>> Any help would be greatly appreciated!!
>>>
>>

-- 
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/groups/opt_out.


[web2py] Re: Dreamhost deployment

2014-02-07 Thread LightDot
What kind of access do you have, is it a VPS or a shared hosting, etc.? Did 
you try their user support?

Regards


On Friday, February 7, 2014 2:37:08 AM UTC+1, sasogeek wrote:
>
> how do I install python 2.7 and web2py on dreamhost with a windows 
> environment? I looked at the dreamhost wiki but their tutorial assumes 
> installation from a linux environment... 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/groups/opt_out.


[web2py] Re: Satchless and web2py for e-commerce?

2014-02-04 Thread LightDot
I don't think EStore is using Satchless, or am I missing something... It's 
late over here, I wouldn't be surprised :)

Regards


On Wednesday, February 5, 2014 4:00:31 AM UTC+1, samuel bonill wrote:
>
> yes, look :
>
> https://github.com/mdipierro/web2py-appliances/tree/master/EStore
>
> El martes, 4 de febrero de 2014 06:31:45 UTC-5, Michele Comitini escribió:
>>
>> This project seems interesting to build e-shops with.
>>
>> http://satchless.com/
>>
>> Has anyone tried it coupled with web2py?
>>
>> mic
>>
>

-- 
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/groups/opt_out.


Re: [web2py] Re: Setting up examples (views/controllers)

2014-02-02 Thread LightDot
Basically, the files you need to have are:

applications/kand/controllers/template_examples.py
applications/kand/views/template_examples/variables.html

Then simply visit http:127.0.0.1/kand/template_examples/variables

Post your current directory structure if you can't get it to work. There is 
no point in us guessing.

Regards


On Monday, February 3, 2014 3:17:25 AM UTC+1, Austin Taylor wrote:
>
>
> 
> Tried that here is the result: 
>
> On Sunday, February 2, 2014 8:54:25 PM UTC-5, Ovidio Marinho wrote:
>>
>> 1) in Views:
>> 2) Remove views/views/template_examples/variables.html
>> 3) create template_examples/variables.html 
>>
>> Only.
>>   
>>
>>
>>  Ovidio Marinho Falcao Neto
>>   ITJP.NET.BR  
>>  ovid...@gmail.com
>>  itjp@gmail.com
>>  Brasil
>>   
>>
>>
>> 2014-02-02 Austin Taylor :
>>
>>> 
>>>
>>>
>>> On Sunday, February 2, 2014 8:44:47 PM UTC-5, Ovidio Marinho wrote:
>>>
 in views:

 create template_examples/variables.html no 
 views/template_examples/variables.html, 
 but is views/views/ template_examples/variables.html.

   


  Ovidio Marinho Falcao Neto
   ITJP.NET.BR  
  ovid...@gmail.com
  itjp@gmail.com
  Brasil
   


 2014-02-02 Austin Taylor :

>  Same error: invalid function (views/template_examples)
>
>
> On Sunday, February 2, 2014 4:03:24 PM UTC-5, Massimo Di Pierro wrote:
>>
>> The view should be
>>
>> views/template_examples/variables.html
>>
>> On Sunday, 2 February 2014 11:21:30 UTC-6, Austin Taylor wrote:
>>>
>>>
>>> I've tried some of the examples on the site and created a function 
>>> in my controllers folder.
>>>
>>> Controllers folder I have template_examples.py with a function 
>>> called:
>>> def variables():
>>> return dict(a=10, b=20)
>>>
>>> In my views folder I have variables.html with this code:
>>> {{extend 'layout.html'}}
>>> You variables
>>> a={{=a}}
>>> a={{=b}}
>>>
>>> I try to navigate to 127.0.0.1:8000/myapp/template_
>>> examples/variables.html and I get:
>>>
>>> invalid function (template_examples/variables)
>>>
>>> I'm new to web developing with web2app and am trying to understand 
>>> the basic layout, so I might have missed a step or need to add 
>>> something 
>>> else. I've also tried restarting the server. Any thoughts on what I 
>>> could 
>>> be missing?
>>>
>>  -- 
> 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+un...@googlegroups.com.
>
> For more options, visit https://groups.google.com/groups/opt_out.
>

  -- 
>>> 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+un...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>

-- 
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/groups/opt_out.


[web2py] Re: Css cache problem

2014-01-24 Thread LightDot
I saw your original message Don't know why it disappeared, though!

I remember there were other similar reports (very seldom, mind you) a while 
ago, of messages disappearing or not even being posted to the group. I had 
this happen to me once, perhaps a year ago or so. AFAIK, just a glitch in 
the Skyn... khm.. Google. :)

Regards

-- 
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/groups/opt_out.


[web2py] Re: DAL definition when NOT deployed on localhost ? PythonAnywhere for example...

2014-01-23 Thread LightDot
AFAIK, the server name should be mysql.server, not 
username.pythonanywhere.com. The rest seems correct, including the 
username$default for the db name, which might seem odd to some.

BTW, localhost is often used for a server name on various hosting 
providers, meaning that you are making a local connection to the mysql 
server that runs on the same host as your app. Remote connections to mysql 
servers are often blocked for extra security. I have never seen "localhost" 
used for a database name, as that would be confusing.

Regards


On Thursday, January 23, 2014 4:48:56 AM UTC+1, NeoToren wrote:
>
> I have managed to deploy to *PythonAnywhere* (*PA*) the MySQL database in 
> a matter of minutes!
> Then I have re-created the Web2Py , uploaded and installed my application 
> from the localhost - literally 5 minutes !!
> The familiar Web2Py interface was ready like a charm...so the description 
> of PA in the W2P book as the simplest solution was correct...
> Life is good...All is great ...EXCEPT...
>
> What should be the *DAL - database connection  definition* when *NOT* *on 
> a localhost *?
> The definitions from the local machine obviously need to change. So I have 
> tried on PA in db.py:
>
> db = 
> DAL('mysql://*username:mysqlpassw...@username.pythonanywhere.com/username$default
>  
> '*
> )
>
> *username* = the PA username (tried *root* - of course didn't  work)
> *mysqlpassword* = the pwd for the mysql instance at PA
> *username$default = * the database name which is equal to... 
> *username$default 
> *(tried *localhost* which didn't work)
>
> The above doesn't work and W2P cannot connect to MySQL...
> I must be doing something really stupid since I am a newbie with W2P and 
> PA...
> Any ideas ? 
>

-- 
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/groups/opt_out.


[web2py] Re: Css cache problem

2014-01-18 Thread LightDot
Hi and welcome!

If you look at the source of the page in a browser, do you see the 
static_version inserted as a part of the path to your css? It should be 
something like /static/_1.1.4/css/somecssfile.css.

After a change to 1.1.5, the path should change to 
/static/_1.1.5/css/somecssfile.css.

Do you see this happen?

Regards


On Saturday, January 18, 2014 12:34:17 PM UTC+1, Sébastien Loix wrote:
>
> Hi,
> I'm new to web2py and just learning the framework.
>
> I have an issue with my CSS static file which is not reloaded by the 
> browser in local.
> I have read thread about versioning of static files but it doesn't seem to 
> solve the problem. Probably I don't it correctly.
>
> Here is the line set in my db.py model:
> response.static_version = '1.1.4'
>
> Then each time I make a change in my css, I upgrate the number. But then 
> even after 5 refresh of the page the old css is shown (I guess the cache).
> Is there a way to completely deactivate cache in production?
> Thank for any help!
> Regards,
> Sebastian
>

-- 
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/groups/opt_out.


[web2py] Re: Bootstrap3 package - help to test

2014-01-15 Thread LightDot
Hm. I expected a flurry of responses by now. I haven't been able to work on 
this since Christmas, but... come on, anyone?? :) I would think a 
possibility of Bootstrap 3 and Zorb Foundation 5 welcome apps would draw 
crowds...

Anyway, layout.html:
- web2py.css needs minor adjustments as there are no .main, .footer, 
.footer-content and .header in layout anymore (btw, .push is also obsolete, 
it disappeared almost 2 years ago, when skeleton.css was replaced by 
bootstrap)
- I did not test this part, but changes in regards to modernizr.custom.js 
and respond.js seem appropriate. I would suggest a free CDN instead of 
maxcdn.com, though. How about 
cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.js ? We could 
suggest the same for Modernizr 
(cdnjs.cloudflare.com/ajax/libs/modernizr/2.7.1/modernizr.min.js) and 
remove it from static/js

web2py-bootstrap3.css, web2py-bootstrap3.js, bootstrap3.py:
- I see no issues so far, admittedly my tests were in no way extensive

licenses:
- IANAL, so this being my personal and layman opinion, chosen licenses seem 
correct for all intended purposes.

I'll try and do more tests soon.

Regards


On Monday, December 23, 2013 9:20:48 PM UTC+1, Paolo Caruccio wrote:
>
> I just completed a package that applies the bootstrap3 style to some 
> web2py elements - the current version covers the navigation menus, the auth 
> navbar and SQLFORMs (via formstyle) - but I need your help for testing it.
>
> The package includes the following files:
>
>  - bootstrap3.py
>  - web2py-bootstrap3.css
>  - web2py-bootstrap3.js
>  - example of layout.html
>  - a readme file containing the istallation and usage instructions
>  - license (please report if the license is right for a future inclusion 
> in web2py)
>
> Here attached some screenshots and a web2py app with examples. 
>
> Thank you in advance for your feedbacks, suggestions for optimizing the 
> code and any additions and everything else useful to improve the package.
>
> Marry Christmas. 
>
>

-- 
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/groups/opt_out.


Re: [web2py] Compile app from command line

2014-01-13 Thread LightDot
Looking at your python version, you're running a RHEL 5 (or a derivative, 
such as CentOS). Just a word of caution if you decide to attempt updating 
the OS python's version - search the net for previous experiences. It's not 
straightforward, as other important parts of the OS depend on it (ie. yum, 
etc.).

You might want to look into other possibilities, such as using python 2.6 
from EPEL repository. This solution also has virtualenv available.

Regards


On Tuesday, January 14, 2014 1:08:23 AM UTC+1, Wonton wrote:
>
> That must be the problem. Both versions are very different. My local 
> version is 2.7.5 (default, Aug 25 2013, 00:04:04)  and the server version 
> is 2.4.3 (#1, Jun 18 2012, 08:55:23). I will try to update the server 
> versionand see what happens.
>
> Thank you very much Ricardo!
>
> On Tuesday, January 14, 2014 12:52:02 AM UTC+1, Ricardo Pedroso wrote:
>>
>> On Mon, Jan 13, 2014 at 11:08 PM, Wonton  wrote: 
>> > Hello everyone, 
>> > 
>> > I'm compiling my local apps with this command: 
>> > 
>> > python -c "import gluon.compileapp; 
>> > gluon.compileapp.compile_application('applications/')" 
>> > 
>> > And everything is working well. But when I try to do the same thing in 
>> the 
>> > server (as admin), in the production environment I get this error: 
>> > 
>> > Traceback (most recent call last): 
>> >   File "", line 1, in ? 
>> >   File "gluon/__init__.py", line 15, in ? 
>> > from globals import current 
>> >   File "gluon/globals.py", line 17, in ? 
>> > from storage import Storage, List 
>> >   File "gluon/storage.py", line 73 
>> > return value if not value else \ 
>> >   ^ 
>> > SyntaxError: invalid syntax 
>>
>> Probably a python version mismatch. 
>>
>> What python version do you have when run it from the shell? 
>> Can be checked with: 
>>
>> $ python -c "import sys;print sys.version" 
>>
>>
>> Ricardo 
>>
>

-- 
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/groups/opt_out.


[web2py] Re: How not to update data on live version.

2014-01-12 Thread LightDot
This can be very simple or complex, depending on if you made any changes to 
the database structure or its access information.

Assuming you didn't change anything about your database, the solution is to 
simply don't upload your applications//databases folder.

You really should read about database migrations in the web2py book and 
provide more information when asking such questions, ie. the database type, 
etc.

Regards

On Sunday, January 12, 2014 11:20:08 AM UTC+1, Avi A wrote:
>
> Hi,
> Assuming i got my local version, which I want to upload to the live 
> version.
> How do I make the updating without overwritng/updating the db on the live 
> version?
> 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/groups/opt_out.


[web2py] Re: wrong version of web2py book on dropbox

2013-12-30 Thread LightDot
My understanding is that:
- github repo for the book app has the latest content
- the online book app is somewhat regularly updated from the github repo
- the pdf is generated only when the actual book gets published.

So once the 6th edition gets out, the pdf will reflect this, not before.

Regards

On Monday, December 30, 2013 4:39:26 AM UTC+1, Pystar wrote:
>
> Hello Max,
> The web2py online book shows its a 6th edition, pre-release version but on 
> clicking "download the pdf version" from dropbox, its the 5th edition that 
> gets downloaded.
>

-- 
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/groups/opt_out.


[web2py] Re: login crash under 2.8.2

2013-12-24 Thread LightDot
Ok, so you're using one mod_wsgi / web2py instance and map virtualhosts 
into specific apps within. Looks like a neat solution, but it seems to be 
problematic in the same way Leonel is describing for the Windows 
environment. Basically, different virtualhosts under the same 
WSGIDaemonProcess have issues with sessions...

We use a separate web2py and a seperate WSGIDaemonProcess for each 
virtualhost, that's why we didn't experience problems...

As for centos - sure, I think it's a great choice. Any good RHEL 
derivative, for that matter. We've been using Scientific Linux 6 and CentOS 
2, 3 and 5 before that. RHEL derivatives do a great job for us. I'm not 
saying other distros aren't suitable, it's just that these tick all the 
boxes for us.

Regards


On Tuesday, December 24, 2013 1:01:45 PM UTC+1, lucas wrote:
>
> ok, so centos 6x is the way to go for the most stable, reliable, etc., in 
> excellence of computing?  that is what you are saying, because i really 
> love centos and have been using it for years.  but i have been doubting my 
> httpd.conf setups for a while because all of those settings and then add in 
> VirtualHosts and it gets pretty mind boggling.  so i really really 
> appreciate a proof of my config files and let me know what could be 
> unstable.  so here they are as attachments.  i primarily tried not the 
> change httpd.conf much at all and put most of it under conf.d, so the other 
> trhee attachments would be under conf.d.  i have multiple files like 
> weinstruct.conf, just changed slightly for that one is my boilerplate for 
> the other domains.
>
> thanx for the help and the advice in advance.  lucas
>

-- 
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/groups/opt_out.


[web2py] Re: login crash under 2.8.2

2013-12-23 Thread LightDot
Apache and mod_wsgi under CentOS 6.x (or any other RHEL derivative, like 
Scientific Linux) tick like a clock. We us this combo for web2py almost 
everywhere.

Are you using mod_wsgi as a deamon? Have you set up different process 
groups, users etc. for different virtual hosts? You could post the relevant 
parts of your virtualhost configs if you wish.

Regards

On Monday, December 23, 2013 2:23:04 PM UTC+1, lucas wrote:
>
> oh yeah, i forgot to mention.  i am running multiple domain names and i am 
> using VirtualHost under apache to redirect to the proper web2py 
> application.  could that be the problem?  i am using the session as files, 
> i like that better then the DB option because, well, i just like it because 
> it is more direct from a developer point of view to just access the file 
> directly if need be.  wouldn't it be faster also?
>
> anyway, i didn't understand all of that business with the __getstate__ and 
> such.  that is way deep for me without knowing much more about the inner 
> workings of python.  not that i am adverse to learning them, i am just not 
> that intimate with python yet.  so i will have a learning curve with this 
> bug and thread.
>
> On Monday, December 23, 2013 8:00:16 AM UTC-5, Leonel Câmara wrote:
>>
>> No it's not wrong to use apache and wsgi, although there are better 
>> options if you use Linux, in my experience there's only a problem if you're 
>> running it on ms windows and you have more than one web2py instance as they 
>> share the same embedded mod_wsgi.
>>
>
> does apache under centos do such a thing?  run multiple web2py instances 
> while sharing the same mod_wsgi? 
>

-- 
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/groups/opt_out.


[web2py] Re: auth.is_logged_in(), @auth.requires_signature() behaving ornery in CORS situation

2013-12-21 Thread LightDot
You could also programmatically enforce the usage of ssl across the entire 
site. Your ajax call would always be https -> https, making CORS 
redundant...

Regards

On Saturday, December 21, 2013 3:44:51 PM UTC+1, weheh wrote:
>
> I am dead in the water trying to make an https ajax call from an http 
> session. CORS is enabled on server. The web2py_component https URL with 
> user_signature=True triggers a False auth.is_logged_in() when, in fact, the 
> user is logged in. Oops, a total show stopper.
> ...
>

-- 
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/groups/opt_out.


[web2py] Re: Can't edit default.py after upgrade to 2.8.2

2013-12-16 Thread LightDot
Hm. It should be looking for 
"/admin/static/_2.7.3/codemirror/lib/codemirror.css", 
so _2.7.3 and not -2.7.3.


I don't think this dash is a direct typo in the web2py code. A rewrite rule 
somewhere, regex gone wrong?

BTW, the number there is only indirectly related to the web2py version, it 
isn't the problem in itself. It's this feature in effect:
http://web2py.com/books/default/chapter/29/04/the-core#Static-asset-management
 
Regards


On Monday, December 16, 2013 5:31:49 PM UTC+1, jc wrote:
>
> Same problem for me using Chrome and Midori on Linux after upgrading to 
> 2.8.2 However I try to launch the editor I get a blank screen. In the java 
> console I get a load of this type of error:
>
> GET http://
> 127.0.0.1:8000/admin/static/-2.7.3/codemirror/lib/codemirror.css 404 (NOT 
> FOUND)
>
>
> So although I am on 2.8.2 the system is looking for files in 2.7.3.
>
> I have deleted browser cache (and tried a different browser), deleted 
> sessions in admin. I'm sure there's a simple fix. Anybody know what it is?
>
> Thanks.
>
>
> On Friday, 13 December 2013 09:27:04 UTC, Richard Brown wrote:
>>
>>
>> Another update... today I cannot open *any* files for Editing- including 
>> views - in either Chrome, IE or Torch. And on another PC.
>>
>> All files can be opened for viewing.
>>
>> I have attached the output from Inspect Element and the Debugger as I 
>> load the page.
>>
>> 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/groups/opt_out.


[web2py] Re: help-block in Bootstrap forms

2013-12-13 Thread LightDot
Most of the work already done on bootstrap 3, foundation 5, etc. can be 
reused. The DOM manipulating parts are also bound to be useful - as an 
example of what can be done, if nothing else.

I'm using the plugin_layout_ functionality to keep bootstrap 2 & 3, 
bootswatch 2 & 3 and foundation 5 playing along within a single app. I'm 
aiming for slightly different bs2, bs3, foundation5, etc. welcome apps, 
that can be packed as plugin_layout_ and updated as someone needs 
them.

About the other part of the equation - the support for different CSS 
frameworks from within gluon or contrib - there was a discussion about how 
to implement all this a while ago and I think we really ought to finish 
it...

My thoughts as far as functionality goes:
- user would set a global variable (ie. styleserializer=bootstrap3 ..or 
bootstrap2, foundation5 or some other predefined style) and thus define the 
serialization of menus, forms, tables, grid, flash messages, etc. all in 
one place
- existing menu, formstyle, etc. functionality stays, this is needed for 
backward compatibility and is also useful. User could ie. use the global 
variable to set everything to bootstrap3, then override the formstyle 
setting for one specific form to, let's say, bootstrap3-inline.

All that is left for a user is to drop in a correct welcome app and voila, 
foundation 5 or bootstrap 3 based web2py.

The implementation is something I'm not clear about. Should everything be 
kept in gluon, as it is now..? Should old formstyles (table3cols, etc.) 
stay within gluon, while bootstrap, bootstrap3 (it's already done, since 
recently) and future ones get moved to contrib?  Should MENU() be 
deprecated, keeping it as is, or should it be extended to accomodate more 
CSS frameworks? Perhaps a new menu function altogether, in contrib?

What else am I not thinking of..?


On Saturday, December 14, 2013 12:50:04 AM UTC+1, Paolo Caruccio wrote:
>
> Thank you Niphlod. I see what you mean. I'll try to convert my code in 
> order to build a custom formstyle. However, I'll share my code with the 
> web2py users group: maybe it could be useful to someone. 
> About the menu, I have in my mind a simple change to the MENU helper that 
> should semplify its customization client side (jquery and css) but I have 
> to investigate more on this.
> Anyway, the menu complexity is due to lack of support for multilevel 
> submenus. If we need a single level menu there's no need to modify the 
> web2py code. 
> For the sake of completeness, Foundation framework supports the multilevel 
> menu, but its css breaks the web2py calendar css. 
> It seems that every css framework has its own Achilles' Heel.  
>
>
> Il giorno venerdì 13 dicembre 2013 20:33:40 UTC+1, Niphlod ha scritto:
>>
>> IMHO there's no point on having web2py serializing by default a structure 
>> (response.menu) to a string (the html markup) and then reparse it back to a 
>> structure (elements) to move a few pieces back and forth and then 
>> reserializing those pieces back to html markup. It's just a waste of cpu.
>>
>> The way to go NEEDS to be modules with overrides, not server-side DOM 
>> manipulations...
>> I agree that right now you can only act on the MENU() function, but a way 
>> must be figured out to avoid serverside DOM parsing or we'll soon face an 
>> untouchable MENU() that can't accomodate for new features 'cause there are 
>> lots of code expecting a fixed html markup.
>> Same goes for forms and widgets: fortunately we have already a formstyle 
>> that takes a callback, but I don't see why noone is coming up with a new 
>> set of widgets that override the default one composing the html elements 
>> the way they are supposed to be in the first place
>>
>>

-- 
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/groups/opt_out.


[web2py] Re: abaut python 2.x and web2py lifetime

2013-12-09 Thread LightDot
If the future python support is the main issue, than I'd say you're 
worrying without any need. Support for python 2.x won't simply go away in 
two years, other maintainers will take over if it comes to that. If nothing 
else, Red Hat has taken on a serious commitment to support python 2.x for a 
long long time:

- RHEL 5 ships with python 2.4.3 and will be supported until Q1 2020
- RHEL 6 ships with python 2.6.6 and will be supported until Q4 2023
- RHEL 7 will ship with python 2.7.x and will be supported for 13 years 
after its release (so until 2027, if it ships next year)

I would ask myself:
- does python 3.x bring any advantages that you absolutely must use?
- how much of your future python 2.x code would a) be supported for longer 
than 2027 and b) require a large rewrite to switch to 3.x (can you keep 
your code both 2.x/3.x compatible, or reasonably close)?

A strong "yes" to the first question wold make me *choose* another 
framework. A possibility of the large rewrite would make me *consider*another 
framework.

That being said, we use RHEL for our customers and web2py is our framework 
of choice for our current and future projects. YMMW.

Hope this helps a bit.

Regards


On Monday, December 9, 2013 4:04:09 PM UTC+1, Carlos Cesar Caballero Díaz 
wrote:
>
>  Hello, I've been using web2py for some time, but being close to begin 
> what would be by far the most serious project of my life, has made me 
> wonder, as if support for 2.7 version of python ends in 2 years (maybe a 
> little more), what will happen to web2py when there is no more python 2.x 
> support?
>   Some months ago, I read that it was hardly working on web3py (will 
> substitute web2py in python 3.x), which makes me worry.
>
>  I read that one of the main problems was that not many people offering to 
> help, 
> so I can give a hand, I'm not super programmer, but I took a few years 
> with python and I like to help those who help me. 
>

-- 
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/groups/opt_out.


[web2py] Re: web2py 2.8.1 -> What would db().select().as_tree()? Has example?

2013-11-28 Thread LightDot
This was announced in this thread:

https://groups.google.com/d/msg/web2py/bsGZ4lp-gz4/4olaBq6t7qQJ

Regards

On Thursday, November 28, 2013 12:26:28 PM UTC+1, Meir wrote:
>
> Hello!
>
> Someone could inform the purpose and use of the db()select()as_tree()?
>

-- 
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/groups/opt_out.


[web2py] Re: Theming with Bootswatch

2013-11-05 Thread LightDot
Web2py's Welcome app in trunk already comes with Bootstrap 2.3.2 and 3.0.x 
is planned for the future.

In the mean time, Bootswatch has older versions available at 
https://github.com/thomaspark/bootswatch/tags so you can download a 2.2.2 
version.

As you probably know, Bootswatch's css is a drop in replacement for the 
Bootstrap's css. There is no difference when it comes to the Web2py's 
Welcome application.

Regards

On Tuesday, November 5, 2013 1:30:23 PM UTC+1, clarix wrote:
>
> Hi all,
>
> I would like to use a Bootswatch theme on my web2py application. I notice 
> that web2py uses bootstrap version 2.2.2 while bootstrap has released V 
> 3.0.1. Is there any plan to update to the latest Bootstrap version?
>
> With any Bootstrap version though: is there a straightforward way to apply 
> a bootswatch them effectively without "breaking" anything and having the 
> desired "look"? Or a procedure to follow to accomplish this correctly? 
> Also, if I started from a blank html, what considerations should I take? 
>
> I will appreciate your help. Regards,
>
> 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/groups/opt_out.


[web2py] Re: Web2py freezing on live deployment!

2013-11-04 Thread LightDot
Which version of web2py is it? Are you using gevent or rocket web server?

Can you try load testing your devel version and see if you can replicate 
the issue? You can use something like siege or a similar tool.

Regards


On Monday, November 4, 2013 4:56:32 PM UTC+1, Andrew Buchan wrote:
>
> Thanks Willoughby,
>
> We've got McAffee on that network, so have asked the IT guy to set it to 
> ignore python and web2py folders. Will let you know what the upshot is once 
> that's in place...
>
> Regards,
>
> Andy.
>
> On Monday, November 4, 2013 1:29:23 PM UTC, Willoughby wrote:
>>
>> Are you running Microsoft Endpoint Security?  I have problems with the 
>> virus scanner 'locking up' things under even light usage.  One or two users 
>> can bang all day, no problem but get more than 10 and it randomly freezes. 
>>  Our fix was to exclude pretty much anything Python related.  YMMV.
>>
>> On Monday, November 4, 2013 6:15:56 AM UTC-5, Andrew Buchan wrote:
>>>
>>>  Hi, 
>>>  
>>> I have a serious issue. Got a web2py install running as a service on a 
>>> Windows 2003 box with SQL Server, with applications serving 100s of users 
>>> in-house. We have a live and test application running on the same install 
>>> but pointing to different databases, and due to things not being released 
>>> these have diverged quote a bit over the months. We just managed to 
>>> reconcile these (with carefully supervised migration - one table at a time) 
>>> last week, and the problems started happening. Web2py becomes unresponsive 
>>> after a period of use - it just hangs when you try to load a page. There 
>>> are no errors in web2py, in the event manager, or SQL. Rolling back those 
>>> changes is tricky, as there have been changes to the database and data has 
>>> already been added.. 
>>> When left running over the weekend, its fine. If I try accessing every 
>>> page, it's fine (or at least, I can't break it). If it goes into proper use 
>>> with lots of other people accessing it, it crashes.
>>>  
>>> I don't know how to find out what's going wrong. It's a relatively 
>>> recent build of web2py, and I don't want to upgrade to throw yet another 
>>> variable in there (there also been changes to the server it uses fro its 
>>> mail function, though that seems to work fine, and we just removed IIS from 
>>> the same server).
>>>  
>>> Any ideas why web2py would just freeze?
>>>
>>

-- 
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/groups/opt_out.


Re: [web2py] What is inserting '_2.7.3' into my static url's?

2013-11-04 Thread LightDot
The number doesn't really matter. It's supposed to stay the same until a 
static file's content changes, then it should be changed in order to 
prevent the browser cache to display the wrong file contents.

So it can be 2.7.3 or 19283773.39393.3939393, doesn't matter.

How are you using apache? With mod_wsgi? How exactly? That's what you'll 
need to adjust if the admin doesn't work for you with 
response.static_version enabled.

Regards


On Monday, November 4, 2013 1:53:46 PM UTC+1, Johann Spies wrote:
>
> On 31 October 2013 19:00, Niphlod > wrote:
>
>> it's not a forgotten piece of codeit's there for a reason.
>>
>
> What is the version referring to in admin/0.py/?  It if it supposed to be 
> the current web2py version then it is a piece of forgotten code because in 
> Web2py 2.7.4. it 0.py has 2.7.3 in line 48. 
>
> I have modified that file to response.static_version = '2.7.4'
> but the problem still stays the same:
>
> e.g. /admin/static/_2.7.4/js/calendar.js
>
> And the documentation says that it is not necessary to create a different 
> directory for the current version.
>
> So either I am understanding nothing of this, or this is a mistake in the 
> documentation or the documentation is not clear.
>
> Anyhow it is frustrating.
>
> I am going to comment that line.
>
> What other way is there of solving this problem?
>
> Regards
> Johann
>  

-- 
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/groups/opt_out.


[web2py] Re: 2.7.4 update leaves admin interface rendering strangely

2013-11-01 Thread LightDot
The admin app now uses response.static_version so your solution is not the 
most optimal one. If you need a quick fix, I suggest deleting or commenting 
out the line 48 from current applications/admin/models/0.py, rather than 
moving the files:

https://github.com/web2py/web2py/blob/master/applications/admin/models/0.py#L48

But a proper fix would be to configure your web server to allow this kind 
of static files versioning. You can read about this feature here:

http://web2py.com/books/default/chapter/29/04/the-core#Static-asset-management

Regards


On Friday, November 1, 2013 10:45:23 PM UTC+1, REM wrote:
>
> Well, it's surprising that there's no other report of this, but here goes:
>
> I just upgraded to 2.7.4 in the same way I always do:
>
> * Tarball the old web2py dir
> * download the new web2py_src.zip & unzip elsewhere
> * Copy the new web2py dir straight over the old one
> * chown it as www-data & check permissions
> * serve and enjoy
>
> However, this most recent cycle left the administrative interface 
> rendering as if there were no available CSS. So, I had a look at the source 
> of the admin interface page and saw this:
>
>  type="text/javascript"> href="/admin/static/_2.7.3/css/calendar.css" rel="stylesheet" type="text/css" 
> /> type="text/javascript"> src="/admin/static/_2.7.3/js/web2py.js" 
> type="text/javascript"> src="/admin/static/_2.7.3/plugin_multiselect/jquery.multi-select.js" 
> type="text/javascript"> href="/admin/static/_2.7.3/plugin_multiselect/multi-select.css" 
> rel="stylesheet" type="text/css" /> src="/admin/static/_2.7.3/plugin_multiselect/start.js" 
> type="text/javascript"> href="/admin/static/_2.7.3/css/bootstrap.min.css" rel="stylesheet" 
> type="text/css" /> href="/admin/static/_2.7.3/css/bootstrap_essentials.css" rel="stylesheet" 
> type="text/css" /> href="/admin/static/_2.7.3/css/bootstrap-responsive.min.css" rel="stylesheet" 
> type="text/css" />
>
>
> "Well, that looks peculiar", I thought. There's no such _2.7.3 dir under 
> the admin/static one, and this is supposed to be 2.7.4 anyway. So, I 
> created the _2.7.3 dir, copied everything into it (+chmod+chown, etc), and 
> *viola*, everything was normal again, at it was in the before times, in 
> the long long ago.
>
> So, um.. how is it that I am the only one for whom this has apparently 
> happened thus far? I assure I did nothing to the source but download it as 
> always via wget at about 4PM:
>
> sudo wget http://web2py.com/examples/static/web2py_src.zip
>
>
>
>
>
>

-- 
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/groups/opt_out.


[web2py] Re: Erro ao criar um campo no postgresql via codigo, e excluir manual...

2013-10-31 Thread LightDot
Could you please post in English?

This is an English list and it's impossible to follow either the questions 
or the answers for all of us that don't speak your language.

Thanks and regards


On Thursday, October 31, 2013 7:40:42 PM UTC+1, Carlynhos77 wrote:
>
> ola, percebi fazendo uns testes aqui.. q se eu tirar essa linha:
>
> session.connect(request, response, db=db)
>
> nao aparece o erro, mas tambem nao cria as tabelasrss
>
> essa linha ta logo abaixo a conexao do banco de dados...
>
>
> 
> import psycopg2
> db = DAL('postgres://postgres:123@localhost:5432/saude')
>
> session.connect(request, response, db=db)
>
>
> 
>
>
>
> Em quinta-feira, 31 de outubro de 2013 16h18min54s UTC-2, Carlynhos77 
> escreveu:
>>
>> Ola, boa tarde...
>>
>> Pessoal, o tal do iniciante sobre ne... no meu projeto organizei o codigo 
>> no qual via codigo foram criados as tabelas/campos no banco de dados 
>> postgresql, dai tava tudo funcionando, eu na curiosidade adicionei mas uma 
>> linha para criar mais um campo numa tabela ja existente... verifiquei q o 
>> campo foi criado, dai eu ja dentro do postgresql apaguei esse campo 
>> manual... dai pronto, o sistema nao abre mais... dai eu apaguei todo o 
>> banco, para iniciar a geracao das tabelas, mas dá o erro:
>>
>> Traceback
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>> 10.
>> 11.
>> 12.
>> 13.
>> 14.
>>
>> Traceback (most recent call last):
>>   File "C:\web2py\gluon\main.py", line 461, in wsgibase
>> session._try_store_in_db(request, response)
>>   File "C:\web2py\gluon\globals.py", line 1078, in _try_store_in_db
>> record_id = table.insert(**dd)
>>   File "C:\web2py\gluon\dal.py", line 8781, in insert
>> ret =  self._db._adapter.insert(self, self._listify(fields))
>>   File "C:\web2py\gluon\dal.py", line 1250, in insert
>> raise e
>> ProgrammingError: ERRO:  relação "web2py_session_info_saude" não existe
>> LINE 1: INSERT INTO web2py_session_info_saude(client_ip,locked,modif...
>> ^
>>
>> alguem pode me dizer algo sobre isso?
>>
>>

-- 
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/groups/opt_out.


[web2py] Re: Bootstrap's nav-collapse

2013-10-24 Thread LightDot
What exactly is the problem? Does the downloaded bootstrap behave 
differently than you expect it to?

The bootstrap-responsive.min.css file is missing simply because the 
customized version includes everything in the basic .css file, it's not an 
error.

Regards

On Thursday, October 24, 2013 10:50:03 AM UTC+2, Annet wrote:
>
> In part of my application's views (width: 658px and width: 760px) I want 
> the bootstrap navbar to be always collapsed.
>
> First thing I did is download a customized copy of Bootstrap: 
> http://getbootstrap.com/2.3.2/customize.html
> with @navbarCollapseWidth set to 768, however, the zip file does not 
> include the bootstrap-responsive.min.css file
>
> I searched several workgroups for the solution to this problem, but I did 
> not find any working solution. I hope
> one of you can help me solve this problem.
>
> Kind regards,
>
> Annet
>

-- 
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/groups/opt_out.


[web2py] Re: Code completion: Do I need to install to install web2py from source?

2013-10-20 Thread LightDot
The content of both repositories is identical. I see a trend towards Github 
due to the ease of use of pull requests for contributions. For checkouts, 
Googlecode should be just fine. Contributions in the form of diffs/patches 
attached to the googlecode issues are accepted too, but this seems to be 
encouraged less and less.

Regards


On Sunday, October 20, 2013 1:57:54 PM UTC+2, User wrote:
>
> I see web2py seems to have both mercurial and git repositories.  I'm more 
> familiar with hg but I can get more familiar with git if need be.  Is one 
> preferred over the other?  Any pros/cons with respect to web2py?  Which is 
> path of least resistance?
>  
>
> On Saturday, October 19, 2013 3:13:29 PM UTC-4, Tim Richardson wrote:
>
>>
>>
>> personally, I encourage you to learn about git and using git to download 
>> the source. github will tell you how. Even as a newbie it proves itself to 
>> be very advantageous (like instant access to any version)
>>
>

-- 
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/groups/opt_out.


[web2py] Re: Nothing displayed in edit window

2013-10-20 Thread LightDot
Similar problems have been reported several times in the past week or so. 
Perhaps one of the other threads already has a solution for your issue?

If not, please post your web2py version, if you are using Rocket, OS and 
browser version and anything else that is different then what's reported in 
the other threads.

Regards


On Sunday, October 20, 2013 1:42:07 PM UTC+2, SS wrote:
>
> After logging in as administrator, when I try to edit a file and click 
> edit button, a window opens and nothing is displayed. The screen shot of 
> the window is attached, I get   nothing in the edit window.  I get no 
> errors, just a blank edit window.Anybody have an idea what's causing 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/groups/opt_out.


[web2py] Re: skeleton.css

2013-10-20 Thread LightDot
You seem to be following very old instructions. The skeleton.css used to be 
a part of the welcome application, but it isn't any more.

I strongly suggest following a newer how-to or an up to date web2py book.

Regards


On Sunday, October 20, 2013 12:05:09 PM UTC+2, Hasanov wrote:
>
> Hi. I am new to web2py. Downloaded and began yesterday. I read that there 
> must be skeleton.css in ../static/css folder, but I have only 
> bootstrap*.css, web2py.css, web2py_bootstrap*.css, calendar.css.. Can 
> anyone axplain me how to solve it? Maybe I am doing something wrong. 
> 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/groups/opt_out.


[web2py] Re: gae boilerplate vs web2py

2013-10-17 Thread LightDot
Just to note, Bootstrap is included in the welcome app, not web2py itself. 
The welcome app is a great starting point and I guess 99% of the web2py 
users base their applications on it's code. It gives a nice headstart when 
developing web apps. But web2py itself can also be used with any other CSS 
framework or even without one, as you prefer.

Anyway, I think leaning towards web2py is the right choice. Since you're 
familiar with python, you'll feel right at home. I'd suggest studying the 
welcome app briefly and skimming over the web2py book, then making a small 
app for yourself while going over the web2py book in more detail. You'll 
quickly see if web2py is the right tool for you.

Regards

-- 
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/groups/opt_out.


  1   2   3   4   >