[web2py:27223] Re: temporary table

2009-07-22 Thread Vidul Petrov
> That's why the question was asked: what do you need to do exactly? Do this: db._execute('CREATE TEMPORARY TABLE tmp (id INT)') # or whatever the SQL server's dialect requires On Jul 23, 7:42 am, Hans Donner wrote: > That's why the question was asked: what do you need to do exactly? > Perhap

[web2py:27222] Re: Global setting for domain name?

2009-07-22 Thread Bottiger
Also a setting like this should be global to all applications while stuffing it in a model will only apply to one application. So there needs to be a global site-wide config just like routes.py. On Jul 22, 7:47 pm, Bottiger wrote: > Uhhh, so the solution is to make a file called 0.py in the mode

[web2py:27221] Re: temporary table

2009-07-22 Thread Hans Donner
That's why the question was asked: what do you need to do exactly? Perhaps a more elegant solution can be used. On Thu, Jul 23, 2009 at 03:10, Vidul Petrov wrote: > > The implementation of temporary tables is not MVC, but RDBMS specific. > > On Jul 23, 12:36 am, Fran wrote: >> On Jul 22, 9:41 pm

[web2py:27220] Re: temporary table

2009-07-22 Thread Hans Donner
That's why the question was asked: what do you need to do exactly? Perhaps a more elegant solution can be used. On Thu, Jul 23, 2009 at 03:10, Vidul Petrov wrote: > > The implementation of temporary tables is not MVC, but RDBMS specific. > > On Jul 23, 12:36 am, Fran wrote: >> On Jul 22, 9:41 pm

[web2py:27219] Re: IS_IN_DB() generates too many options !

2009-07-22 Thread ionel
Another one: http://loopj.com/2009/04/25/jquery-plugin-tokenizing-autocomplete-text-entry/ demo page: http://loopj.com/tokeninput/demo.html On Jul 22, 7:08 pm, DenesL wrote: > On Jul 22, 4:39 pm, Fran wrote: > > > On Jul 22, 9:59 pm, DenesL wrote: > > > > I just found this, it could be an o

[web2py:27218] Re: Global setting for domain name?

2009-07-22 Thread Bottiger
Uhhh, so the solution is to make a file called 0.py in the models folder? This sounds very hackish. There should be an official way to do this. On Jul 22, 4:01 pm, Yarko Tymciurak wrote: > yes - here's what you need to know: > > every request that comes into the server, and then kicks off a we2p

[web2py:27217] Re: IS_IN_DB() generates too many options !

2009-07-22 Thread DenesL
On Jul 22, 4:39 pm, Fran wrote: > On Jul 22, 9:59 pm, DenesL wrote: > > > I just found this, it could be an option > > too:http://plugins.jquery.com/project/DDComboBox > > I like the idea (this was my original look/feel idea) but alpha > development code from 2004? ;) > > F I know, but if it w

[web2py:27216] Re: temporary table

2009-07-22 Thread Vidul Petrov
The implementation of temporary tables is not MVC, but RDBMS specific. On Jul 23, 12:36 am, Fran wrote: > On Jul 22, 9:41 pm, rb wrote: > > > If you are using SQLite then you could create a db in memory and keep > > your temp table there. You can create the table outside of web2py and > > then

[web2py:27215] Re: Does CRON work on GAE?

2009-07-22 Thread Vidul Petrov
It turnes out that the GAE cron daemon does the same work if it comes to a method invocation (should be a valid URL). I.e. there is no need for conversion. The problem, as I see it, is the method protection, what I did is something like: # the GAE cron file: # /cron.yaml cron: - description: dail

[web2py:27214] Re: Two tables that link to each other

