[web2py] [Off-topic] Anybody knows an autocomplete plugin with pic support?

2012-09-09 Thread Tito Garrido
Hi Folks, Anybody knows an autocomplete plugin with pic support? Like: Name of something | pic | || Regards, Tito -- Linux User #387870 . _/_õ|__| ..º[ .-.___.-._| . . . . .__( o)__( o).:___ --

[web2py] Re: Dealing with UTC and converting to local time

2012-09-09 Thread Osman Masood
Here's a blog post that explains how to get a user's local timezone in web2py http://osman.am/wordpress/?p=24. It uses some JS on the front-end, and requires the jQuery cookie https://github.com/carhartl/jquery-cookieplugin. Thanks On Thursday, October 6, 2011 12:46:45 PM UTC-7, TheSweetlink

[web2py] Re: web2py 2.0.2 is out

2012-09-09 Thread pradeep cs
Thanks, After installing this it works. I am having windows XP with service pack 2 Regards Pradeep On Thursday, September 6, 2012 7:49:29 PM UTC+5:30, Massimo Di Pierro wrote: If you download and install this: http://www.microsoft.com/en-us/download/details.aspx?id=29 does it help? On

[web2py] Just knew about Server-Sent Events and want to share it with you

2012-09-09 Thread smogzer
Stream Updates with Server-Sent Events: Are like websockets but unidirectional, from the server to the client. Most modern browsers support it. It can be combined with XmlHttpRequest / ajax if the client needs to send events to the server, i.e. emulate websockets. From

Re: [web2py] help test codemirrorw

2012-09-09 Thread Niphlod
+1 on ubuntu chrome opera firefox +2 on xp firefox chrome IE7, IE8 . In IE/ styles are much different (something in default line-height is different, IE8 shows up like firefox) but alas they work quite perfectly (both python source and html). On Sunday, September 9, 2012 7:44:28 AM UTC+2,

[web2py] Re: help test codemirrorw

2012-09-09 Thread Niphlod
If you look at the requests for that page you'll realize that some static files are missing. That's because you miss the codemirror folder into admin/static : it's not bundled yet with web2py (download the archive from codemirror.net and extract it in admin/static/codemirror directory). On

[web2py] Re: help test codemirrorw

2012-09-09 Thread LightDot
Works on Firefox 15, Opera 12.02, Chromium 20.0.1132.47, all on Fedora. Can't try IE at the moment. But - no visible breakpoints, unable to resize the editor within the page. I'm guessing these aren't supposed to work yet, but perhaps we should agree on a set of basic functionality and try to

[web2py] Re: help test codemirrorw

2012-09-09 Thread LightDot
Please note, CodeMirror static files are present in web2py *Github* repo, but not in web2py's Googlecode repo (!). This had me confused for a couple of minutes, until I looked at the code... Basically, you're missing the entire applications/admin/static/codemirror directory. Regards, Ales On

[web2py] Re: help test codemirrorw

2012-09-09 Thread Jose
El domingo, 9 de septiembre de 2012 09:52:19 UTC-3, LightDot escribió: @Jose, please note, CodeMirror static files are present in web2py *Github*repo, but not in web2py's Googlecode repo (!). This had me confused for a couple of minutes, until I looked at the code... Basically, you're

[web2py] [OT] Ubuntu 12.10 will no longer ship with Python 2

2012-09-09 Thread luckysmack
If its so easy to install 2.7, why so insane? People have to start moving at some point. I understand a lot of people don't support it yet because they don't think the new features are worth it yet.but its really easy to setup a virtual env. So why is this such an insane bad idea? It could help

[web2py] Re: How do I incorporate git into my web2py workflow?

2012-09-09 Thread Andrew
The current git support is relatively basic and only intended for pulling and pushing from remote repositories after you are comfortable that your local work is stable. I haven't tried it but you can try doing a git init in your freshly created app and try the push functionality in the IDE,

[web2py] Sorting ajax return

2012-09-09 Thread Kevin Miller
Hi all, I have an ajax call to some values and I use the ...select().as_dict in my controller so that I can return a dict to process the results in my view. Now I realize that I need these values to be sorted. As a dict (..select().as_dict) is not ordered, how can this be accomplished? Once I

