[web2py] Re: radio button issue

2010-11-10 Thread annet
Hi Matt, The IS_IN_SET() should read: IS_IN_SET([(True,'Yes'),(False,'No')]) Kind regards, Annet.

[web2py] Re: blocking problem

2010-11-10 Thread mdipierro
I think you are right. perhaps the problem is session. Did you try unlock it? On Nov 11, 12:48 am, VP wrote: > >- if you are using sqlite, the database is locked (sqlite cannot be > > accessed concurrently) > > Is this true? > I thought sqlite db's can be read (but not written) concurrently.  If

[web2py] Re: blocking problem

2010-11-10 Thread VP
>- if you are using sqlite, the database is locked (sqlite cannot be accessed concurrently) Is this true? I thought sqlite db's can be read (but not written) concurrently. If so, then even if web2py opens it, and as long as there's no write access, things still should be fine. Right? On Nov 11

[web2py] Re: Learning Management System survey

2010-11-10 Thread mdipierro
I can contribute code (have a lot) but we need a project manager to call an IRC kick off meeting and coordinate future work. Massimo On Nov 10, 10:34 pm, rāma wrote: > Interesting thread glad I found it by searching the group because this > is what I am doing currently. However, the LMS is desig

[web2py] Re: blocking problem

2010-11-10 Thread mdipierro
web2py opens it anyway because it is in the model. You can force a release DAL.close_all_instances(DAL.commit) at the beginning of your long action. should work On Nov 11, 12:12 am, VP wrote: > Didn't think of this, but in fact I'm using sqlite, which seems to be > a lot faster than postgreSQL.

[web2py] Re: blocking problem

2010-11-10 Thread VP
Session locking is the problem. session._unlock(response) seems to fix this. But i'll consider the background process option (as of now , it's more convenient for me this way). Thanks.

[web2py] Re: flow charts

2010-11-10 Thread mdipierro
Raphael and processing.js provide low level drawing primitives. jsPlumb is specific for diagrams. On Nov 11, 12:03 am, mart wrote: > Hey Alexandre, > > first jsPlumb, now this!... so many choices :) Looks so good as > well :) and says "easy to use" right there on the front page!  (love > "easy to

[web2py] Re: blocking problem

2010-11-10 Thread VP
Didn't think of this, but in fact I'm using sqlite, which seems to be a lot faster than postgreSQL. However, the controller function that i called does not touch the database. So unless web2py opens the database and kind of "leaves it there", it shouldn't happen (right?). Another behavior is th

[web2py] Re: flow charts

2010-11-10 Thread mart
Hey Alexandre, first jsPlumb, now this!... so many choices :) Looks so good as well :) and says "easy to use" right there on the front page! (love "easy to use"!). OK, tanks for that as well... I will try them both. Thanks for the tip! Mart :) On Nov 10, 10:08 pm, Alexandre Augusto wrote: >

[web2py] Re: blocking problem

2010-11-10 Thread mdipierro
Anyway... a background process may be a better solution (no session problem but you may still have sqlite lock unless you db.commit() manually after each update). On Nov 10, 11:57 pm, mdipierro wrote: > I do not think this is locking web2py. But there are two > possibilities: > - if you are usin

[web2py] Re: blocking problem

2010-11-10 Thread mdipierro
I do not think this is locking web2py. But there are two possibilities: - if you are using sqlite, the database is locked (sqlite cannot be accessed concurrently) - the user session is locked. This means the user who called the long running process cannot access other actions until his session is u

[web2py] Re: running web2py on Android?

2010-11-10 Thread mdipierro
did this work? should this perhaps be default in web2py? On Nov 9, 9:33 pm, mdipierro wrote: > http://code.google.com/p/android-scripting/issues/detail?id=276 > > On Nov 9, 6:18 pm, pallav wrote: > > > I checked and the line was already commented out. > > > I don't know how to run web2py with t

[web2py] blocking problem