2009-07-22 Thread Jonathan Lundell
On Jul 22, 2009, at 5:03 PM, Yarko Tymciurak wrote: > On Wed, Jul 22, 2009 at 6:59 PM, Jonathan Lundell > wrote: > On Jul 21, 2009, at 9:14 PM, Yarko Tymciurak wrote: > >> There is a section in the new book draft which covers Self- >> Reference and Aliases (self-reference notation was added,

[web2py:27213] Re: Two tables that link to each other

2009-07-22 Thread Yarko Tymciurak
On Wed, Jul 22, 2009 at 6:59 PM, Jonathan Lundell wrote: > On Jul 21, 2009, at 9:14 PM, Yarko Tymciurak wrote: > > There is a section in the new book draft which covers Self-Reference and > Aliases (self-reference notation was added, I believe, after the first > version went to print). > > > Yes,

[web2py:27212] Re: Global setting for domain name?

2009-07-22 Thread Yarko Tymciurak
On Wed, Jul 22, 2009 at 6:21 PM, Jonathan Lundell wrote: > On Jul 22, 2009, at 4:01 PM, Yarko Tymciurak wrote: > > yes - here's what you need to know: > > every request that comes into the server, and then kicks off a we2py thread > starts in main.py, which parses and finds the appropriate applica

[web2py:27211] Re: Two tables that link to each other

2009-07-22 Thread Jonathan Lundell
On Jul 21, 2009, at 9:14 PM, Yarko Tymciurak wrote: > There is a section in the new book draft which covers Self-Reference > and Aliases (self-reference notation was added, I believe, after > the first version went to print). Yes, I've read it. What I'm saying is that it ought to be extended

[web2py:27210] Re: HTML helpers

2009-07-22 Thread Yarko Tymciurak
On Wed, Jul 22, 2009 at 6:07 PM, Alex Fanjul wrote: > So you can put "=" wherever you want to spit out the html??? you are > keeping a lot of good trickss gr ;-) > the template language is just python; you use "pass" to unambiguate where in "normal" python you would un-indent. Whe

[web2py:27209] Re: Global setting for domain name?

2009-07-22 Thread Jonathan Lundell
On Jul 22, 2009, at 4:01 PM, Yarko Tymciurak wrote: > yes - here's what you need to know: > > every request that comes into the server, and then kicks off a we2py > thread starts in main.py, which parses and finds the appropriate > applicaition, controller and function being requested. Then,

[web2py:27208] Re: Where/How I can personalize the CRUD behavior and Layout ?

2009-07-22 Thread ProfessionalIT
Ok, Fran Now, I have all information to resolve my problem and my questions !. Thanks for the all respost. Leandro. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send e

[web2py:27207] Re: HTML helpers

2009-07-22 Thread Alex Fanjul
So you can put "=" wherever you want to spit out the html??? you are keeping a lot of good trickss gr ;-) thanks alex El 22/07/2009 22:48, Yarko Tymciurak escribió: > sorry... that should have been: > > On Wed, Jul 22, 2009 at 3:46 PM, Yarko Tymciurak > wrote: >

[web2py:27206] Re: Global setting for domain name?

2009-07-22 Thread Yarko Tymciurak
yes - here's what you need to know: every request that comes into the server, and then kicks off a we2py thread starts in main.py, which parses and finds the appropriate applicaition, controller and function being requested. Then, to set up the environment for the request (so the controller can

[web2py:27205] Re: Where/How I can personalize the CRUD behavior and Layout ?

2009-07-22 Thread Fran
On Jul 22, 11:30 pm, ProfessionalIT wrote: > > Previously I did it server-side based on this > > article:http://99babysteps.appspot.com/how2/default/article_read/2 > > There are simpler examples around too (search this group for > > 'pagination') >    This code have sintax error and don't work.

[web2py:27204] Re: Where/How I can personalize the CRUD behavior and Layout ?

2009-07-22 Thread ProfessionalIT
> This works though :) > form = crud.create(db.table) > form['_class'] = 'myclass' > form['_id'] = 'myid' > Perfect, this works fine. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to th

[web2py:27203] Re: Where/How I can personalize the CRUD behavior and Layout ?

2009-07-22 Thread Fran
On Jul 22, 11:30 pm, ProfessionalIT wrote: > > > and implement a pagination in the records..Where/How I can do this ? > > I do paginationclient-side using the excellent jQuery dataTables > > plugin:http://datatables.net >    Humm, How to integrate this datatables with Web2Py ? Do you have a > exa

[web2py:27202] Re: Where/How I can personalize the CRUD behavior and Layout ?

2009-07-22 Thread Fran
On Jul 22, 9:55 pm, Fran wrote: > >    3) How to personalize the generated HTML by the CRUD, for example, > > can I assign an ID or a CSS class for the generated HTML table of > > select action ? > Unfortunately crud doesn't support doing things like: > form = crud.create(db.table, _id='myid', _c

[web2py:27201] Re: Global setting for domain name?

2009-07-22 Thread Fran
On Jul 22, 11:18 pm, Bottiger wrote: > And that is my question. Where can I put it so it is a globally > accessable variable? I don't think Web2Py has a global configuration > file, or does it? Aha! Anywhere in the model will work fine :) F --~--~-~--~~~---~--~~