[web2py] Re: Sorting ajax return

2012-09-09 Thread Anthony
Do you have to use .as_dict()? Instead, you could use .as_list(), and you'll get a list of dictionaries instead of a dictionary of dictionaries. The list will retain the order of the original select (presumably you could use orderby to have the database return the records in the order you

[web2py] Re: New webapp www.DocMator.com uses web2py , need help with login

2012-09-09 Thread howesc
assuming that the posted version of the code is what you are using: - line 25, 26: you need to put your twitter key and secret in. (but don't post them) - line 73, 74: you need to put your facebook appid and secret in. (but don't post them) for the problems with google redirection, can you

[web2py] Re: help test codemirrorw

2012-09-09 Thread LightDot
I have added the following to web2py's CodeMirror implementation: - line highlight (line with the cursor is highlighted) - autofocus (focus in the editor when page is opened) - fullscreen toggle (F11 toggles editor to fill the entire window, ESC or repeated F11 exits to default editor size).

Re: [web2py] Re: help test codemirrorw

2012-09-09 Thread Ezugworie Ikechukwu
Works well on my IE on windows 7. On Sun, Sep 9, 2012 at 2:06 PM, Jose jjac...@gmail.com wrote: El domingo, 9 de septiembre de 2012 09:52:19 UTC-3, LightDot escribió: @Jose, please note, CodeMirror static files are present in web2py *Github * repo, but not in web2py's Googlecode repo (!).

[web2py] Re: Dealing with UTC and converting to local time

2012-09-09 Thread David Marko
Hi, what client side api/library do you use to to talk to OrientDB from web2py? --

[web2py] Example for supporting multiple oauth?

2012-09-09 Thread Dave
I have a project that I need to support authentication from multiple oauth providers. In addition I want to allow the user to link their account to multiples. Initially I need to support: LinkedIn Facebook Twitter In the future we will likely add google and perhaps others (pinterest, etc).

Re: [web2py] Example for supporting multiple oauth?

2012-09-09 Thread Alec Taylor
I'm pretty sure in the next version of web2py sanction (or similar) will be integrated into web2py to simplify OAuth setup https://github.com/demianbrecht/sanction Just remind the devs :) [I'm not a dev, trying to increase popularity of web2py through advocating at usergroups + open-sourcing

Re: [web2py] Example for supporting multiple oauth?

2012-09-09 Thread David Marko
+1 for sanction https://github.com/demianbrecht/sanction Dne neděle, 9. září 2012 19:45:51 UTC+2 Alec Taylor napsal(a): I'm pretty sure in the next version of web2py sanction (or similar) will be integrated into web2py to simplify OAuth setup https://github.com/demianbrecht/sanction

[web2py] Modelless app no longer works with web2py 2.0.x ???

2012-09-09 Thread Don_X
Considering that I have many tables in my model files on the main app I am building Wanting to take the modelless approach ( slice submitted by BrunoRocha ) in order to avoid possible future bottleneck and/or latency I wanted to advise that the modelless app no longer works under web2py

Re: [web2py] short term roadmap