2010-11-10 Thread VP
I have this problem that I think is related to threading and web2py. I have an apache2 standard setup with web2py. One of the function (in controller) is computing intensive, taking up to 10+ seconds to execute. When this function is called (i.e. http://domain/app/func), the app is locked up. O

[web2py] Re: Custom JSON-RPC error codes

2010-11-10 Thread mdipierro
Ok. In trunk. Please give this a try raise service.JsonRpcException(100,"info") On Nov 10, 10:07 pm, Matt wrote: > Hi there, > > (This is probably more or a small request that a question.) > > The JSON-RPC service by default always returns error codes of 100. > > Can we possibly have this amende

[web2py] Re: web2py as a cross-platform mobile application platform

2010-11-10 Thread mdipierro
Can you please run these tests for me? cd into the gluon folder and run python from there (or vice versa). >From the python shell run from contenttype import contenttype from storage import Storage, StorageList, Settings, Messages from validators import * from html import * from sqlhtml import *

[web2py] Re: Learning Management System survey

2010-11-10 Thread rāma
Interesting thread glad I found it by searching the group because this is what I am doing currently. However, the LMS is designed to be a prototype trial though. I will be testing the beta LMS with a bunch of students next week. I will be interested to help too in this project. On Nov 8, 2:45 pm,

[web2py] Custom JSON-RPC error codes

2010-11-10 Thread Matt
Hi there, (This is probably more or a small request that a question.) The JSON-RPC service by default always returns error codes of 100. Can we possibly have this amended so that we could say raise a custom JsonRpcException (from within our methods) provide a code, and message and have that code

[web2py] Re: flow charts

2010-11-10 Thread Alexandre Augusto
Hey Mart, If you like visual appealing JavaScript Framework you may also be interested in Raphaël—JavaScript Library What is it? Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web. If you want to create your own specific chart or image crop and r

[web2py] Re: medical data

2010-11-10 Thread DenesL
Try http://www.health.gov.on.ca/english/providers/program/drugs/edition_40.html On Nov 10, 8:02 pm, mdipierro wrote: > Not quite what I am looking for. Not software but lists of conditions > and drugs. > > On Nov 10, 6:23 pm, mart wrote: > > > have you checked this page? > > >http://en.wikipedia

[web2py] Re: help us test new admin on windows....

2010-11-10 Thread mdipierro
Can you email the page source in html? On Nov 10, 7:28 pm, Anthony wrote: > Now I get a flash that says "Searching: 1 files" -- but it still > doesn't display the matching file. > > On Nov 10, 5:26 pm, mdipierro wrote: > > > OK, I think I understand and it is fixed. Can you try it again (from >

[web2py] Re: Error Installing Appliance

2010-11-10 Thread Anthony
On Nov 10, 4:26 pm, Syed wrote: > Nice. Thanks for the tip. If I'm completely new to python and web2py-- > and am most interested building web2py apps on GAE--should I just > stick to official book for awhile? Will I need to delve into > peculiarities of GAE anytime soon? I haven't done anything

[web2py] Re: help us test new admin on windows....

2010-11-10 Thread Anthony
Now I get a flash that says "Searching: 1 files" -- but it still doesn't display the matching file. On Nov 10, 5:26 pm, mdipierro wrote: > OK, I think I understand and it is fixed. Can you try it again (from > trunk)? > > On Nov 10, 3:43 pm, Anthony wrote: > > > > > According to Firebug, when I

Re: [web2py] Re: Pagination [Web2py Utils] returns None

2010-11-10 Thread Thadeus Burgess
Its losing the args when it creates a new URL. It will require a patch on set_links so you can pass custom args and vars to URL. -- Thadeus On Wed, Nov 10, 2010 at 4:36 PM, Andrew Evans wrote: > I just noticed the difference in URLs > > https://127.0.0.1:8000/Working/display/product_wall/405

[web2py] Help with "No such file or directory" error

2010-11-10 Thread CesarBustios
Hi, i'm trying to make a copy of an image inside my "uploads" folder. I ´m using the shutil module: import shutil shutil.copy(path, destination) But i get "No such file or directory" error. Can anyone tell me the correct path if my project is inside: /home/user/web2py/applications/ myproject/uplo

[web2py] Re: medical data

2010-11-10 Thread mdipierro
Not quite what I am looking for. Not software but lists of conditions and drugs. On Nov 10, 6:23 pm, mart wrote: > have you checked this page? > > http://en.wikipedia.org/wiki/List_of_open_source_healthcare_software > > Mart :) > > On Nov 10, 5:44 pm, mdipierro wrote: > > > Does anybody know of

[web2py] radio button issue

2010-11-10 Thread mattynoce
can anyone figure out something going wrong here? i'm trying to get radio buttons that return True/False but show Yes/No to the user. these buttons look good but no matter what you select, they return True. this happens in appadmin, so there's nothing strange in my view code. Field('isComplet

[web2py] Re: Selecting from dropdown using Ajax

2010-11-10 Thread oneroler
Alex, Thanks for all your help. Yes, you were correct that the issue was simply that the id value was not being passed in the ajax call. Here is my final code for reference if anyone is interested. <> def test(): firms = db(db.firm).select() return dict(firms=firms) def test_chg():

[web2py] Re: plugin wiki on older aps?

2010-11-10 Thread mart
layout , eh? i"ll give it a go. I assume will be easier then better then me trying the photoshop thing... thanks again Mart :) On Nov 10, 2:10 pm, rochacbruno wrote: > You can try web2py.com/layouts > > Enviado via iPhone > > Em 10/11/2010, às 16:04, mart escreveu: > > > Works great! double t

[web2py] Re: medical data

2010-11-10 Thread mart
have you checked this page? http://en.wikipedia.org/wiki/List_of_open_source_healthcare_software Mart :) On Nov 10, 5:44 pm, mdipierro wrote: > Does anybody know of a free database (xml or csv) of medical > conditions and/or drugs?

[web2py] Re: flow charts

2010-11-10 Thread mart
Mic, now that's what I'm talking about! That looks awesome! :) Thanks for that! Mart :) On Nov 10, 5:33 pm, Michele Comitini wrote: > Hi mart, > > Not a flowchart app, a library, but you can make very nice charts if > you need to show them with web2py: > > http://morrisonpitt.com/jsPlumb/html/j

