[web2py] Re: 2.4.7 problems

2013-05-30 Thread LightDot
If it's a linux system, it must have an owner. Perhaps it's just called "nobody", or is it a nonexisting user, or...? Could you please describe how do you start web2py, under which user accounts, etc. etc. Regards, Ales On Thursday, May 30, 2013 9:43:28 AM UTC+2, Marian wrote: > > I can confir

[web2py] Re: web2py components and browser history

2013-05-30 Thread LightDot
I'm afraid flakiness remained and I haven't worked on this since. If you come to any new findings, I'd appreciate an update because it looks like I'll be returning to a project with similar needs in a month or two. Regards, Ales On Tuesday, May 28, 2013 3:23:22 PM UTC+2, Jay Martin wrote: > > T

Re: [web2py] web2py Safety discussion

2013-06-01 Thread LightDot
Fail2ban is a popular python program that monitors log files for failed login attempts and blocks "visitors", no need to write a new one from scratch. Assuming you use a linux server, it should be available as a package. It's quite versatile. Regards, Ales On Saturday, June 1, 2013 11:28:03 PM

Re: [web2py] Re: Python 3 compatibility?

2013-06-06 Thread LightDot
There is a lot of individual, anecdotal data in threads like this... For example, I need web2py to provide python 2.6 compatibility for at least another 5 years. I'm going to need python 2.7 compatibility for at least another 10 years if not longer. And I couldn't care less for python 3 compati

Re: [web2py] Re: Python 3 compatibility?

2013-06-07 Thread LightDot
On Friday, June 7, 2013 3:36:49 AM UTC+2, Anthony wrote: > > For example, I need web2py to provide python 2.6 compatibility for at >> least another 5 years. I'm going to need python 2.7 compatibility for at >> least another 10 years if not longer. > > > I don't know if your particular application

[web2py] Re: current.session

2013-06-07 Thread LightDot
On Friday, June 7, 2013 8:58:46 PM UTC+2, Matt wrote: > > Either way, it appears that Request, Response and Session are all just > sort of variable dumping grounds of thread local storage. None of these > classes seem to give me a way to callback (and delete my object) when the > session itself

[web2py] Re: google groups losing posts?

2013-06-10 Thread LightDot
I could see your original post trough the web interface and I still see it, the link to it is https://groups.google.com/d/msg/web2py/8wMlTzRixq0/udOdjEerFeUJ I've seen others mention that posts sometimes disappear and I had this happen once to me... And it was one of the longest posts I've writ

[web2py] Re: Can I have access to the LESS files that generate the welcome app css?

2013-06-17 Thread LightDot
The Bootstrap version included in web2py welcome app is completely stock, straight download from their page, so you can get LESS files from them. At the moment, welcome app is still using Bootstrap version 2.2.2, although 2.3.2 is pretty much a drop in replacement. Regards, Ales On Monday, Jun

[web2py] Re: web2py is not starting with python 3.0/3.1

2013-06-24 Thread LightDot
Web2py is not compatible with python 3.x. Regards, Ales On Monday, June 24, 2013 11:19:15 AM UTC+2, Pradeeshnarayan wrote: > > I am trying to run a web2py application. Using python2.7 it is running > fine. But I want to use python higher version. When I try with python3.0 or > 3.1, am getting a

[web2py] Re: upgrade your own app

2013-06-25 Thread LightDot
The way you describe the environment, it's impossible to bring deterministic automated updates. If you have users customizing views, css, etc., there is bound to be some manual intervention needed if your updates also include views, css, etc. You could use git, mercurial or a similar tool, but

Re: [web2py] IMPORTANT: web2py 2.6.0-development

2013-06-26 Thread LightDot
+1 for considering web2py.js as a part of web2py framework, so users should be requested to update it along with the framework. How about extending this definition and requirement to appadmin..? Also - what happens with old apps that have ancient jquery.js? Will new web2py.js cause a chain of u

[web2py] Re: confused about db.py settings

2013-06-28 Thread LightDot
Well, you have: db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all']) defined, then you initiate auth with: auth.define_tables(username=True, signature=True) which sets up auth tables etc. in the above database. But then you override the previously set db with: db = DAL('sqli