[web2py:27200] Re: Where/How I can personalize the CRUD behavior and Layout ?

2009-07-22 Thread ProfessionalIT
> NB The default IDs are already very CSS-friendly, so you should be > able to make use of those & not need to define your own. > > Going back to the original question I see you were looking at the > output of crud.select() which *does* support the custom attributes I > highlighted earlier, so t

[web2py:27199] Re: Where/How I can personalize the CRUD behavior and Layout ?

2009-07-22 Thread ProfessionalIT
Fran, > >    1) In the action default/data/select/"table_name" the generated > > output is a HTML table with all records and columns of the > > "table_name". Well, if I want hide some columns > > db.table.field.readable = False This resolve the problem. > > > and implement a pagination in the

[web2py:27198] Re: small nit with auth function name: retrieve_password()

2009-07-22 Thread Jonathan Lundell
On Jul 22, 2009, at 3:04 PM, Fran wrote: > On Jul 22, 10:59 pm, Dan wrote: >> It looks like this function performs a password reset, not a >> retrieval. Should it be renamed? > > Renaming it now would break code. > The new book does mention that the name is misleading... How about a new functio

[web2py:27197] Re: Anyone in Southern Calif

2009-07-22 Thread mikech
I will wait another week to see if anyone answers here before pursuing this. I can't do it because I'm a novice in all of the important areas. On Jul 21, 6:42 am, mdipierro wrote: > I am sure you'll find some volunteers. If anybody needs copy of my > slides let me know. If you cannot find any

[web2py:27196] Re: Global setting for domain name?

2009-07-22 Thread Bottiger
And that is my question. Where can I put it so it is a globally accessable variable? I don't think Web2Py has a global configuration file, or does it? On Jul 22, 3:05 pm, Fran wrote: > On Jul 22, 11:01 pm, Bottiger wrote: > > > Its useful when you need the full URL. > > I needed this when getti

[web2py:27195] Re: Global setting for domain name?

2009-07-22 Thread Fran
On Jul 22, 11:01 pm, Bottiger wrote: > Its useful when you need the full URL. > I needed this when getting Massimo's OpenID to work. Right now, its > hardcoded in. Well, there's no way that Web2Py can know what this is for sure as there can eb proxies in front. This is why it has to be edited ma

[web2py:27194] Re: small nit with auth function name: retrieve_password()

2009-07-22 Thread Fran
On Jul 22, 10:59 pm, Dan wrote: > It looks like this function performs a password reset, not a > retrieval. Should it be renamed? Renaming it now would break code. The new book does mention that the name is misleading... F --~--~-~--~~~---~--~~ You received this

[web2py:27193] Re: Global setting for domain name?

2009-07-22 Thread Bottiger
Its useful when you need the full URL. I needed this when getting Massimo's OpenID to work. Right now, its hardcoded in. On Jul 22, 2:40 pm, Fran wrote: > On Jul 22, 10:20 pm, Bottiger wrote: > > > Yarko, what I am saying is that URL() does not add the "http:// > > 127.0.0.1:8000" prefix. > >

[web2py:27192] small nit with auth function name: retrieve_password()

2009-07-22 Thread Dan
It looks like this function performs a password reset, not a retrieval. Should it be renamed? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegro

[web2py:27191] Re: Global setting for domain name?

2009-07-22 Thread Yarko Tymciurak
Sorry - yes, you're right... URL does relative to the site URI; On Wed, Jul 22, 2009 at 4:20 PM, Bottiger wrote: > > Yarko, what I am saying is that URL() does not add the "http:// > 127.0.0.1:8000" prefix. > > You can test it out for yourself to see what I mean. > > On Jul 22, 2:09 pm, Yarko

[web2py:27190] Re: Global setting for domain name?

2009-07-22 Thread Fran
On Jul 22, 10:20 pm, Bottiger wrote: > Yarko, what I am saying is that URL() does not add the "http:// > 127.0.0.1:8000" prefix. It doesn't indeed - it provides just the /.../... part. It has no way of being sure what the rest might be & it should never be needed unless you're running an app di

[web2py:27189] Re: IS_IN_DB() generates too many options !

2009-07-22 Thread Fran
On Jul 22, 9:59 pm, DenesL wrote: > I just found this, it could be an option > too:http://plugins.jquery.com/project/DDComboBox I like the idea (this was my original look/feel idea) but alpha development code from 2004? ;) F --~--~-~--~~~---~--~~ You received th

[web2py:27188] Re: temporary table

