Re: [web2py] billing app

2011-09-08 Thread Kenneth Lundström
Hello Nikolai, I have created a simple billing application that contains customers, products, hour tracker (simple) and receipt handling. If interested I could during the weekend put up a english version of it (Well swedish too it thats better) so you can check it out. Kenneth is there

Re: [web2py] select box size (height) : how to change in View

2011-09-08 Thread Kenneth Lundström
This is just a wild guess but I think CSS is doing it. Kenneth I wish to render a select box with size=3 sothat it will display 3 items (instead of default size 1) I specified it in View as under-- form id= ...etc. select id=x name=y size=3 optionopt1/option optionopt2/option

[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread Noel Villamor
Title is well deserved! Congratulations to the team.

[web2py] select (field alias)

2011-09-08 Thread Noel Villamor
I am aware about: tblAlias = db.mytbl.with_alias('tblAlias') Is there a similar thing that we can use for fields in select()? As in: ... .select( db.mytbl.id, db.mytbl.id*2 as fld2)

Re: [web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread Michele Comitini
+1 2011/9/8 Noel Villamor noe...@gmail.com: Title is well deserved! Congratulations to the team.

[web2py] Re: How to customise the reset password function

2011-09-08 Thread Dave H
I did look into that initially, but I wrote my app before I knew about that so the scoping users in accounts bit was already done. I'll bear it in mind for my next project though. Thanks! Dave On Sep 7, 4:11 pm, Anthony abasta...@gmail.com wrote: I'm not sure if this is relevant to what you're

Re: [web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread Robert Kooij
About time. ;) Grats everyone and Massimo in particular!

Re: [web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread Vasile Ermicioi
congrats Massimo, you deserve that

[web2py] cgihandler path

2011-09-08 Thread Web2Py Freak
in cgi handler the Path ... what path ?? can anyone give me an example ??

Re: [web2py] appadmin and db.Table definition

2011-09-08 Thread Manuele
On 05/09/2011 21:21, pbreit wrote: Is there some reason your table definitions depart so significantly from what is shown in the docs? If I right understand what you mean... I wanted to develop a plugin that do not create the tables in the db when it's installed in the app but let the

[web2py] Re: Published my collection of plugins

2011-09-08 Thread kenji4569
Thanks for the information. But it seems that I have to buy a licence to get the full source code. I will look for other solutions. Kenji On 9月8日, 午前2:59, Richard Vézina ml.richard.vez...@gmail.com wrote: Hello Kenji, You will maybe find the code of the actual datepicker here

Re: [web2py] web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread Martín Mulone
+1 2011/9/7 wwwgong wen.g.g...@gmail.com Congratulations! more details from here: http://www.infoworld.com/d/open-source-software/bossie-awards-2011-the-best-open-source-application-development-software-171759-0current=10last=1#slideshowTop -- http://martin.tecnodoc.com.ar

[web2py] Re: billing app

2011-09-08 Thread Gour-Gadadhara Dasa
On Thu, 08 Sep 2011 10:05:50 +0300 Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: Hello Nikolai, I have created a simple billing application that contains customers, products, hour tracker (simple) and receipt handling. If interested I could during the weekend put up a english

Re: [web2py] select box size (height) : how to change in View

2011-09-08 Thread Martín Mulone
http://stackoverflow.com/questions/119961/select-tags-size-attribute-through-css 2011/9/8 Kenneth Lundström kenneth.t.lundst...@gmail.com This is just a wild guess but I think CSS is doing it. Kenneth I wish to render a select box with size=3 sothat it will display 3 items (instead of

[web2py] how to use cgi in web2py

2011-09-08 Thread Web2Py Freak
hey guys , anyone can tell me how to use cgi in web2py ??

[web2py] Re: select box size (height) : how to change in View

2011-09-08 Thread Vineet
@Kenneth Lundström, @Martín Mulone, I agree that this is an issue related to css setting. Somewhere in a /static/css file(s), there is a setting which is forcing the select box of size=1. Same select box is accepting size=1 in a standalone html file (outside of web2py). Can anybody pl. point out

[web2py] Re: select box size (height) : how to change in View

2011-09-08 Thread Vineet
@Kenneth Lundström, @Martín Mulone, I agree that this is an issue related to css setting. Somewhere in a /static/css file(s), there is a setting which is forcing the select box of size=1. Same select box is accepting size=1 in a standalone html file (outside of web2py). Can anybody pl. point out

[web2py] Re: how to use cgi in web2py

2011-09-08 Thread stefaan
hey guys , anyone can tell me how to use cgi in web2py ?? If in doubt, always check the online book first... http://www.web2py.com/book/default/chapter/11?search=cgi Best regards, Stefaan.

[web2py] Can anyone explain this jQuery behavior?

2011-09-08 Thread Cliff
My jQuery scripts work great, as long as I embed them in the the view itself. When I move them out of the view into a file such as 'static/js/some- jjquery.js', ajax calls cause the script to stop working. If I comment out the ajax calls, the script works, except for executing the ajax, of

[web2py] Re: Can anyone explain this jQuery behavior?

2011-09-08 Thread Anthony
Can you show some example code? How are you loading the JS files, making the Ajax calls, calling functions, etc.? On Thursday, September 8, 2011 8:01:20 AM UTC-4, Cliff wrote: My jQuery scripts work great, as long as I embed them in the the view itself. When I move them out of the view

[web2py] Re: Can anyone explain this jQuery behavior?

2011-09-08 Thread Ross Peoples
Seeing some code would help. I also wonder if you have encapsulated your external js code in something like: jQuery(document).ready(function() { });

Re: [web2py] Re: how to use cgi in web2py

2011-09-08 Thread Sebastian E. Ovide
believe me... web2py in a sharehost using CGI it is very SLOW ! (tested in iPage)... On Thu, Sep 8, 2011 at 12:30 PM, Web2Py Freak halna...@gardeniatelco.comwrote: there is nothing about using CGI just : web2py provides a file cgihandler.py to interface to CGI. -- Sebastian E. Ovide

[web2py] nyroModal to edit a form in a modal window

2011-09-08 Thread Kenneth Lundström
Hi listmembers, I have created a page that contains a list of customers. Every row has an link to edit it. This link opens a modal window with nyroModal. But how do I change the size of the modal window? Kenneth

[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread DenesL
Best kept secret... not anymore. Thanks to Massimo and all contributors.

[web2py] Re: how to use cgi in web2py

2011-09-08 Thread stefaan
web2py provides a file cgihandler.py to interface to CGI. If still in doubt, use google: http://web2py.com/AlterEgo/default/show/93 (As far as I understand, a cgi program expects input via stdin, and sends output to stdout, but I'm by no means an expert) Best regards, Stefaan.

[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread Omi Chiba
Wow ! On Sep 8, 7:55 am, DenesL denes1...@yahoo.ca wrote: Best kept secret... not anymore. Thanks to Massimo and all contributors.

Re: [web2py] Re: About the welcome app

2011-09-08 Thread Anthony
The 'welcome' app is intended to be a scaffolding upon which to build an app. The app selector you suggest might be more appropriate for inclusion in the 'admin' app (where the 'welcome' app could be one of the choices). On Thursday, September 8, 2011 5:18:42 AM UTC-4, Ramos wrote: I think

[web2py] Re: billing app

2011-09-08 Thread niknok
That would be awesome! Looking forward to it. On Sep 8, 3:05 pm, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: Hello Nikolai, I have created a simple billing application that contains customers, products, hour tracker (simple) and receipt handling. If interested I could during the

[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread LightDot
Congratulations! I'm glad to see CakePHP and web2py receive an award in the same category. IMHO, these truly are top frameworks for PHP and python.

Re: [web2py] Re: About the welcome app

2011-09-08 Thread António Ramos
Yep i agree. 2011/9/8 Anthony abasta...@gmail.com The 'welcome' app is intended to be a scaffolding upon which to build an app. The app selector you suggest might be more appropriate for inclusion in the 'admin' app (where the 'welcome' app could be one of the choices). On Thursday,

Re: [web2py] Re: About the welcome app

2011-09-08 Thread Richard Vézina
But the idea of António is pretty nice... Only one problem, the speed of development web2py seems to generate obsolete code in the applications published that force Massimo to launch adopt an App movement... I don't know if it as work until now... I think this should be fixed first, I mean make

Re: [web2py] list:reference table = self-reference, reprensent not working : potential issue

2011-09-08 Thread Richard Vézina
PING Richard On Wed, Aug 17, 2011 at 4:43 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Ok, forget notice, I think, I just should use something like this : db.table2.linked_self.requires=\ IS_EMPTY_OR(IS_IN_DB(db,'table2.id','%(field1t2)s',\

Re: [web2py] Re: deploying web2py on IIS

2011-09-08 Thread Richard Vézina
SQLite is a file DB so it the file is locked when there is operation in process... I think it become pretty slow when multiple users are on at the same time... I am not sure if it only allow concurrent access management correctly... Richard On Wed, Sep 7, 2011 at 3:18 AM, Web2Py Freak

Re: [web2py] Re: how to use cgi in web2py

2011-09-08 Thread Michele Comitini
Freak, which one? a) you want to run CGI inside web2py? b) you want to run web2py as CGI? mic 2011/9/8 stefaan stefaan.hi...@gmail.com: web2py provides a file cgihandler.py to interface to CGI. If still in doubt, use google: http://web2py.com/AlterEgo/default/show/93 (As far as I

Re: [web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread Richard Vézina
Congratulation Massimo and core developpement team... Richard On Thu, Sep 8, 2011 at 9:37 AM, LightDot light...@gmail.com wrote: Congratulations! I'm glad to see CakePHP and web2py receive an award in the same category. IMHO, these truly are top frameworks for PHP and python.

[web2py] DAL insert dictionary fails

2011-09-08 Thread seongjoo
Hello, I am using web2py 1.98.2. The problem is that below instruction fails with error message: TypeError: insert() keywords must be strings db.table.insert(**dictionary) While db(query).update(**dictionary) works find. For now, I have to use as a workaround as below. bulk_insert(

Re: [web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread Ivica Kralj
Congratulation!! This is something members of this group knew already anyway :) Although, it's great to have recognition on black and white... or in html, for everybody to see it. ;) On 8 September 2011 14:37, LightDot light...@gmail.com wrote: Congratulations! I'm glad to see CakePHP and

Re: [web2py] DAL insert dictionary fails

2011-09-08 Thread Bruno Rocha
How your dict looks like? http://zerp.ly/rochacbruno Em 08/09/2011 11:10, seongjoo seongjoo@gmail.com escreveu: Hello, I am using web2py 1.98.2. The problem is that below instruction fails with error message: TypeError: insert() keywords must be strings db.table.insert(**dictionary)

Re: [web2py] Error running sqlform.grid from trunk

2011-09-08 Thread Jim Steil
Fixed - Thanks Massimo, that was fast! -Jim http://code.google.com/p/web2py/issues/detail?id=412 On 9/7/2011 4:30 PM, Jim Steil wrote: Submitted - http://code.google.com/p/web2py/issues/detail?id=412 -Jim On 9/7/2011 4:25 PM, Martín Mulone wrote: I think is a bug, please report it:

[web2py] Re: Building a non-trivial SOAP service using web2py

2011-09-08 Thread Remco
I'm as eager to know as you are. So i tried a few things and found the following to work, though not as they way you'd like it to work: - [start service snippet] @service.soap('GetQuote1', returns={'result':{'c':[{'c':float}],'b': {'name':str,'value':str}}}, args={'symbol':str}) def

[web2py] Re: deploying web2py on IIS

2011-09-08 Thread Remco
From the sqlite site: SQLite uses POSIX advisory locks to implement locking on Unix. On Windows it uses the LockFile(), LockFileEx(), and UnlockFile() system calls. SQLite assumes that these system calls all work as advertised. If that is not the case, then database corruption can result. One

[web2py] Re: Web2py is in the Bossie awards

2011-09-08 Thread Massimo Di Pierro
Another good news! http://www.infoworld.com/d/open-source-software/bossie-awards-2011-the-best-open-source-application-development-software-171759-0current=10last=1#slideshowTop On Sep 8, 2:01 am, Mike Veltman mike.velt...@gmail.com wrote: I dont know if someone else already mentioned it. But

[web2py] Re: Web2py is in the Bossie awards

2011-09-08 Thread Massimo Di Pierro
And congratulations again to all users and contributors! On Sep 8, 2:01 am, Mike Veltman mike.velt...@gmail.com wrote: I dont know if someone else already mentioned it. But web2py is in the Bossie awards. ;-) Congrats http://www.infoworld.com/d/open-source-software/bossie-awards-2011-th...

[web2py] Re: select (field alias)

2011-09-08 Thread Massimo Di Pierro
No. On Sep 8, 2:07 am, Noel Villamor noe...@gmail.com wrote: I am aware about: tblAlias = db.mytbl.with_alias('tblAlias') Is there a similar thing that we can use for fields in select()? As in: ... .select( db.mytbl.id, db.mytbl.id*2 as fld2)

[web2py] Re: Say My Name Example not working, version 1.98.2

2011-09-08 Thread rami
Thank you, all. Web2Py books has been really helpful in understanding this generics feature. On Aug 30, 3:36 pm, pbreit pbreitenb...@gmail.com wrote: If you only use generics during development (good practice), put this in db.py or another model file: response.generic_patterns = ['*'] if

[web2py] Re: About the welcome app

2011-09-08 Thread Massimo Di Pierro
This is a problem indeed. Anyway, I think it would be a good idea to have a convention about icons representing apps. Listing all the apps publicly does not belong in welcome and it is a security hazard. there could be a public page in admin that does that and admin can be disabled anyway. On

[web2py] Re: list:reference table = self-reference, reprensent not working : potential issue

2011-09-08 Thread Massimo Di Pierro
Please open a ticket. On Sep 8, 8:57 am, Richard Vézina ml.richard.vez...@gmail.com wrote: PING Richard On Wed, Aug 17, 2011 at 4:43 PM, Richard Vézina ml.richard.vez...@gmail.com wrote: Ok, forget notice, I think, I just should use something like this :

[web2py] Re: how to use cgi in web2py

2011-09-08 Thread Massimo Di Pierro
Running web2py under CGI will result in more headaches then running is in proxy mode. On Sep 8, 9:07 am, Michele Comitini michele.comit...@gmail.com wrote: Freak, which one? a) you want to run CGI inside web2py? b) you want to run web2py as CGI? mic 2011/9/8 stefaan

[web2py] Re: Error running sqlform.grid from trunk

2011-09-08 Thread Massimo Di Pierro
What takes time is not fixing the bugs, it is reading emails and reproducing the errors. If your email is short and to the point and contains enough code that runs out of the box and reproduces the bug, it is easy to fix. This was the case. massimo On Sep 8, 9:41 am, Jim Steil j...@qlf.com

Re: [web2py] Re: About the welcome app

2011-09-08 Thread António Ramos
does the web2py-adm...@googlegroups.com still exists? What do they have about the new admin they talked about months ago? 2011/9/8 Massimo Di Pierro massimo.dipie...@gmail.com This is a problem indeed. Anyway, I think it would be a good idea to have a convention about icons representing

[web2py] gluon.widget.start(cron=True)

2011-09-08 Thread annet
I came a cross this file and wonder what it does. #!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try: path = os.path.dirname(os.path.abspath(__file__)) except NameError: path=os.getcwd() # Seems necessary for py2exe if not path in sys.path: sys.path.append(path)

[web2py] Re: deploying web2py on IIS

2011-09-08 Thread Omi Chiba
Remco, I'm another guy struggling with IIS. Following the Receipt 2 for ISAPI and I'm lost at 2.3.2. If possible, can you explain what I should do from here. So far, virtual directory ochibaapp (Renamed it from appname) is created under Default Web Site. I have setup junction for C:\w2p

[web2py] Re: select box size (height) : how to change in View

2011-09-08 Thread Vineet
I have posted the code in 'View' file at http://stackoverflow.com/questions/7343374/web2py-view-height-size-of-a-select-box-in So avoiding the reposting of code here. ---Vineet On Sep 8, 4:01 pm, Vineet vineet.deod...@gmail.com wrote: @Kenneth Lundström, @Martín Mulone, I agree that this is an

Re: [web2py] Re: select box size (height) : how to change in View

2011-09-08 Thread Martín Mulone
perhaps you want something like this?: form#yourid select {height: 50px;} 2011/9/8 Vineet vineet.deod...@gmail.com I have posted the code in 'View' file at http://stackoverflow.com/questions/7343374/web2py-view-height-size-of-a-select-box-in So avoiding the reposting of code here.

[web2py] problems changing database field type

2011-09-08 Thread Eric
I'm running web2py on PostGreSQL. I accidentally created a model that specified a table with column type double when I needed decimal. Now I'm trying to change it from double to decimal, with no luck. I deleted all the records, and have used 'migrate=True,fake_migrate=True', and all the

[web2py] Testing ajax autocompletion as said in the book

2011-09-08 Thread António Ramos
hello i´m testing ajax auto completion example as said in the book it works fine Now i want to return not the months for the user to select but an image because i´m testing graphviz dot language! the user writes for example a-b an image is created . It see it in the image in the static folder

Re: [web2py] problems changing database field type

2011-09-08 Thread Richard Vézina
Drop the table... and recreate it... Use pgAdmin or erase your db model reload your app... paste your model reload... Don't need fake migrate just migrate true... Richard On Thu, Sep 8, 2011 at 1:36 PM, Eric hu5...@gmail.com wrote: I'm running web2py on PostGreSQL. I accidentally created a

Re: [web2py] Re: list:reference table = self-reference, reprensent not working : potential issue

2011-09-08 Thread Richard Vézina
I forgot that I had create it [?], here it is : http://code.google.com/p/web2py/issues/detail?id=382q=list Thanks to taking care... Richard On Thu, Sep 8, 2011 at 11:51 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Please open a ticket. On Sep 8, 8:57 am, Richard Vézina

Re: [web2py] message when login required

2011-09-08 Thread Richard Vézina
For myself I made a kind of gate login page like ubuntu... So as long as you are not loged on you don't access the page and see noting except the login page... But, for sure it's not applicable to all situation... The only problem with my design is that I can't byte compile cause I return from

[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread Jesús
+1

[web2py] Why multiple controllers, models, and what to do with them?

2011-09-08 Thread Luca
I am new to web2py (I've been using Django), and I am confused about a couple of things. First, the presence of multiple controllers. I am trying to build a main app, called (say) www.example.com. So I would like to have something like www.example.com/index.html But if I use the default.py

[web2py] Re: gluon.widget.start(cron=True)

2011-09-08 Thread Massimo Di Pierro
This is web2py.py (starts web2py) except you have an extra line On Sep 8, 11:43 am, annet annet.verm...@gmail.com wrote: I came a cross this file and wonder what it does. #!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys try:     path =

Re: [web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread Phyo Arkar
Wow .This is very big! Congrats Massimo and all the web2py developers! On Thu, Sep 8, 2011 at 8:45 PM, Ivica Kralj ivicakr...@gmail.com wrote: Congratulation!! This is something members of this group knew already anyway :) Although, it's great to have recognition on black and white... or in

[web2py] Re: About the welcome app

2011-09-08 Thread Massimo Di Pierro
Never heard of it before. On Sep 8, 11:01 am, António Ramos ramstei...@gmail.com wrote: does the web2py-adm...@googlegroups.com still exists? What do they have about the new admin they talked about months ago? 2011/9/8 Massimo Di Pierro massimo.dipie...@gmail.com This is a problem

[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread Yannick
I'm Happy Congrat! On Sep 7, 10:59 pm, wwwgong wen.g.g...@gmail.com wrote: Congratulations! more details from here:http://www.infoworld.com/d/open-source-software/bossie-awards-2011-th...

[web2py] Re-Launch a Better version www.beunick.com

2011-09-08 Thread Yannick
Beunick App sitting on top of Web2py has a new version. Thanks to Massimo for this great Web2py Tool. Check it out on: http://www.beunick.com Drop us some feedback if you can. Cheers, Yannick P.

[web2py] Integrate Third Party Modules that Connect to MySql DB

2011-09-08 Thread rami
Hello everyone, 1) I know web2py provides the DAL, however I have already Python code (let's call it third party) that connects to a MySql database, has some classes that hold the data, and returns objects that contain data that I need to display in the website and not just display but of course

[web2py] Re: Why multiple controllers, models, and what to do with them?

2011-09-08 Thread howesc
Luca, multiple controllers allow you to break your code into logical chunks, so big projects are more manageable. there are a few different options for URL routing to make the URLs your user sees something different from the underlying structure. Take a look in the web2py book for info on

Re: [web2py] Why multiple controllers, models, and what to do with them?

2011-09-08 Thread Kenneth Lundström
I am new to web2py (I've been using Django), and I am confused about a couple of things. Welcome to web2py. First, the presence of multiple controllers. Every time a function in the controller is called the whole file is compiled. By having smaller controller you get an faster application.

[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-08 Thread Christopher Steel
congratulations everyone and thank you Massimo for creating, leading and keeping the Web2py project so awesome. This is well deserved recognition for a project that rocks in so very many ways.

Re: [web2py] Re: matplotlib output

2011-09-08 Thread Richard Dijkstra
The mp1.png file is in the static directory of my application The following views/default/index only gives an empty page with None in the top left corner. {{left_sidebar_enabled=right_sidebar_enabled=False}} {{extend 'layout.html'}} {{if 'message' in globals():}} h1{{=message}}/h1

Re: [web2py] Re: matplotlib output

2011-09-08 Thread Richard Vézina
Not sure but I think there is a mistake in your view that should be ok without it The # not work to comment a line in the view so try remove your line completly or you may try with !-- -- html commenting caracter... But those don't prevent web2py to interpret the {{=}}, so what I usually do si to

[web2py] Re: widget for list:reference field in SQLFORM

2011-09-08 Thread monotasker
Thanks for the links. I'm still trying to figure out how much to look for the framework to do and how much to look for client-side solutions. This helps. Ian On Sep 7, 5:48 pm, Anthony abasta...@gmail.com wrote: Since developers will have different preferences for multiselect widgets and it is

[web2py] Re: select (field alias)

2011-09-08 Thread Anthony
You can select db.mytbl.id*2, but I don't think you can reference the result with an alias -- you'd have to reference it with something like rows[0]['(mytbl.id * 2)']. Of course, for convenience, you could define fld2='(mytbl.id * 2)' and then do rows[0][fld2]. What do you want to do with

Re: [web2py] Re: matplotlib output

2011-09-08 Thread Anthony
Have you shown us your entire index() function? If so, your view file isn't getting called at all because your index function is not returning a dictionary. Instead, web2py is simply returning whatever your function returns, which is probably None if the last line is a call to plt.savefig().

Re: [web2py] Re: matplotlib output

2011-09-08 Thread Richard Dijkstra
Richard, To be sure about the comment I made the following view, which had the same None result {{extend 'layout.html'}} p Outfile from Matplotlib img src={{=URL('static','mp1.png')}}/ /p regards, Richard Op 8-9-2011 22:11, Richard Vézina schreef: Not sure but I think there is a mistake

[web2py] Re: Date Picker Widget

2011-09-08 Thread Paul Gerrard
Hi, I used this css as is (although I did change the background colour to match my site. however... I'm using the dat picker on a field displayed in a jquerydialog. the datepicket pops up - behind the dialog box. I think the z-indexvalue needs bumping up (or is it down?) Looks good tho :O) On

Re: [web2py] Re: matplotlib output

2011-09-08 Thread Richard Dijkstra
The view is not executed. Adding return dict() doesn't have effect. Even this dict() does not lead to an error. {{extend 'layout.html'}} {{if 'message' in globals():}} p Outfile from Matplotlib img src={{=URL('static','mp1.png')}}/ /p return dict() Op 8-9-2011 22:24, Anthony

Re: [web2py] Re: matplotlib output

2011-09-08 Thread Richard Vézina
The view need a controller to return a dict variable at least one to be executed I think... So maybe your controller has noting to do so you just have created a view with the code that you want to be executed (the code that you showed us)... Try returning a empty var from your controller if you

Re: [web2py] Re: Date Picker Widget

2011-09-08 Thread Richard Vézina
I have the same problem is you find a solution... I will try with z-index, but I am not sure if it will work, should pick one upper the dialog plugin use if it's the source of the problem. Richard On Thu, Sep 8, 2011 at 4:34 PM, Paul Gerrard p...@gerrardconsulting.comwrote: Hi, I used this

Re: [web2py] Re: Date Picker Widget

2011-09-08 Thread Richard Vézina
.calendar{ z-index: 1000; position: relative; display: none; border-right: 1px solid #808080; border-left: 1px solid #808080; border-bottom: 1px solid #808080; font-size: 11px; color: #9A9A9A; cursor: default; background: #fafaed; font-family:

Re: [web2py] Re: widget for list:reference field in SQLFORM

2011-09-08 Thread Richard Vézina
Wich version of web2py version do you use... The problem you describe hab been a issue in the past that have been fixed now... Maybe you have a old version of web2py? Richard On Thu, Sep 8, 2011 at 4:16 PM, monotasker scotti...@gmail.com wrote: Thanks for the links. I'm still trying to figure

Re: [web2py] Re: Date Picker Widget

2011-09-08 Thread Richard Vézina
It seems that you can initialise dialog with a given zIndex And the default zIndex that I have in the js is zIndex: 1000 I just read the js and it seems to change between 1000 and 1001... I try with 1002 in the .calendar css class of web2py datepicker and it works find. Don't know maybe adding

Re: [web2py] Re: Date Picker Widget

2011-09-08 Thread Richard Vézina
God... The fix seems to work only for the first trigger of the popup... Richard On Thu, Sep 8, 2011 at 5:25 PM, Richard Vézina ml.richard.vez...@gmail.comwrote: It seems that you can initialise dialog with a given zIndex And the default zIndex that I have in the js is zIndex: 1000 I just

Re: [web2py] Re: matplotlib output

2011-09-08 Thread Anthony
No, you need to add return dict() to the end of you index() function in your controller -- not to the view file. Anthony On Thursday, September 8, 2011 4:45:51 PM UTC-4, Richard wrote: The view is not executed. Adding return dict() doesn't have effect. Even this dict() does not lead to

Re: [web2py] Re: Date Picker Widget

2011-09-08 Thread Richard Vézina
Ok, putting much more then the basic z-index init of dialog works find at least... I don't see when you want a datepicker to be behind an other element?! Richard On Thu, Sep 8, 2011 at 5:27 PM, Richard Vézina ml.richard.vez...@gmail.comwrote: God... The fix seems to work only for the first

Re: [web2py] Re: matplotlib output

2011-09-08 Thread Richard Vézina
haha I wasn't understand why he was putting that there and I didn't realise it was a mistake ;-) Richard On Thu, Sep 8, 2011 at 5:30 PM, Anthony abasta...@gmail.com wrote: No, you need to add return dict() to the end of you index() function in your controller -- not to the view file.

[web2py] LOAD ajax=True and non submit buttons

2011-09-08 Thread DenesL
Components with buttons that are meant for client side scripting are being reloaded via ajax post request (I think), shouldn't this behavior be limited to the submit button?.

[web2py] Re: select box size (height) : how to change in View

2011-09-08 Thread Anthony
On Thursday, September 8, 2011 12:52:42 PM UTC-4, Vineet wrote: I have posted the code in 'View' file at http://stackoverflow.com/questions/7343374/web2py-view-height-size-of-a-select-box-in So avoiding the reposting of code here. I left a comment on SO -- still can't replicate the

[web2py] Re: Why multiple controllers, models, and what to do with them?

2011-09-08 Thread pbreit
Having multiple controller files gives you the ability to organize your code and URLs and it works nicely. To hide the app name and/or controller name, look at the router.example.py file. All the code in all the files in the models directory is executed on each page request so you can put your

[web2py] Re: Integrate Third Party Modules that Connect to MySql DB

2011-09-08 Thread pbreit
It should be fine using your other database access library. I think you'll probably want to import the libraries from each controller file. And won't need to put any of that stuff in model files. I think reading chapters 00-07 in the Book are a good start (08 if you are using

[web2py] Re: Lazy virtual fields - strange result!

2011-09-08 Thread Michael Toomim
After some thought, I'm really liking this design for virtual fields... what if lazy/virtual fields were declared directly in db.define_table()? Like so: db.define_table('item', Field('unit_price','double'), Field('quantity','integer'),

[web2py] Re: Re-Launch a Better version www.beunick.com

2011-09-08 Thread pbreit
Looks nice. beunick is a bit of a strange name. The first thing I think of is eunuch which is not the most pleasant thought.

Re: [web2py] Re: About the welcome app

2011-09-08 Thread António Ramos
What? cant believe it see this http://code.google.com/p/web2pyadmin2/ 2011/9/8 Massimo Di Pierro massimo.dipie...@gmail.com Never heard of it before. On Sep 8, 11:01 am, António Ramos ramstei...@gmail.com wrote: does the web2py-adm...@googlegroups.com still exists? What do they have

[web2py] Re: problems changing database field type

2011-09-08 Thread Eric
Thanks for your reply, Richard. I dropped the table, and when I went to reload and got this traceback (same one I got before I dropped the table). db_wizard.py is where the table is defined. Traceback (most recent call last): File /home/www-data/web2py/gluon/restricted.py, line 192, in

[web2py] Re: how to use cgi in web2py

2011-09-08 Thread pbreit
Freak, what hosting options do you have? Do you already have a hosting provider? Which one? What service level do you have? Do you know what your provider's Python hosting capabilities are?

Re: [web2py] Re: Re-Launch a Better version www.beunick.com

2011-09-08 Thread António Ramos
maybe be-unik 2011/9/8 pbreit pbreitenb...@gmail.com Looks nice. beunick is a bit of a strange name. The first thing I think of is eunuch which is not the most pleasant thought.

[web2py] Re: problems changing database field type

2011-09-08 Thread Eric
And settings.migrate is set to 'True'. On Sep 8, 1:45 pm, Richard Vézina ml.richard.vez...@gmail.com wrote: Drop the table... and recreate it... Use pgAdmin or erase your db model reload your app... paste your model reload... Don't need fake migrate just migrate true... Richard On

[web2py] Re: select (field alias)

2011-09-08 Thread Noel Villamor
Your work-around works well Anthony. Thanks. What I intend of doing is querying just a subset of a list:string field (e.g. mytblalias.data[0:6] which in select would appear as: SUBSTR(mytblalias.data,1,(7 - 1)) The field results, however, turned out to be raw with the '|' showing as separators

Re: [web2py] Re: About the welcome app

2011-09-08 Thread Anthony
Yeah, that was dropped. It was initiated by the guy who did the redesign of the current admin app, but he moved on. Anthony On Thursday, September 8, 2011 6:11:47 PM UTC-4, Ramos wrote: What? cant believe it see this http://code.google.com/p/web2pyadmin2/ 2011/9/8 Massimo Di Pierro

  1   2   >