Re: [web2py] Re: confused about db.py settings

2013-06-28 Thread LightDot
> out. > > Thanks > Sure, no problem. Regards, Ales > > On Fri, Jun 28, 2013 at 12:51 PM, LightDot > > wrote: > >> Well, you have: >> >> >> db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all']) >> >&

[web2py] Re: Web2py uploads and downloads

2013-07-01 Thread LightDot
Looks like you're on Windows? Complete path length on Windows is 260 characters max if I remember correctly (including C:\\development...). Regards, Ales On Monday, July 1, 2013 11:38:07 AM UTC+2, Domagoj Kovač wrote: > > I also noticed one more thing, looks like web2py brakes when i try to > u

[web2py] Re: Web2py uploads and downloads

2013-07-01 Thread LightDot
It's explained in the book: http://web2py.com/books/default/chapter/29/07#SQLFORM-and-uploads Basically, the random looking part is the original file name, b16encoded. The "entry", "entry_label" is taken from your database structure. Regards, Ales On Monday, July 1, 2013 12:16:33 PM UTC+2, Dom

[web2py] Re: Strange character encoding after login into administrative interface

2013-07-01 Thread LightDot
I just noticed the same thing yesterday, also using recent trunk (2.6.0-development+timestamp.2013.06.27.07.20.48). If I enter this: REGEX = re.compile('^(\w+).(\w+).(\w+)\=\=(\d+)$') it gets saved properly. But when opened to be edited again, it changes into: REGEX = re.compile('^(\w+).(\w+).

[web2py] Re: LOAD does not work after upgrading to last GIT

2013-07-04 Thread LightDot
Hm. This is probably a good example of things to come when web2py 2.6.x gets released :/ Anyway: https://groups.google.com/d/msg/web2py/UEaJD2osfY0/iN-khcMfrkgJ Perhaps this thread (linked) should be pinned to the top. Regards, Ales On Thursday, July 4, 2013 9:32:33 PM UTC+2, André Kablu wrot

[web2py] Re: Controller function doesn’t presents the view page

2013-07-05 Thread LightDot
You also probably wanted redirect(URL(c='default',f='segunda')) without the .html in the name of the function. Besides this, I can only repeat the question others have put - what's in the view? Regards, Ales On Friday, July 5, 2013 2:36:34 PM UTC+2, ric...@gmail.com wrote: > > Hello all, > >

[web2py] Re: Controller function doesn’t presents the view page

2013-07-06 Thread LightDot
unda.html. > > All this is working until the redirection part. It should send me to > default/segunda.html but instead it just show the starting index.html > page. If I write the url default/segunda.html I can see the correct > information. > > Thank you once again > > R

[web2py] Re: better calendar.js?

2013-07-16 Thread LightDot
Looks nice. Probably worth looking into this... Regards, Ales On Thursday, July 11, 2013 9:26:15 PM UTC+2, Jim S wrote: > > I agree it is nicer and easier to use than the current date/time popup. > Yes, it does support time. Is there a way it could be an optional feature > you could turn on i

[web2py] Re: better calendar.js?

2013-07-18 Thread LightDot
On Wednesday, July 17, 2013 8:28:14 PM UTC+2, Annet wrote: > > I had a look at the datetime picker, I miss the month and year menus and > the week of the year. Month and year menus appear if you click on the "mmm " ("Julho 2013" as it shows in the first demo example). First click shows mont

[web2py] Re: better calendar.js?

2013-07-19 Thread LightDot
On Friday, July 19, 2013 8:59:36 AM UTC+2, Annet wrote: > > Hi Ales, > > Month and year menus appear if you click on the "mmm " ("Julho 2013" >> as it shows in the first demo example). First click shows months, second >> shows years. >> > > I am not sure the visitors of my site will be able

[web2py] Re: ast module

2013-07-19 Thread LightDot
First thing to try in such cases is to import the module (or just run the program snippet in your case) on the same server / computer you run web2py on. You need to try this things out in the same python environment... Then troubleshoot from there. Regards, Ales On Friday, July 19, 2013 3:09:4

Re: [web2py] Re: ast module

2013-07-19 Thread LightDot
There is some misunderstanding here... what do you mean "bundled python"?? Looking at the paths you posted earlier, I'd say you're on linux and likely using Ubuntu. There is no python bundled with the source version of web2py, you are using python that's installed on your OS. Please, let's star

Re: [web2py] Re: Mobile and Tablets detection

2013-07-21 Thread LightDot
A quick look at WURFL - looks fine, except for the license which might be problematic for some projects - AGPL v3. They offer commercial licenses too, which might solve the problem for some. Regards, Ales On Saturday, July 20, 2013 6:14:17 PM UTC+2, Christian Foster Howes wrote: > > is the WURF

Re: [web2py] ast module

2013-07-21 Thread LightDot
On Saturday, July 20, 2013 5:10:38 PM UTC+2, Jonathan Lundell wrote: > I was bitten by this (other features, not ast) just yesterday. My local > environment (OS X) has 2.7; my production environment (RHEL6) had 2.6. > Turns out that 2.6 does not support collections.Counter (no surprise there, >

[web2py] Re: get web2py 1.8

2013-07-23 Thread LightDot
I can see tags on Google code go back to 1.77.1, so if it's 1.8.x you're after, just check out the exact version you need. Regards, Ales On Tuesday, July 23, 2013 5:33:20 AM UTC+2, aloka wrote: > > hi all, > > for development purpose , I want web2py 1.8 version , How I download it ?? > please r

[web2py] Re: bootstrap 3

2013-08-02 Thread LightDot
I think Niphlod has some valid points. As far as the design goes, I like Bootstrap 2 and 3 both, they are just different. Hm... I do quite like the looks of BS 2, perhaps even more than 3... As I was starting some of the past web2py projects of mine, I've been constantly saying to myself: "I'll

[web2py] Re: Nice change to admin interface for editing files, what about static files?

2013-08-05 Thread LightDot
I think missing static files on the left menu will be perceived like an UI/UX oversight. Just to note, I overcome this by: - using a separate browser tab for css and keeping it open all the time - or, opening the css file first and then opening other editor tabs next to it (the only way to get i

[web2py] Re: Some typos (routes.py)

2013-08-07 Thread LightDot
Best thing to do would be to open an issue on Google code and either attach a patch or make a pull request on Github. Forum posts can get overlooked and/or forgotten... Regards, Ales On Wednesday, August 7, 2013 3:17:01 PM UTC+2, mweissen wrote: > > About routes.py > > I have tried to use route

[web2py] Re: db.py size

2013-08-12 Thread LightDot
Disabling migrations is the first thing everyone should do when the application is put into production, regardless of the number of tables. Close second would be to compile the application. Anyway, there is plenty of threads addressing optimization questions. If editing trough a web interface i

[web2py] Re: File extention automatically changes when a file is uploaded

2013-08-13 Thread LightDot
Does .txt actually replace an existing extension, or does it show up appended instead? What I mean is, does picture.jpg change into picture.txt or into picture.jpg.txt? Regards, Ales On Tuesday, August 13, 2013 12:10:40 PM UTC+2, at wrote: > > > > Hi, > > Please consider following model: > db.d

[web2py] Re: Date search on sqlform.grid not working

2013-08-20 Thread LightDot
This is of some interest to me too. Issue 1640created. On Sunday, August 18, 2013 9:58:28 AM UTC+2, Massimo Di Pierro wrote: > > Good point. The search is performed in the database format which is ISO > (Y/m/d). The grid is not smart enough

[web2py] Re: bootstrap 3

2013-08-20 Thread LightDot
Web2py includes several formstyles even now (table3cols, table2cols, divs, ul and bootstrap). The default formstyle is table3cols, isn't it? What needs to be done now is to add a new bootstrap3 formstyle. If forms include formstyle=bootstrap, the users will continue to get BS2 classes (as they

[web2py] Re: bootstrap 3

2013-08-20 Thread LightDot
Using a library from contrib sounds like a good approach and I wish this was done before adding bootstrap. Perhaps it should be done now, for all future formstyles? Even now, bootstrap is really just covering bootstrap-horizontal (there are other form options within BS). Regards, Ales On Tues

[web2py] Re: bootstrap 3

2013-08-20 Thread LightDot
a contrib without breaking the backwards compatibility of web2py? Regards, Ales On Tuesday, August 20, 2013 11:35:43 PM UTC+2, LightDot wrote: > > Using a library from contrib sounds like a good approach and I wish this > was done before adding bootstrap. Perhaps it should be done now

[web2py] Re: Date search on sqlform.grid not working

2013-08-20 Thread LightDot
h widget to use the same "localized" format > for the date, and let the grid handle out the "re-translation" to something > not local, then it will require more work. > > On Tuesday, August 20, 2013 4:21:24 PM UTC+2, LightDot wrote: >> >> This is of some inter

Re: [web2py] session.forget(response) prevents SQLFORM.factory from working

2013-08-20 Thread LightDot
The form can be forced to work without sessions but I strongly advise against doing it, for security reasons (CSRF protection, etc.): if form.process(session=None).accepted: ...code... Regards, Ales On Wednesday, August 21, 2013 2:14:12 AM UTC+2, Ricardo Pedroso wrote: > > > On Wed, Aug 21, 201

[web2py] Re: show title and some text of a link

2013-09-02 Thread LightDot
If it's a link to an external site, you'll have to either scrape the site to get the beginning of the content, or the link submitter will have to enter it when the link is entered. For scraping, look into the http://docs.python-requests.org/en/latest/ (requests library) and go from there. Rega

Re: [web2py] Re: bootstrap 3

2013-09-03 Thread LightDot
I agree that this should be moved to contrib, as suggested. Perhaps even before 2.6.x is released. Like I said earlier, I'd move the existing "bootstrap" too. Regards On Tuesday, September 3, 2013 3:24:39 PM UTC+2, Richard wrote: > > +1 > > Richard > > > On Fri, Aug 23, 2013 at 4:22 AM, Michele

[web2py] Re: How to leverage web2py popularity and usage?

2013-09-07 Thread LightDot
I'm always sorry to see a good open source project with little or no documentation and a myriad of them are in this sad state. Luckily, web2py doesn't have this problem. The existence of the documentation is this fairly complete form is one of the reasons I chose web2py over other python framew

[web2py] Re: Jessica McKellar talking about windows and the future of Python

2013-09-15 Thread LightDot
The metric from the presentation shows python is gaining popularity quite nicely. Great! Let me just remind those of you who are using Windows as a development workstation - there is a great open source project: Python Tools (Apache License 2.0) which gives you a completely free Python environm

[web2py] Re: background image

2013-09-18 Thread LightDot
If it's plain CSS you're interested in, you can get such information in a matter of seconds if you simply look it up in the docs: http://www.w3.org/community/webed/wiki/CSS_background_images#Positioning_the_image But I'm a bit surprised that you want to float a background. You'll need to find a

[web2py] Re: web2py built-in debugger doesn't work

2013-09-19 Thread LightDot
There was already a bug open about this and it seems to be fixed, check: http://code.google.com/p/web2py/issues/detail?id=1681 Regards On Wednesday, September 18, 2013 7:31:43 PM UTC+2, kun...@umich.edu wrote: > > Has anyone used the built-in debugger in web2py. > > Whenever I try to set a bre

[web2py] Re: pluralization system problem

2013-09-19 Thread LightDot
Issues/tickets/bug reports are found here: http://code.google.com/p/web2py/issues/list Just search if something like this already exist and if not, create a new issue. On Thursday, September 19, 2013 9:31:03 AM UTC+2, mcamel wrote: > > Any guide to open a ticket?. > > Thanks. > > > El jueves, 1

Re: [web2py] web2py 2.6.4 is OUT - IMPORTANT

2013-09-22 Thread LightDot
:) :) ...sorry, couldn't help myself. This must be one of the funniest bugs/oversights I've seen lately :) On Sunday, September 22, 2013 3:15:34 PM UTC+2, 黄祥 wrote: > > when i started