2012-09-09 Thread Don_X
The feature mentionned here : 4. Notifications: Use Bootstrap notifications for flash, overriding the web2py growl notifications. (Lot's of options here: http://wbpreview.com/previews/WB0881879/noty.html) would be awesome ! .. I have a serious need for various notification types in different

[web2py] Re: help test codemirrorw

2012-09-09 Thread Massimo Di Pierro
Please, can you send them to me? On Sunday, 9 September 2012 11:32:53 UTC-5, LightDot wrote: I have added the following to web2py's CodeMirror implementation: - line highlight (line with the cursor is highlighted) - autofocus (focus in the editor when page is opened) - fullscreen toggle

[web2py] Re: help test codemirrorw

2012-09-09 Thread Massimo Di Pierro
If we move to codemirror (and we should) what do we get rid of (editarea, amy, ace)? We cannot ship with 4 editors. On Sunday, 9 September 2012 13:48:44 UTC-5, Massimo Di Pierro wrote: Please, can you send them to me? On Sunday, 9 September 2012 11:32:53 UTC-5, LightDot wrote: I have added

[web2py] web2py and Apache

2012-09-09 Thread Martin Weissenboeck
Dear all, I have tried to use web2py together with Apache. The book says how to write the configuration file: VirtualHost *:80 ServerName web2py.example.com *WSGIDaemonProcess web2py user=www-data group=www-data \ display-name=%{GROUP}* WSGIProcessGroup web2py

[web2py] Re: help test codemirrorw

2012-09-09 Thread Marin Pranjić
Is there anything that actually works on IE? codemirror works for me (ubuntu, Firefox15). But ace has nicer look. Dana nedjelja, 9. rujna 2012. 20:52:34 UTC+2, korisnik Massimo Di Pierro napisao je: If we move to codemirror (and we should) what do we get rid of (editarea, amy, ace)? We

Re: [web2py] web2py and Apache

2012-09-09 Thread Marin Pranjić
Try removing the backslashs On Sun, Sep 9, 2012 at 8:55 PM, Martin Weissenboeck mweis...@gmail.comwrote: Dear all, I have tried to use web2py together with Apache. The book says how to write the configuration file: VirtualHost *:80 ServerName web2py.example.com *WSGIDaemonProcess

Re: [web2py] web2py and Apache

2012-09-09 Thread Marin Pranjić
And put everything in one line. Or just make sure that there's nothing after backslash. On Sun, Sep 9, 2012 at 9:01 PM, Marin Pranjić marin.pran...@gmail.comwrote: Try removing the backslashs On Sun, Sep 9, 2012 at 8:55 PM, Martin Weissenboeck mweis...@gmail.comwrote: Dear all, I have

Re: [web2py] web2py and Apache

2012-09-09 Thread Martin Weissenboeck
backslash = line continuation 2012/9/9 Marin Pranjić marin.pran...@gmail.com Try removing the backslashs On Sun, Sep 9, 2012 at 8:55 PM, Martin Weissenboeck mweis...@gmail.comwrote: Dear all, I have tried to use web2py together with Apache. The book says how to write the configuration

Re: [web2py] short term roadmap

2012-09-09 Thread Andrew
Massimo, As web2py picks up higher adoption and enhancement requests and bug reports increase do you have any thoughts / desires for agile or distributed development management? Would you consider something like Jirahttp://www.atlassian.com/software/jira/overviewif Web2py can get qualified

[web2py] Re: help test codemirrorw

2012-09-09 Thread Massimo Di Pierro
Which theme di you like better? http://codemirror.net/demo/theme.html On Sunday, 9 September 2012 14:00:01 UTC-5, Marin Pranjić wrote: Is there anything that actually works on IE? codemirror works for me (ubuntu, Firefox15). But ace has nicer look. Dana nedjelja, 9. rujna 2012. 20:52:34

Re: [web2py] web2py and Apache

2012-09-09 Thread Marin Pranjić
I know, I deleted my comments. I thought you have another problem that happens to me sometimes (after copy - paste). I type quicker then I read - I need to get some sleep :) Sorry Dana nedjelja, 9. rujna 2012. 21:11:53 UTC+2, korisnik mweissen napisao je: backslash = line continuation

Re: [web2py] web2py and Apache

2012-09-09 Thread Martin Weissenboeck
But you have tried to help - thank you! 2012/9/9 Marin Pranjić marin.pran...@gmail.com I know, I deleted my comments. I thought you have another problem that happens to me sometimes (after copy - paste). I type quicker then I read - I need to get some sleep :) Sorry Dana nedjelja, 9.

Re: [web2py] Modelless app no longer works with web2py 2.0.x ???

2012-09-09 Thread Bruno Rocha
Here is the solution: https://github.com/rochacbruno/web2py_model_less_app/blob/master/modules/myapp.py#L82 That approach subclasses DAL so it need to include _lazy_tables = {} But, now that we have lazy_tables in default DAL, I recommend you to use the default web2py scheme with

[web2py] Re: help test codemirrorw

2012-09-09 Thread Massimo Di Pierro
I changed the web2py codemirror style. We can still work on it On Sunday, 9 September 2012 14:16:17 UTC-5, Massimo Di Pierro wrote: Which theme di you like better? http://codemirror.net/demo/theme.html On Sunday, 9 September 2012 14:00:01 UTC-5, Marin Pranjić wrote: Is there anything