[web2py] Re: Pagination [Web2py Utils] returns None

2010-11-10 Thread Andrew Evans
I just noticed the difference in URLs https://127.0.0.1:8000/Working/display/product_wall/4056 above is the comments on the product notice the id. below is the next link of the pagination https://www.127.0.0.1:8000/Working/display/product_wall?p=5 it loses the 4056 which is the id of the produ

Re: [web2py] simple table div

2010-11-10 Thread rochacbruno
Nice! I want to use it. I am thinking in a way to create a inline editable table. Enviado via iPhone Em 10/11/2010, às 20:08, "Martin.Mulone" escreveu: > I decided to start to make my own implementation of table maker. The > diference with sqltable or TABLE(), it use div (more flexible), acc

[web2py] Re: Pyodbc error with web2py under Apache and mod_wsgi

2010-11-10 Thread azarkowsky
I just wanted to add that my new build of pyodbc using MinGW32 didn't seem to work either. I removed pyodbc from my Python site-packages folder and after installing MingW and adding it to my PATH in the pyodbc source folder I ran 'python setup.py build -c mingw32' followed by 'python setup.py inst

Re: [web2py] flow charts

2010-11-10 Thread Michele Comitini
Hi mart, Not a flowchart app, a library, but you can make very nice charts if you need to show them with web2py: http://morrisonpitt.com/jsPlumb/html/jquery/demo.html mic 2010/11/10 mart : > Hey, > > Anybody know of any relatively decent flow chart app out there that > would be compatible with

[web2py] Re: help us test new admin on windows....

2010-11-10 Thread mdipierro
OK, I think I understand and it is fixed. Can you try it again (from trunk)? On Nov 10, 3:43 pm, Anthony wrote: > According to Firebug, when I search for "gae", it is calling: > > http://127.0.0.1:8000/admin/default/search/welcome?keywords=gae > > and returning the following JSON response: > > {"

[web2py] Re: simple table div

2010-11-10 Thread Martín Mulone
this is the model 2010/11/10 Martin.Mulone > I decided to start to make my own implementation of table maker. The > diference with sqltable or TABLE(), it use div (more flexible), accept > web2py helpers as values and is very simple to use. > > Example: > > http://web2pytesting.appspot.com/table

[web2py] simple table div

2010-11-10 Thread Martin.Mulone
I decided to start to make my own implementation of table maker. The diference with sqltable or TABLE(), it use div (more flexible), accept web2py helpers as values and is very simple to use. Example: http://web2pytesting.appspot.com/tablediv/ Code: table = SIMPLE_TABLE_DIV(fixedwidth=True,maxw

[web2py] Re: CRON doesn't work

2010-11-10 Thread mdipierro
Please try the web2py nighlty built. On Nov 10, 3:48 pm, Jonas Rundberg wrote: > Hi Sverre, > > I have the exact same issue. (Running web2py 1.87.3) > Did you manage to get to work? > > / jonas > > On Nov 4, 11:10 am, Sverre wrote: > > > My cron tab looking like this > > > #crontab > > */2 * * *

[web2py] Re: CRON doesn't work

2010-11-10 Thread Jonas Rundberg
Hi Sverre, I have the exact same issue. (Running web2py 1.87.3) Did you manage to get to work? / jonas On Nov 4, 11:10 am, Sverre wrote: > My cron tab looking like this > > #crontab > */2 * * * *     root  *sys/test_cron > @hourly          root  *applications/mm/cron/expire_sessions.py > > but