[web2py] Re: web2py vs flask

2013-09-28 Thread LightDot
Heh, everybody is registering hyped .io domains these days. Why do you think this one is relevant? >From Github..: Crate.io the website currently only mirrors PyPI. > All packages and their associated data come from PyPI. Crate.io provides a > reliable place for th

[web2py] Re: web2py vs flask

2013-09-28 Thread LightDot
ds On Saturday, September 28, 2013 1:12:31 PM UTC+2, LightDot wrote: > > Heh, everybody is registering hyped .io domains these days. Why do you > think this one is relevant? > > From Github..: > > Crate.io the website currently only mirrors > PyPI<http://pypi.python.org/py

[web2py] Re: IE8 error in web2py.js line 43, Object doesn't support....

2013-09-28 Thread LightDot
The jQuery map file is optionally used by the browser when debugging jQuery, but shouldn't be requested by web2py code or needed otherwise. Are you seeing this in IE8 too? On Sunday, September 29, 2013 5:48:17 AM UTC+2, davedigerati wrote: > > FWIW- I tested a clean copy of the executable and it

[web2py] Re: Performance: number of queries vs. script run time

2013-09-29 Thread LightDot
Better for what? What is the issue you're trying to address? On Sunday, September 29, 2013 11:37:29 PM UTC+2, lesssugar wrote: > > In my app I have a script running in the background 3 times a day. The > script generates lots of inserts into the db. > > In terms of performance, which one of the t