[web2py] Re: help test codemirrorw

2012-09-09 Thread Marin Pranjić
It is not about the colors. Ace has smaller font and it looks more elegant that way. Maybe it's just me... :) And the edit box is larger by default: http://i49.tinypic.com/19o3g1.jpg Dana nedjelja, 9. rujna 2012. 21:25:37 UTC+2, korisnik Massimo Di Pierro napisao je: I changed the web2py

Re: [web2py] Re: help test codemirrorw

2012-09-09 Thread Bruno Rocha
Maybe we can put a dropdown select and adjust the prefered editor using cookies in the same way we do with the admin language? So it will be easy to switch from codemirror to ace and no need to edit the 0.py On Sun, Sep 9, 2012 at 4:35 PM, Marin Pranjić marin.pran...@gmail.comwrote: It is not

[web2py] Relocated admin using router, problem with appadmin

2012-09-09 Thread Marek Mollin
Hello, I ran into small problem. I have web2py 2.08 running nginx + postgres. I configured routes using parametric system. In routes.py I defined domains and assigned admin to seperate domain. By domain i mean actually subdomains... test.app.com - testing environment using seperate db app.com -

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-09 Thread Jonathan Lundell
On 9 Sep 2012, at 12:42 PM, Marek Mollin rog...@gmail.com wrote: Hello, I ran into small problem. I have web2py 2.08 running nginx + postgres. I configured routes using parametric system. In routes.py I defined domains and assigned admin to seperate domain. By domain i mean actually

Re: [web2py] Example for supporting multiple oauth?

2012-09-09 Thread Dave
I took a look an sanction and it looks pretty simple. Nice even. has anybody attempted to integrate it with Auth() in web2py? On Sunday, September 9, 2012 2:08:32 PM UTC-4, David Marko wrote: +1 for sanction https://github.com/demianbrecht/sanction Dne neděle, 9. září 2012 19:45:51 UTC+2

[web2py] Avoiding cross-session conflict with interactive matplotlib

2012-09-09 Thread Jarrod Wilcox
Please forgive the newbieness of question. I am generating interactive plots using matplotlib as suggested by cookbook, which writes a file and then pulls it into a view. My question is whether that file is protected from other users seeing it. A second question is whether, as I hope, the

Re: [web2py] short term roadmap

2012-09-09 Thread Ezugworie Ikechukwu
Hello, I don't av the capacity to implement this on web2py yet but I think this would be a cool (optional) feature for tables if doesn't already exist. I picked it up from a thread by smogzer smog...@gmail.com :Stream Updates with Server-Sent Events.posted On Sun, Sep 9, 2012 at 11:00 AM

[web2py] Re: help test codemirrorw

2012-09-09 Thread LightDot
Sure, I have posted my codemirror implementation changes as patches: http://code.google.com/p/web2py/issues/detail?id=987 This is against the latest trunk, with the web2py CodeMirror theme included, etc.. BTW, I like the web2py theme much better. Nice! Regards, Ales On Sunday, September 9,

[web2py] Re: Avoiding cross-session conflict with interactive matplotlib

2012-09-09 Thread Massimo Di Pierro
Yes. You store the data in session, so the plot is only accessible to the user who created it until the session is deleted. You may want to look at this as well: https://github.com/mdipierro/canvas On Sunday, 9 September 2012 16:05:17 UTC-5, Jarrod Wilcox wrote: Please forgive the newbieness

Re: [web2py] Modelless app no longer works with web2py 2.0.x ???

2012-09-09 Thread Le Don X
thank you Bruno for the update ! .. I will look it up shortly. --

Re: [web2py] Re: need a simple wiki...

2012-09-09 Thread Andrew W
Thanks Massimo, I'm testing it out now. Does it support html helpers like H1(Hello) or {{ type python stuff here}} ? In another thread, the topic of WYSIWYG editors came up, but I think that was in relation to just doing Markmin text entry. Does a WYSIWYG editor make sense for

[web2py] Re: Getting auth.wiki pages to display without login