2009-07-22 Thread Fran
On Jul 22, 9:41 pm, rb wrote: > If you are using SQLite then you could create a db in memory and keep > your temp table there. You can create the table outside of web2py and > then in your SQLDB call you can add the parameter migrate=False to > import the db into web2py. I guess you could achiev

[web2py:27187] Re: Global setting for domain name?

2009-07-22 Thread Bottiger
Yarko, what I am saying is that URL() does not add the "http:// 127.0.0.1:8000" prefix. You can test it out for yourself to see what I mean. On Jul 22, 2:09 pm, Yarko Tymciurak wrote: > The pattern for URL is: > > URL( application, controller, function, args, vars ) > > if you pass a request va

[web2py:27186] Re: allow NULL in date field in SQLFORM

2009-07-22 Thread mdipierro
do not use {{=row.datefield}} use {{=db.table.datetfield.formatter(row.datefield)}} On Jul 22, 8:22 am, DenisBY wrote: > I've translated it so translation looks like: > %Y-%m-%d => %d.%m.%Y > in view in input field date looks like %d.%m.%Y but after adding it > becomes %Y-%m-%d > you can test

[web2py:27185] Re: Global setting for domain name?

2009-07-22 Thread Yarko Tymciurak
The pattern for URL is: URL( application, controller, function, args, vars ) if you pass a request variable, it will start from the info in request, and override what you've supplied with additional arguments. For example: URL(r = request) Will return the URL of the current request;. If it is

[web2py:27183] Re: IS_IN_DB() generates too many options !

2009-07-22 Thread DenesL
I just found this, it could be an option too: http://plugins.jquery.com/project/DDComboBox --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegrou

[web2py:27184] Re: Where/How I can personalize the CRUD behavior and Layout ?

2009-07-22 Thread Fran
On Jul 22, 9:55 pm, Fran wrote: > >    3) How to personalize the generated HTML by the CRUD, for example, > > can I assign an ID or a CSS class for the generated HTML table of > > select action ? > Unfortunately crud doesn't support doing things like: > form = crud.create(db.table, _id='myid', _c

[web2py:27182] Global setting for domain name?

2009-07-22 Thread Bottiger
Let's say you simply want the URL for a page such as http://127.0.0.1:8000/welcome/default/index You can use URL(f='index') but it gives you a somewhat relative path. /welcome/default/index So what is the best way to go about adding the http://127.0.0.1:8000 prefix for the entire website? --~-

[web2py:27181] Re: Where/How I can personalize the CRUD behavior and Layout ?

2009-07-22 Thread Fran
On Jul 22, 8:10 pm, Leandro - ProfessionalIT wrote: >    1) In the action default/data/select/"table_name" the generated > output is a HTML table with all records and columns of the > "table_name". Well, if I want hide some columns db.table.field.readable = False > and implement a pagination in

[web2py:27180] Re: HTML helpers