[web2py] Re: web2py website down

2013-09-29 Thread LightDot
BTW, web2py book is on the github. It's a web2py application, you can run it locally or on your web hosting / VPS. On Sunday, September 29, 2013 2:41:26 PM UTC+2, Gour wrote: > > On Sun, 29 Sep 2013 05:27:51 -0700 (PDT) > 黄祥 > > wrote: > > > i still can't access web2py website and mine on pyt

[web2py] Re: Performance: number of queries vs. script run time

2013-09-30 Thread LightDot
@lesssugar Define efficient. :) Are you after a shorter overall execution time for this task, lower server load, lower power consumption etc.? I would generally start the task and leave the management to the database backend, kernel governor, etc. unless there is a specific need that they can't

[web2py] Re: pie.htc and web2py

2013-10-02 Thread LightDot
I use PIE.htc with web2py, it works as intended. Originally, the problem was that web2py did not recognize the .htc extension and therefore served it with the wrong file type by default. But that was fixed somewhere around web2py 1.99.x, gluon.contenttype should now contain the proper value for

[web2py] Re: admin disabled... or why is parameters_80.py needed

2013-10-04 Thread LightDot
Couple of things I don't understand - are you using anyserver.py or not? Are you using nginx in front of gunicorn, or..? Please post your relevant config files and full startup lines. Regards On Friday, October 4, 2013 7:23:27 PM UTC+2, Gour wrote: > > On Fri, 4 Oct 2013 13:10:48 -0400 > Richa