[web2py] Re: help us test new admin on windows....

2010-11-10 Thread Anthony
According to Firebug, when I search for "gae", it is calling: http://127.0.0.1:8000/admin/default/search/welcome?keywords=gae and returning the following JSON response: {"files": ["models\\db.py"]} So, it appears to be working -- but the admin design page is not then displaying the output prope

[web2py] Re: Error Installing Appliance

2010-11-10 Thread Syed
Nice. Thanks for the tip. If I'm completely new to python and web2py-- and am most interested building web2py apps on GAE--should I just stick to official book for awhile? Will I need to delve into peculiarities of GAE anytime soon?

[web2py] Re: Error Installing Appliance

2010-11-10 Thread Anthony
On Nov 10, 3:18 pm, Syed wrote: > Complete user-error. Although I did reinstall with python 2.5.4 from > python.org, and then the binary distribution of web2py Note, if you run the binary version of web2py, I think it simply runs the Python interpreter that comes with web2py (which happens to be

[web2py] Re: How to switch back to English for the Admin interface?

2010-11-10 Thread mdipierro
send it to me and I will take a look. On Nov 10, 3:04 pm, guruyaya wrote: > I'm not sure how to attach files here, but I've created a patch that > creates a dropdown with all possible languages on the admin. Anyone > wants it? > > On Nov 10, 2:53 pm, Stefan Scholl wrote: > > > I know, but I don'

[web2py] Re: help us test new admin on windows....

2010-11-10 Thread mdipierro
In admin/controllers/default.py|search(), can you add a print statement to make sure it is being called and it is returning te correct list of matching files? On Nov 10, 2:49 pm, Anthony wrote: > > One thing that's a bit odd is the in file search, which doesn't seem > > to have any effect on FF

[web2py] Re: How to switch back to English for the Admin interface?

2010-11-10 Thread guruyaya
I'm not sure how to attach files here, but I've created a patch that creates a dropdown with all possible languages on the admin. Anyone wants it? On Nov 10, 2:53 pm, Stefan Scholl wrote: > I know, but I don't want to use one browser for development (English) > and one for the rest (German). > >

[web2py] Re: ProgrammingError: (2014, "Commands out of sync; you can't run this command now")

2010-11-10 Thread mdipierro
Here is a the problem. If you put queries in try... except you must follow this pattern: try: ... any db io ... except: db.rollback() If you do not rollback any subsequent attempt to commit or access the db again results in an error. On Nov 10, 2:07 pm, David Zejda wrote: > -BEGIN P

[web2py] Re: Error Installing Appliance

2010-11-10 Thread Anthony
> @Anthony: The reason that I am using python 2.5 is because I want > web2py to play nicely with App Engine. If I am limiting myself to > learning web2py first and foremost, does it matter that I am using > python 2.5? If you're creating an app for App Engine, then I suppose sticking with 2.5 make

[web2py] Re: help us test new admin on windows....

2010-11-10 Thread Anthony
> One thing that's a bit odd is the in file search, which doesn't seem > to have any effect on FF (I entered "index" and pressed enter). On IE > it's a bit different: "index" and [enter] collapsed all sections > (Models, Controllers, Views,...) and they couldn't be expanded again > after this. Only

[web2py] Re: CRUD select with autosort headers

2010-11-10 Thread yamandu
But this fails when you to show the result of a query. You can only filter by one field from the serverside. It´s good, but not enough. A lot of potential of this jquery plugin is being lost. The editable jqgrid plugin is good, but is not documented and does not work fully. Would be nice to have it

[web2py] Re: error with uploadfield and blob

2010-11-10 Thread richard.ree
Not long at all. Many thanks! On Nov 10, 8:51 am, mdipierro wrote: > bug. Fixed in trunk. Sorry it took so long. > > On Nov 8, 10:38 pm, "richard.ree" wrote: > > > I want to upload a file and store it in a blob field: > > > db.define_table( > >     "data", > >     Field("citation", "string", re

[web2py] Re: Error Installing Appliance

2010-11-10 Thread Syed
Complete user-error. Although I did reinstall with python 2.5.4 from python.org, and then the binary distribution of web2py, the probably was a result of me trying to install instantpress_beta5.zip. I found the proper file: web2py.app.instantpress_beta5.w2p Installation was without issue. Sorry a

Re: [web2py] Re: ProgrammingError: (2014, "Commands out of sync; you can't run this command now")

2010-11-10 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This one is also quite common: Traceback (most recent call last): File "/opt/web2py/gluon/main.py", line 475, in wsgibase BaseAdapter.close_all_instances(BaseAdapter.rollback) File "/opt/web2py/gluon/sql.py", line 810, in close_all_instances

[web2py] Re: help us test new admin on windows....

2010-11-10 Thread qqsaqq
IE8 to be precise On 10 Nov., 21:00, qqsaqq wrote: > I tried the nightly on Win7 with FF 3.6 and IE. > > I couldn't break anything significant. Creating an app and fiddling > around with it worked just fine. > > One thing that's a bit odd is the in file search, which doesn't seem > to have any ef

[web2py] Re: Can I use redirect to pass hash variable?

2010-11-10 Thread mdipierro
URL generates a URL, it can only contains strings. On Nov 10, 1:50 pm, Tom Chang wrote: > All, > > I just realized that when I pass a hash variable to redirect, it will > get converted into a string? Is there a way I can pass a hash variable > via redirect? > > for example, > redirect(URL(r=reque

[web2py] Re: help us test new admin on windows....

2010-11-10 Thread qqsaqq
I tried the nightly on Win7 with FF 3.6 and IE. I couldn't break anything significant. Creating an app and fiddling around with it worked just fine. One thing that's a bit odd is the in file search, which doesn't seem to have any effect on FF (I entered "index" and pressed enter). On IE it's a bi

[web2py] Re: linked tables and dropdown display

2010-11-10 Thread mdipierro
db.define.table('advanced' Field('name1',requires=IS_IN_DB(db,'basic.name1')), On Nov 10, 1:49 pm, andrej burja wrote: > hi > > is it possible to create a text field in table 'advandced' containing > 'name1' (no reference, just characters) > > andrej > > On 10 nov., 15:22, mdipier

[web2py] Re: another component question

2010-11-10 Thread mdipierro
On Nov 10, 12:50 pm, Chris Baron wrote: > Hello web2py users, > > I've been playing around with components recently and they are helping > me modularize my application.  I was hoping someone could explain to > me why they do what they do. > > I've noticed that when a controller function that is

[web2py] Re: help us test new admin on windows....

2010-11-10 Thread mdipierro
fixed in trunk On Nov 10, 11:55 am, Branko Vukelic wrote: > On Wed, Nov 10, 2010 at 6:51 PM, Anthony wrote: > > now that we're indenting the file names within subfolders, maybe we > > can simply get rid of the path altogether (this will especially help > > when there are several nested subfolder

Re: [web2py] Re: making layout plugin

2010-11-10 Thread John Kim Murphy
I kind of stopped working on it after I learned that the Web2Py nightly has a default layout that is much more pleasing to the eye. I just wanted to demo my Web2Py appliances with a better looking theme. You can grab what I have, though: http://dl.dropbox.com/u/508947/plugin_layout_metamorphosis.z

[web2py] Can I use redirect to pass hash variable?

2010-11-10 Thread Tom Chang
All, I just realized that when I pass a hash variable to redirect, it will get converted into a string? Is there a way I can pass a hash variable via redirect? for example, redirect(URL(r=request, f='scmView.html',vars=dict(scmResult=scmResult, a= a, totalCm=totalCm,osPath=osPath,scmOUI=scmOUI,sc

[web2py] Re: linked tables and dropdown display

2010-11-10 Thread andrej burja
hi is it possible to create a text field in table 'advandced' containing 'name1' (no reference, just characters) andrej On 10 nov., 15:22, mdipierro wrote: > ERRATA: > > do this: > > db.define.table('basic' >                 Field('name1') >                 ...,format='%(name1)s') > > db.defin

[web2py] Web2py Application Exhibition ( Version 2.0 ) 5 weeks to go!

2010-11-10 Thread NetAdmin
Just in case you didn't see the "pinned" message at the top of the group messages, there are 5 weeks to get your apps ready for the Web2py Application Exhibition ( Version 2.0 ) For more details, see the "pinned" message. Good Luck! Mr.NetAdmin

[web2py] Re: making layout plugin

2010-11-10 Thread Carlos
Hi John, I'm interested on the theme you are working on for web2py, in case you want to share. Thanks!, Carlos On Nov 9, 4:25 am, John Murphy wrote: > There are numerous web2py themes, but none of them are very good. So I > decided to make a nice one based > on:http://demo.woothemes.com/?

Re: [web2py] Re: plugin wiki on older aps?

2010-11-10 Thread rochacbruno
You can try web2py.com/layouts Enviado via iPhone Em 10/11/2010, às 16:04, mart escreveu: > Works great! double thanks! she'll be thrilled, now I just need to > change the blueish-green header/footer to purple, then I can walk > away :) > > On Nov 10, 12:51 pm, mart wrote: >> ah, i see it! :

[web2py] another component question

2010-11-10 Thread Chris Baron
Hello web2py users, I've been playing around with components recently and they are helping me modularize my application. I was hoping someone could explain to me why they do what they do. I've noticed that when a controller function that is referenced by a component returns a dict(), it require

[web2py] Re: Pyodbc error with web2py under Apache and mod_wsgi

2010-11-10 Thread azarkowsky
Hi Massimo, Thanks for your prompt response. That was my first thought as well. The system I'm working on though is a pretty fresh build and searching the file system for 'site-packages' I only find results (as expected) within web2py and in my python installation folder, 'C:\python'. So unless

[web2py] Re: cas incorrect address in email

2010-11-10 Thread mdipierro
fixed everywhere I think On Nov 10, 9:58 am, leone wrote: > Hi, > CAS return this incorrect address in > emailhttps://mdp.cti.depaul.edu/cas/cas/verify?id=191&key=d1c373ab1570cfb9... > It must > behttps://www.web2py.com/cas/cas/verify?id=191&key=d1c373ab1570cfb9a7db... > What can I do to correc

[web2py] problem whith admin

2010-11-10 Thread Jose
I have to edit some applications problems with the new admin. With some works without problems. In other gives the following error: Traceback (most recent call last): File "/usr/home/jose/web2py/gluon/restricted.py", line 188, in restricted exec ccode in environment File "/usr/home/jose/w

[web2py] Re: plugin wiki on older aps?

2010-11-10 Thread mart
Works great! double thanks! she'll be thrilled, now I just need to change the blueish-green header/footer to purple, then I can walk away :) On Nov 10, 12:51 pm, mart wrote: > ah, i see it! :) Great! I must have declined the "replace file?" while > dropping an updated filesset. > > thank you very

[web2py] Re: Book Update - Chapter 9 - Pyjamas and jsonrpc

2010-11-10 Thread João Ventura
Hi again, I can login in the book application, using my google credentials, but I don't know how to edit the page, can't seem to find any edit button. Googled for how to do it, but can't seem to find how. I think I'm not editor already, but if you want, you can make me editor, and I shall gladly e

[web2py] flow charts

2010-11-10 Thread mart
Hey, Anybody know of any relatively decent flow chart app out there that would be compatible with web2py? Thanks, Mart :)

Re: [web2py] Re: help us test new admin on windows....

2010-11-10 Thread Branko Vukelic
On Wed, Nov 10, 2010 at 6:51 PM, Anthony wrote: > now that we're indenting the file names within subfolders, maybe we > can simply get rid of the path altogether (this will especially help > when there are several nested subfolders). I absolutely agree. In fact, I would have done it myself, but t

[web2py] Re: plugin wiki on older aps?

2010-11-10 Thread mart
ah, i see it! :) Great! I must have declined the "replace file?" while dropping an updated filesset. thank you very much for that! :) On Nov 10, 12:35 pm, Bruno Rocha wrote: > The newest > versionhttp://code.google.com/p/web2py/source/browse/applications/welcome/vi... > > 2010/11/10 Bruno Rocha

[web2py] Re: help us test new admin on windows....

2010-11-10 Thread Anthony
Creating a new app and editing files seems to work fine in IE and FF on Windows. One question: For files in subfolders, there is no slash in between the folder and file name (e.g., under static/css/ it says "css base.css" instead of "css/base.css") -- is that intentional? Actually, now that we're

[web2py] Re: IMG helper and _width

2010-11-10 Thread annet
@Bruno, Thanks for providing me with a working solution. @Denes, Thanks for explaining me why I got this error. Kind regards, Annet. On Nov 10, 3:20 pm, DenesL wrote: > Annet, allow me a little explanation on why you got SyntaxError: > keyword can't be an expression. > web2py does not kno

Re: [web2py] plugin wiki on older aps?

2010-11-10 Thread Bruno Rocha
The newest version http://code.google.com/p/web2py/source/browse/applications/welcome/views/web2py_ajax.html 2010/11/10 Bruno Rocha > You have to replace web2py_ajax.html to a new version. > > web2py_components depends on some things in web2py_ajax.html! > > > > 2010/11/10 mart > > Hi, >> >> He

Re: [web2py] plugin wiki on older aps?

2010-11-10 Thread Bruno Rocha
You have to replace web2py_ajax.html to a new version. web2py_components depends on some things in web2py_ajax.html! 2010/11/10 mart > Hi, > > Helping my daughter with a school project and she loves the look of > web2py in the "Example minimalist wiki with versioning and > authentication". Sh

[web2py] plugin wiki on older aps?

2010-11-10 Thread mart
Hi, Helping my daughter with a school project and she loves the look of web2py in the "Example minimalist wiki with versioning and authentication". She 's making a "memory game" (not sure how, but she is ;) ). Since she knows how to use the widget builder in plugin_wiki, she installed it, has the

[web2py] Re: new demo appliance for gmap and fullcalendar

2010-11-10 Thread JmiXIII
Nice example... Just a note : Line 25 of mycal.html stop: new Date('{{=row.f_end_time.strftime('%B %d, %Y %H:%M:%S')}}'), should be: end: new Date('{{=row.f_end_time.strftime('%B %d, %Y %H:%M:%S')}}'), So events longer than a day render correctly. On 10 nov, 16:35, mdipierro wrote: > http://web

[web2py] Pagination [Web2py Utils] returns None

2010-11-10 Thread Andrew Evans
Hello I am trying to create some pagination on my comments page everything seems to be working, however when I click the next link it goes to a page that all it says is None Anyone know why this is happening and how to fix it There are entries in the db. Thanks in Advance below is my code *che

[web2py] Re: help us test new admin on windows....

2010-11-10 Thread mart
Is it worth a test on Mac? On Nov 10, 10:48 am, mdipierro wrote: > download the windows binary (nightly built) from > >    http://web2py.com/examples/default/download > > with FF and IE, try admin, try create a new app and edit a file, > report any problem.

Re: [web2py] Re: "UnicodeDecodeError: 'ascii' codec can't decode byte ...

2010-11-10 Thread Omri
I should have thought about that.. the result from the print data function is: {u'textfield': u'Viele Umlauts: \xe4\xe4\xe4\xfc\xfc\xfc\xdc\xdc\xdc\xd6\xd6\xd6\xe4\xe4\xe4', u'name': u'\xdcberprufen'} for the following data sent: data = { name : "Überprufen", textfield

[web2py] Re: Plugin_JqGrid long-polling

2010-11-10 Thread AsmanCom
By the way, how can i set initially the "var server_time=null;" to a python readble False? THX On 10 Nov., 16:55, mdipierro wrote: > You need to install firebug and check in the console log what is going > on. > > On Nov 10, 9:53 am, AsmanCom wrote: > > > tried it like this: > > > app/models/pl

[web2py] Re: Plugin_JqGrid long-polling

2010-11-10 Thread AsmanCom
http://127.0.0.1:8000/core/plugin_jqgrid/data?fieldname=&tablename=device&fieldvalue=None&columns=id%2Ccolumn1%2Ccolumn2%2Ccolumn3%2Ccolumn4%2Ccolumn5%2Ccolumn6%2Ccolumn7%2Ccolumn8%2Ccolumn9%2Ccolumn10&server_timenull&_search=false&nd=1289404767209&rows=10&page=1&sidx=&sord=asc Parameter: _search

[web2py] cas incorrect address in email

2010-11-10 Thread leone
Hi, CAS return this incorrect address in email https://mdp.cti.depaul.edu/cas/cas/verify?id=191&key=d1c373ab1570cfb9a7dbb53c186b37a2 It must be https://www.web2py.com/cas/cas/verify?id=191&key=d1c373ab1570cfb9a7dbb53c186b37a2 What can I do to correct it. There is a CAS application downloadable? Tha

[web2py] Re: Plugin_JqGrid long-polling

2010-11-10 Thread mdipierro
You need to install firebug and check in the console log what is going on. On Nov 10, 9:53 am, AsmanCom wrote: > tried it like this: > > app/models/plugin_jqgrid.py: > > var server_time=null; > jQuery(document).ready(function(server_time){jQuery("#% > (id)s").jqGrid({ > url:'%(callback)s&server_t

[web2py] Re: Plugin_JqGrid long-polling

2010-11-10 Thread AsmanCom
tried it like this: app/models/plugin_jqgrid.py: var server_time=null; jQuery(document).ready(function(server_time){jQuery("#% (id)s").jqGrid({ url:'%(callback)s&server_time'+escape(server_time), app/controllers/plugin_jqgrid.py: def data(): sleep(10) ... test1 = request.vars.serv

[web2py] help us test new admin on windows....

2010-11-10 Thread mdipierro
download the windows binary (nightly built) from http://web2py.com/examples/default/download with FF and IE, try admin, try create a new app and edit a file, report any problem.

[web2py] Re: Error Installing Appliance

2010-11-10 Thread Anthony
Note, if you use the web2py binary, it includes Python (2.5, I think), so you don't need to install Python separately. If you want to install your own Python, then you can run web2py from source on Windows (make sure your Python installation directory is in your Windows PATH variable). If installin

[web2py] Re: Plugin_JqGrid long-polling

2010-11-10 Thread mdipierro
replace jQuery(document).ready(function(server_time){jQuery("#% (id)s").jqGrid({ url:'%(callback)s', with jQuery(document).ready(function(server_time){jQuery("#% (id)s").jqGrid({ url:'%(callback)s&server_time'+escape(server_time), On Nov 10, 9:34 am, AsmanCom wrote: > Hi M

[web2py] Re: Plugin_JqGrid long-polling

2010-11-10 Thread AsmanCom
Hi Massimo, never mind. I do not want the variable passed with jQuery.getJSON, but with the url: '% (callback) s', which is called with LoadComplete: .trigger ("reload grid"). Here's the code so far.. _ app/models/plugin_jqgrid.py: def plugin_li

[web2py] Re: Error Installing Appliance

2010-11-10 Thread Syed
I'll make sure that all variables are removed from the equation.--I'll uninstall everything and that start from scratch with 2.5.5 from python.org. And then I'll be sure to try the binary distribution. I'll report back with the results. Thanks.

[web2py] Re: Upload a file to db and store all metadata to separated db fields

2010-11-10 Thread mdipierro
def Upload(): from gluon.contenttype import contenttype import os, stat form=SQLFORM(db.image) if form.accepts(request.vars, session): file_handler = request.vars.pic ### this if a cgi.FieldStorage file_path = os.path.join(request.folder, 'uploads/',form.vars.pic)

[web2py] Re: error with uploadfield and blob

2010-11-10 Thread mdipierro
bug. Fixed in trunk. Sorry it took so long. On Nov 8, 10:38 pm, "richard.ree" wrote: > I want to upload a file and store it in a blob field: > > db.define_table( >     "data", >     Field("citation", "string", required=True, notnull=True), >     Field("datafile", "upload", uploadfield="data"), >

[web2py] Re: Error Installing Appliance

2010-11-10 Thread mdipierro
If you are using Windows, can you please try the web2py binary distribution. Personally I have never used web2py with ActiveState Python and I cannot exclude some quirks with it. On Nov 10, 7:31 am, Syed wrote: > Apologies for what will probably be a complete noob-error. I just > tried installing

[web2py] Re: Plugin_JqGrid long-polling

2010-11-10 Thread mdipierro
Sorry I did not help. I cannot help you because the code you have above is incomplete. It opens a """ but never closes so I not understand how callback is used. Anyway I assume in the view you have: {{callback = URL(r=request,c='plugin_jqgrid',f='data', vars=dict(tablename=tabl

[web2py] Re: Manipulate Rows Object and/or SQLTABLE

2010-11-10 Thread DenesL
If all you need is an extra column have a look at col3 in SQLFORM http://web2py.com/book/default/chapter/07#SQLFORM On Nov 10, 5:33 am, villas wrote: > The function looks interesting, but I didnt understand how to create > the cols var. > > def mytable(rows, cols): > return TABLE(*[TR(*[TD(

[web2py] Re: CAS not found

2010-11-10 Thread mdipierro
Has moved http://web2py.com/cas On Nov 10, 6:46 am, notabene wrote: > The CAS  provider applicance should be > here.http://mdp.cti.depaul.edu/appliances/default/index (https://www.web2py.com/cas)https://mdp.cti.depaul.edu/cas(http://en.wikipedia.org/wiki/ > Central_Authentication_Service). > >

[web2py] Re: Small suggestion regarding auth.add_membership

2010-11-10 Thread mdipierro
yes. In trunk, please check it. On Nov 10, 5:52 am, Omri wrote: > Hello all, > > I used auth.add_membership today for the first time, and I realized > that the add_membership function adds a membership also if the user > already has this membership. > > Wouldn't it make more sense if the function

[web2py] Re: Plugin_JqGrid long-polling

2010-11-10 Thread AsmanCom
Is there no solution to my concerns? It´s such a pity...

  1   2   >