2009-07-22 Thread Yarko Tymciurak
On Wed, Jul 22, 2009 at 3:46 PM, Yarko Tymciurak wrote: > These are convenience classes, and can be useful when generating page > elements with code (you don't have to worry about balanced HTML elements, > nesting, etc. so much then). Also, for programmatic composition, helper elements can be

[web2py:27179] Re: Problems migrating mysql database with SQL import/export

2009-07-22 Thread Alex Fanjul
Ok, Yarko, this is the second time it happens to me, but surely I'm doing something wrong... Let me go deeper and see if I can reconstruc all the process... I'll keep you informed alex f El 22/07/2009 22:36, Yarko Tymciurak escribió: > I have never seen this problem - we used postgresql for PyCo

[web2py:27178] Re: HTML helpers

2009-07-22 Thread Yarko Tymciurak
sorry... that should have been: On Wed, Jul 22, 2009 at 3:46 PM, Yarko Tymciurak wrote: > > {{ for item in list: >*=*TD(TR(item)) > }} > > just might look better than the alternative > > > > On Wed, Jul 22, 2009 at 3:31 PM, Julio wrote: > >> >> This has came up countless of times, you'l

[web2py:27177] Re: HTML helpers

2009-07-22 Thread Yarko Tymciurak
These are convenience classes, and can be useful when generating page elements with code (you don't have to worry about balanced HTML elements, nesting, etc. so much then). Sometimes, things are more readable when you use the helpers to place elements in the middle of template code (so it is a rea

[web2py:27176] Re: Problems migrating mysql database with SQL import/export

2009-07-22 Thread Fran
On Jul 22, 9:06 pm, Alex Fanjul wrote: > When you generate data in web2py, it starts with id=0 It doesn't - it starts with id=1 This is even documented in the book (pg 139) > Clear Example: in web2py, the first auth_user has "id=0" Not in my installation :-? record 0 is used by Authorization

[web2py:27175] Re: temporary table

2009-07-22 Thread rb
If you are using SQLite then you could create a db in memory and keep your temp table there. You can create the table outside of web2py and then in your SQLDB call you can add the parameter migrate=False to import the db into web2py. -- Rb On Jul 22, 1:34 am, phneoix wrote: > how do i create t

[web2py:27174] Re: Problems migrating mysql database with SQL import/export

2009-07-22 Thread Yarko Tymciurak
I have never seen this problem - we used postgresql for PyCon2009 registration system, and I did migrations (against Massimo's strong, fearful cautions!) on the live system, and all things worked, Perhaps I am not understanding the problem you are describing can you show some example steps so

[web2py:27173] Re: HTML helpers

2009-07-22 Thread Julio
This has came up countless of times, you'll find many supporters, mid- grounds and opposers I believe html helpers have their place in web2py and are good for say, prototyping and stuff, but the bottom line is that you *can* create entire web2py apps without using them at all, as in my case. hth,

[web2py:27172] Problems migrating mysql database with SQL import/export

2009-07-22 Thread Alex Fanjul
Hello Massimo, Yarko, It is possible that we have problems in executing SQL migrations with MySQL (maybe postgres too) database because: When you generate data in web2py, it starts with id=0, but when you export/import SQL database, all data starts with id=1, so when you try to import the SQL

[web2py:27171] Re: text fields not working up in GAE production env

2009-07-22 Thread Dan
whoops! sorry, this is not correct. please ignore my previous message. The text fields are in the GAE datastore, but they do not appear in the production admin console's datastore viewer. However, they do appear in the development admin console's datastore viewer. strange... I wonder why? http://

[web2py:27170] text fields not working up in GAE production env

2009-07-22 Thread Dan
I'm using web2py to develop an application for deployment on GAE. My data model has some text fields in it, eg in the auth_group table. These fields show up fine when the app is running on the GAE development environment, hosted on my local machine. But when I deploy it to the GAE production envir

[web2py:27169] Where/How I can personalize the CRUD behavior and Layout ?

2009-07-22 Thread Leandro - ProfessionalIT
Hi, I'm sorry by my stupid questions and by terrible english , but... I want to personalize the behavior and the Layout of CRUD funcionality, about this, I have Three questions: 1) In the action default/data/select/"table_name" the generated output is a HTML table with all records and c

[web2py:27168] Re: Dislikes character "\" editing html/controllers from admin page

2009-07-22 Thread Alex Fanjul
This works for me: def peekfile(path,file): return A(file.replace('\\','/'),_href=URL(r=request,f='peek/%s/%s/%s' % (app, path, file.replace('\\','/' in [line 5] \web2py\applications\admin\views\default\design.html Acoording to byteofpython book, you have to use an escape sequence

[web2py:27167] Re: ssh tunnel from windows (putty) client [ security and admin ]

2009-07-22 Thread Jeffield
That worked great Thanks Alexandre! Now I am off to create a certificate.. Jeff On Jul 10, 1:38 pm, Alexandre Andrade wrote: > You should save the information of the connection (session) and from the > left side (below categories), > > Connection->SSH->Tunnels: (look at the right side now)

[web2py:27166] Re: Dislikes character "\" editing html/controllers from admin page

2009-07-22 Thread Alex Fanjul
Maybe something with this? def peekfile(path,file): return A(file.replace('','/'),_href=URL(r=request,f='peek/%s/%s/%s' % (app, path, file))) El 22/07/2009 20:31, Alex Fanjul escribió: > Hello, > when I tray to view or edit an html code clicking in the name (ie: > default/index.html [

[web2py:27165] Re: Is this doable : input from one client, display to another ?

2009-07-22 Thread fpp
On 22 juil, 07:35, Mark Eichin wrote: > Look for orbited - a comet server that people were showing it off > (with TurboGears, but like everything associated with TG it's a > component that can be used in other contexts) at Pycon 2008... Yes, most of the Python references for COMET seem to point

[web2py:27164] Dislikes character "\" editing html/controllers from admin page

2009-07-22 Thread Alex Fanjul
Hello, when I tray to view or edit an html code clicking in the name (ie: default/index.html [edit | htmledit | delete]) from the admin page, the system complains saying "Not Found URL" because the URL has "\" character at the end (http://localhost/admin/default/peek/welcome/views/default\inde

[web2py:27163] Re: task forces

2009-07-22 Thread gluegl
Please count on me to deliver the WebDesign ELEMENTS Will send you a sample later tonight G On Jul 10, 4:32 pm, mdipierro wrote: > I think we need to build two task forces. > > 1) to build a CMS > > 2) to build a eStore > > the more overlap the better. We need two project leaders and > v

[web2py:27162] Re: too many values to unpack

2009-07-22 Thread Hans Donner
yes, I can. But would like to know what version this one is (and if unknown just receive a copy of it). I want to digg deeper into this issue. On Wed, Jul 22, 2009 at 17:34, DenesL wrote: > > You can download any version you want from SVN, can't you?. > > On Jul 22, 10:21 am, Hans Donner wrote:

[web2py:27161] Re: Version 1.65.3 (2009-07-12 17:32:25) for Windows: download corrupt?

2009-07-22 Thread Jonathan Lundell
On Jul 22, 2009, at 9:44 AM, Yarko Tymciurak wrote: > try getting it with a differnt browser, or (better yet) get yourself > curl for windows, and get it with that. Is there another webserver at web2py.com that could handle static files? > > On Wed, Jul 22, 2009 at 10:36 AM, Connie White > wr

[web2py:27160] Re: jPolite solved (almost) all our problems

2009-07-22 Thread Tito Garrido
I'm trying to access the database admin but it's showing jpolite index... is that expected? On Wed, Jul 22, 2009 at 10:04 AM, Tito Garrido wrote: > Massimo: > Thanks, I could see that there will be a jpolite2 too... thanks for clarify > it. > > murray3: > I'm looking forward to see this ready :)

[web2py:27159] HTML helpers

2009-07-22 Thread gillengam
Excuse me for my question. I'm not sure that it is good use HTML helpers. They are very powerful, but I'm afraid that they are no good for MVC architecture. I've seen that all framework use them, but I'm not sure that it's a good idea. I think to an HTML designer that don't know programming. I kno

[web2py:27158] Re: Version 1.65.3 (2009-07-12 17:32:25) for Windows: download corrupt?

2009-07-22 Thread Yarko Tymciurak
try getting it with a differnt browser, or (better yet) get yourself curl for windows, and get it with that. On Wed, Jul 22, 2009 at 10:36 AM, Connie White wrote: > > I am on vista/IE - i seem to be having the same downloading problem - > where the download is 9.99MB, only 432KB come down and ab

[web2py:27157] Re: Version 1.65.3 (2009-07-12 17:32:25) for Windows: download corrupt?

2009-07-22 Thread Connie White
I am on vista/IE - i seem to be having the same downloading problem - where the download is 9.99MB, only 432KB come down and abruptly quits downloading where the 'downloaded file' indicator stops about about 20% - cuts off, says it's finished, then ' wont open due to file corrupt or empty' i did

[web2py:27156] Re: too many values to unpack

2009-07-22 Thread DenesL
You can download any version you want from SVN, can't you?. On Jul 22, 10:21 am, Hans Donner wrote: > You still have the old appadmin app? From what version was it? Or > could you mail it to me? --~--~-~--~~~---~--~~ You received this message because you are subs

[web2py:27155] Re: missing cron folder results in ticket

2009-07-22 Thread AchipA
Check the errors directory of the app in question. It should contain the errors (in an almost human readable form) as tracebacks in files. On Jul 22, 8:40 am, Hans Donner wrote: > I've experienced when I downloaded the openid tar from massimo and > installed it as application using r1036 (so qui

[web2py:27154] Re: MySQL - OperationalError: Error on rename (errno: 150)

2009-07-22 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes, the problem is connected with dropping the index on interrelated field. If I try to manually DROP INDEX field2__idx ON testing4; or ALTER TABLE testing4 DROP field2; i get the error too. I examined the problem more and the result is: Field w

[web2py:27153] Interesting JS read

2009-07-22 Thread DenesL
http://unixpapa.com/js/dyna.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2p

[web2py:27152] Re: too many values to unpack

2009-07-22 Thread Hans Donner
You still have the old appadmin app? From what version was it? Or could you mail it to me? On Wed, Jul 22, 2009 at 15:08, hcvst wrote: > > Thanks. > > Yes, my appadmin seems to not have been compatible. > I now created a dummy app under 1.65.5 removed everything > I touched in my original app fro

[web2py:27151] Re: allow NULL in date field in SQLFORM

2009-07-22 Thread DenisBY
I've translated it so translation looks like: %Y-%m-%d => %d.%m.%Y in view in input field date looks like %d.%m.%Y but after adding it becomes %Y-%m-%d you can test it here: http://84.201.238.210:8000/buh/book/view On 22 июл, 01:18, mdipierro wrote: > if you change the format of IS_DATE() you al

[web2py:27150] Re: Questions for large deployment

2009-07-22 Thread Anand Vaidya
Hi All, Thanks for the enlightening discussion. web2py community is awesome! I am hoping to create a rudimentary implementation and perform load testing etc. My plan is to spread out over multiple machines (2 for a start), say end-Aug. I am planning to use apache+mod_wsgi I will share the lesso

[web2py:27149] Re: too many values to unpack

2009-07-22 Thread hcvst
Thanks. Yes, my appadmin seems to not have been compatible. I now created a dummy app under 1.65.5 removed everything I touched in my original app from it and copied it to my old app, overwriting all standard controllers, views etc. Now it works, Thanks. On Jul 21, 9:25 pm, Yarko Tymciurak wro

[web2py:27148] Re: jPolite solved (almost) all our problems

2009-07-22 Thread Tito Garrido
Massimo: Thanks, I could see that there will be a jpolite2 too... thanks for clarify it. murray3: I'm looking forward to see this ready :) Thanks! Tito Garrido On Wed, Jul 22, 2009 at 9:41 AM, murray3 wrote: > > I am very interested in this topic, having used jpolite/web2py as the > framework

[web2py:27147] Re: jPolite solved (almost) all our problems

2009-07-22 Thread murray3
I am very interested in this topic, having used jpolite/web2py as the framework for my app. Main prob I had sems to be the passing of args and vars within jpolite. I have used a workaround of placing my custom form in a non jpolite view and then embedding it within an iframe. Not such a good th

[web2py:27146] Re: HOW2Py

2009-07-22 Thread JohnMc
Benigno, The file is located here -- http://76.185.48.154/images/web2pyart1.pdf Is a PDF 'the' solution. No. Its one maybe of a select few output formats we should use. As to delivery I have modified my thinking thanks to Alex. I suggested that vision here -- http://groups.google.com/group/web

[web2py:27145] Re: HOW2Py

2009-07-22 Thread Benigno
I do not know if I am understanding this correctly, but if the proposal right now is to make a PDF and a zip file, or even just a zip file with all the contents and maybe some text indicating what will be found inside, I do think its not good to search on, nor to review and even less if its someth

[web2py:27144] Re: Questions for large deployment

2009-07-22 Thread Alex Fanjul
Thanks Massimo, Bottiger, good to know some keys that I didn't know, like tricks to speed up the app, and the python efficiency in multicore. Excuse my ignorance , but let me enquire a bit more... * 10x more requests by only installing a simple package (flup)? or is an special server?

[web2py:27143] Re: temporary table

2009-07-22 Thread mdipierro
what's a temporary table? What do you need to do exactly? On Jul 22, 3:34 am, phneoix wrote: > how do i create temporary table > > thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To pos

[web2py:27142] Re: Questions for large deployment

2009-07-22 Thread mdipierro
With 8 cores and Flup you can probably get close to 1000 requests/ second. if you can do any test, let us know what you get. Massimo On Jul 22, 3:22 am, Bottiger wrote: > "There are some things that definitively will NOT help:  a multicore > machine. because the python interpreter cannot use >

[web2py:27141] temporary table

2009-07-22 Thread phneoix
how do i create temporary table thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to

[web2py:27140] Re: Questions for large deployment

2009-07-22 Thread Bottiger
"There are some things that definitively will NOT help: a multicore machine. because the python interpreter cannot use multiple cores efficiently " If you use the prefork flup server not included in Web2Py, each request is handled by a seperate process so this will bypass the GIL. It makes a hug

[web2py:27139] Re: Stumped Beyond Belief

2009-07-22 Thread mdipierro
Some of them have been fixed but some may still need fixes. Help will be appreciated. Massimo On Jul 22, 3:09 am, Alexey Nezhdanov wrote: > On Friday 17 July 2009 19:11:11 JohnMc wrote:> BTW, this is perfect example > of helpless backtrace. > > Consider how much better it would be if it look l

[web2py:27138] Re: task forces

2009-07-22 Thread mdipierro
> - Documentation should be the number one priority. I realize there is > movement on this but I am not clear on the specifics other than Sphinx > being mentioned, which is really good to hear. Yes we are working on this. But mind Sphix will mostly be a replacent to epydoc which is already there.

[web2py:27137] Re: Stumped Beyond Belief

2009-07-22 Thread Alexey Nezhdanov
On Friday 17 July 2009 19:11:11 JohnMc wrote: > BTW, this is perfect example of helpless backtrace. > Consider how much better it would be if it look like this: > == > SyntaxError: invalid field name: 'tablename.fieldname' > > -- Alexey > > That might have helped some. But to tell you

[web2py:27136] Re: Questions for large deployment

2009-07-22 Thread mdipierro
This is a complex issues that spans different topics: speed, efficiency, scalability. I am not aware of any major bottle neck in web2py, execpt of the database (not the DAL , the actual database) so it is efficiently. There are many little tricks you can use to speed applications more: - use conn

[web2py:27135] Re: Questions for large deployment

2009-07-22 Thread Fran
On Jul 22, 2:40 am, Alex Fanjul wrote: >   -As a matter of curiosity, have you ever though in implementing the > API for any of such databases? Redit? Tokyo? couchDB? Yes, the new DAL is looking to make it easier to add more alternative DBs. See this thread for Yarko's thoughts on this: http://g

[web2py:27134] Re: jPolite solved (almost) all our problems

2009-07-22 Thread mdipierro
On Jul 21, 6:07 pm, Tito Garrido wrote: > Does jPolite app works on GAE? yes > is it 100% working? Yes and no. jPolite works as originally intended but that is not enough. The developer tells me he is going to roll out a new version with lots of changes. I am also planning lots of changes to

[web2py:27133] Re: MySQL - OperationalError: Error on rename (errno: 150)

2009-07-22 Thread mdipierro
OK, I see we have a problem with removing fields that have an index associated to them. Can you try remove the index manually and then attempt the migration? Massimo On Jul 21, 5:45 pm, Fran wrote: > On Jul 21, 11:42 pm, Fran wrote: > > > Confirmed. MySQL-5.1.36 with MySQL-python-1.2.2.win32 o

[web2py:27132] Re: auth login form

2009-07-22 Thread Fran
On Jul 21, 11:15 pm, mdipierro wrote: > On Jul 21, 9:05 am, Hans Donner wrote: > > As web2py is being pitched as being secure... the login form for auth > > is not using a https connection... Perhaps this sould be made > > configurable (as https is not always available) ? > The problem is that i

[web2py:27131] Re: task forces

2009-07-22 Thread Fran
On Jul 22, 6:02 am, __future__ wrote: > I realize I am a little late to this discussion but after reviewing a > lot of the messages in the group, searching the web resources > (purchased manual, cookbook slides, alterego, etc.) and playing around > with the framework for a few weeks at work in my

[web2py:27130] Re: How to avoid updating one of the record's fields?

2009-07-22 Thread Dan
Yes indeed! Thanks! On Jul 21, 3:24 pm, mdipierro wrote: > This was fixed in 1.65.5 > > On Jul 21, 5:02 pm, Dan wrote: > > > Followup: I got it to work by using the onvalidation parameter in the > > form.accepts() function. > > When there is a blank password, I insert a temporary, bogus passwor

[web2py:27129] Re: revision 994 broke authentication for wget clients

2009-07-22 Thread Dan
Thanks very much! That fixes it. (I'll try to think harder about this stuff next time...) On Jul 22, 12:26 am, Fran wrote: > On Jul 22, 8:24 am, Dan wrote: > > > I just upgraded from v1.65.0 to v1.65.5 today and noticed that I could > > no longer log in to one of my controllers using wget's "-

[web2py:27128] Re: revision 994 broke authentication for wget clients

2009-07-22 Thread Fran
On Jul 22, 8:24 am, Dan wrote: > I just upgraded from v1.65.0 to v1.65.5 today and noticed that I could > no longer log in to one of my controllers using wget's "--auth-no- > challenge" option. After digging through the code, I see that there > are two new lines that were introduced into the /glu

[web2py:27127] revision 994 broke authentication for wget clients

2009-07-22 Thread Dan
Hello- I just upgraded from v1.65.0 to v1.65.5 today and noticed that I could no longer log in to one of my controllers using wget's "--auth-no- challenge" option. After digging through the code, I see that there are two new lines that were introduced into the /gluon/tools.py file which cause the