2012-09-09 Thread Andrew W
I've looked for the magic is_public button, but I can't find it. On Sunday, September 9, 2012 3:57:28 AM UTC+12, villas wrote: Just a thought, but doesn't the wiki page have an is_public field? If so, did you tick it? On Saturday, September 8, 2012 9:41:35 AM UTC+1, Andrew W wrote:

Re: [web2py] Relocated admin using router, problem with appadmin

2012-09-09 Thread Marek Mollin
So if I skip the admin.app.com line domain I will get: test.app.com/admin app.com/admin all working fine? W dniu niedziela, 9 września 2012 22:01:12 UTC+2 użytkownik Jonathan Lundell napisał: On 9 Sep 2012, at 12:42 PM, Marek Mollin rog...@gmail.com javascript: wrote: Hello, I ran into

Re: [web2py] Re: need a simple wiki...

2012-09-09 Thread Massimo Di Pierro
No. The wiki does not support template language at all. It only supports URLs @ and components @{component:}. Massimo On Sunday, 9 September 2012 18:13:43 UTC-5, Andrew W wrote: Thanks Massimo, I'm testing it out now. Does it support html helpers like H1(Hello) or {{ type python

Re: [web2py] Re: need a simple wiki...

2012-09-09 Thread Massimo Di Pierro
Actually as I think about this we need to add some sanitization rules. On Sunday, 9 September 2012 18:33:50 UTC-5, Massimo Di Pierro wrote: No. The wiki does not support template language at all. It only supports URLs @ and components @{component:}. Massimo On Sunday, 9

[web2py] Re: short term roadmap

2012-09-09 Thread Paolo Caruccio
About point 4 of the list it's important, imho, to have an html scaffolding that fits, through css classes, to our needs. A solution could be to change the html structure by using javascript. For example we could obtain the dropdown auth navbar by inserting this code to the bottom of

[web2py] Re: short term roadmap

2012-09-09 Thread Paolo Caruccio
About point 4 of the list it's important, imho, to have an html scaffolding that fits, through css classes, to our needs. A solution could be to change the html structure by using javascript. For example, we could obtain the dropdown auth navbar by inserting this code to the bottom of

Re: [web2py] Modelless app no longer works with web2py 2.0.x ???

2012-09-09 Thread Andrew W
Thanks Bruno for the comments, I have been looking into the modelless approach so it's interesting to read your views on the new lazy_tables feature.I think it is a lot simpler creating an app that follows the MVC structure out of the box, so the lazy option sounds like a great breakthrough

[web2py] Re: A Web2py CMS like Joomla ?

2012-09-09 Thread song
I'm an old scientist and engineer. I agree all of the writers in this topic. But web2py is products for prgrammer than for end-usesr or application-programmers. And there are many end-users and application-programmers and programmers are a few. In the web2py programes there is some gaps for

[web2py] Re: Avoiding cross-session conflict with interactive matplotlib

2012-09-09 Thread Jarrod Wilcox
Thank you Massimo! Jarrod On Sunday, September 9, 2012 5:45:16 PM UTC-4, Massimo Di Pierro wrote: Yes. You store the data in session, so the plot is only accessible to the user who created it until the session is deleted. You may want to look at this as well:

Re: [web2py] Modelless app no longer works with web2py 2.0.x ???