[web2py] Re: web2py!!!

2013-10-12 Thread LightDot
You just said "Windows, SQL Server, and zero support for Python", which doesn't even tell us which web server (I assume IIS?) and other tech do you have available. Do you even have PHP? I had good experience with CakePHP some years ago, but haven't followed PHP frameworks that closely since. An

[web2py] Re: web2py!!!

2013-10-12 Thread LightDot
Wildly brainstorming here: you could use the web2py to do everything on your departmental servers (blog, data representation, reports, etc.), then use web2py to automatically generate everything as static html and automatically upload the generated files to the IIS7 share. Not sure this is the

[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

[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

[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

[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 b

[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:5

[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 aq

[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/applicat

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? Wit

[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: > > Thank

[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

[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 anymor

[web2py] Re: stuck up on Deployment on CentOS 6.7

2016-05-21 Thread LightDot
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

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 gu

[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 - h

[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 l

[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 play

[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

[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 htt

[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 r

[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

[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. Regard

[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 databas

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. yu

[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

[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.

[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

[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

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

[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

[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

[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 wi

[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':v

[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

[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 concer

[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 redire

[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 chec

[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 usin

[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 Bo

[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 s

[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 bo

[web2py] Re: HELP with bootstrap 3

2014-02-24 Thread LightDot
ocal 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: >&g

[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.cloudflar

[web2py] Re: HELP with bootstrap 3

2014-02-24 Thread LightDot
o 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 stat

[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 browse

<    1   2   3   4   >