2012-09-09 Thread Bruno Rocha
On Sun, Sep 9, 2012 at 9:27 PM, Andrew W awillima...@gmail.com wrote: (although I still don't quite really understand what a lazy table is). imagine you have models/db.py db = DAL(...) db.define_table(table1.) db.define_table(table2.) ... ... db.define_table(table30.) So, for

Re: [web2py] Modelless app no longer works with web2py 2.0.x ???

2012-09-09 Thread Andrew W
Excellent. Great explanation. On Monday, September 10, 2012 1:15:32 PM UTC+12, rochacbruno wrote: On Sun, Sep 9, 2012 at 9:27 PM, Andrew W awill...@gmail.com javascript: wrote: (although I still don't quite really understand what a lazy table is). imagine you have models/db.py db

[web2py] Re: Getting auth.wiki pages to display without login

2012-09-09 Thread Massimo Di Pierro
plugin_wiki has such thing but not auth.wiki. In auth wiki all pages are public unless you do auth.wiki(manage_permissions=True) If you set manage_permissions=True all pages are private but the author can choose the names of the groups who can read or write it. You can use the everybody group

[web2py] Re: short term roadmap

2012-09-09 Thread Massimo Di Pierro
I need to see a working example. Can you email a sample new welcome app or patch to the existing one? On Sunday, 9 September 2012 18:53:05 UTC-5, Paolo Caruccio wrote: About point 4 of the list it's important, imho, to have an html scaffolding that fits, through css classes, to our needs. A

[web2py] How do I add Soap Header Security in Web2Py

2012-09-09 Thread devrunner
Hi Guys, I'm new to web2py and python. I recently had a project that requires me to have a SOAP web service and I was able to find several documentation on Web2Py regarding SOAP implementation. The only thing left is on how do I add soap header security for my web service? Any documentation

[web2py] PYFPDF error

2012-09-09 Thread lyn2py
I would like to create PDFs on the fly and PYFPDF seems to fill this scope. However I Traceback (most recent call last): File /Users/xxx/web2py/gluon/restricted.py, line 209, in restricted exec ccode in environment File /Users/xxx/web2py/applications/app/controllers/default.py

[web2py] pyFPDF error

2012-09-09 Thread lyn2py
I ran into an error: Traceback (most recent call last): File /Users/xxx/web2py/source/gluon/restricted.py, line 209, in restricted exec ccode in environment File /Users/xxx/web2py/source/applications/solidworks/controllers/default.py

[web2py] Re: How do I add Soap Header Security in Web2Py

2012-09-09 Thread Massimo Di Pierro
web2py ships with pysimplesoap 1.02. I read the latest version 1.05a supports WS-Security: http://code.google.com/p/pysimplesoap/ We will upgrade web2py as soon as the author tells us to do so. Mariano, author of pysimplesoap is also a major web2py contributor. Massimo On Sunday, 9 September

[web2py] Re: How do I add Soap Header Security in Web2Py

2012-09-09 Thread Massimo Di Pierro
I upgraded web2py pysimplesoap to version 1.06c. On Sunday, 9 September 2012 21:36:45 UTC-5, Massimo Di Pierro wrote: web2py ships with pysimplesoap 1.02. I read the latest version 1.05a supports WS-Security: http://code.google.com/p/pysimplesoap/ We will upgrade web2py as soon as the

[web2py] Re: Getting auth.wiki pages to display without login

2012-09-09 Thread Andrew W
It still doesn't worked for me (when not logged in). I have not set manage_permissions, which I note is False as a default. I always get the login screen when I paste in a url for one of my wiki pages. ? I'll keep trying, maybe I need to update the auth groups (everybody) ? On Monday,

[web2py] Re: How do I add Soap Header Security in Web2Py

2012-09-09 Thread devrunner
Thanks Massimo! On Monday, September 10, 2012 10:44:13 AM UTC+8, Massimo Di Pierro wrote: I upgraded web2py pysimplesoap to version 1.06c. On Sunday, 9 September 2012 21:36:45 UTC-5, Massimo Di Pierro wrote: web2py ships with pysimplesoap 1.02. I read the latest version 1.05a supports

[web2py] Sublime Text 2 Setup

2012-09-09 Thread luckysmack
I have seen a few people on here mention they used sublime text. So i was curious as if anyone was willing to share anything special they did to setup ST to work with web2py for things like autocompletion (assuming code intel) or other web2py hints/goodies someone might know about, such as

Re: [web2py] Modelless app no longer works with web2py 2.0.x ???

2012-09-09 Thread Andrew W
Hi Bruno, I got the same error with movuca, which I downloaded today: File D:\Mercurial\web2py\gluon\dal.py, line 7149, in __getattr__ if ogetattr(self,'_lazy_tables') and \ AttributeError: 'DataBase' object has no attribute '_lazy_tables' On Monday, September 10, 2012 7:24:15 AM

Re: [web2py] Sublime Text 2 Setup

2012-09-09 Thread ian douglas
I use the CodeIntel plugin for Sublime Text 2 that was adapted from Komodo IDE according to the documentation. There's a bit of setup involved, but it's pretty quick to run. (it builds completion for various languages, etc) If you add web2py to the python library path in Sublime, or include