[web2py:36844] Re: Fail login doesn't return an errorm msg

2009-12-08 Thread mr.freeze
Usually when I see this it is because of a double redirect and the response/session.flash is lost. On Dec 8, 10:35 pm, Yannick ytchatch...@gmail.com wrote: hello mate, I wonder  because I noticed that in auth, when the user fails to login (enter a fake username and password) there is no error

[web2py:36869] Re: authenticating a service - suggested way

2009-12-09 Thread mr.freeze
On Wed, Dec 9, 2009 at 12:24 PM, mr.freeze nat...@freezable.com wrote: You should have a call function in your controller: def call():    ...    session.forget()    return service() You can expose a function like so: @service.run def add_two(a,b):    if auth.is_logged_in

[web2py:36880] Re: table to xml maybe with customtagnames / columnnames

2009-12-09 Thread mr.freeze
Try using @service.xml @service.xml def get_rows(table,start,end) rows = db(db[table].id0).select(limitby=(start,end)) return rows http://127.0.0.1:8000/app/default/call/xml/get_rows?table=thingsstart=0end=100 On Dec 9, 5:06 am, Mikko mkkjoki...@gmail.com wrote: Hi, Any sniplet to

[web2py:36885] Re: Pass class to widgets

2009-12-09 Thread mr.freeze
I would use Thadeus' method. Mine is a dangerous hack. On Dec 9, 10:40 am, Alex Fanjul alex.fan...@gmail.com wrote: Hello Thadeus, Mr.Freeze, What is this for? to acommodate the same stylish widgets across application? Could you give me an full simply code example please? For example, do I

[web2py:36900] Re: table to xml maybe with customtagnames / columnnames

2009-12-09 Thread mr.freeze
...@cs.depaul.edu wrote: @service.xml def get_rows(table,start,end)     rows = db(db[table].id0).select(limitby=(start,end))     return rows.as_list() On Dec 9, 9:06 am, mr.freeze nat...@freezable.com wrote: Try using @service.xml @service.xml def get_rows(table,start,end)     rows

[web2py:36929] Re: mercurial help

2009-12-09 Thread mr.freeze
How should we proceed? On Dec 8, 1:57 pm, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Dec 8, 1:50 pm, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Dec 8, 1:37 pm, mr.freeze nat...@freezable.com wrote: What you are saying (it seems) is to add an admin function

[web2py:36993] Re: new on web2pyslices.com: WebGrid

2009-12-10 Thread mr.freeze
Thanks to Fran for several recent improvements. The WebGrid is now datatables compliant (you must disable the add_links). http://www.web2pyslices.com/main/slices/take_slice/39 On Dec 5, 10:11 am, mr.freeze nat...@freezable.com wrote: I added an example to the slice of how to customize

[web2py:37019] Re: new on web2pyslices.com: WebGrid

2009-12-11 Thread mr.freeze
...@gmail.com wrote: Hi Mr Freeze, Re:  'datatables compliant' Could you describe what that means? Are there any differences in the usage? I had a quick look at the code and the webslice page but it wasn't obvious to me what had changed. -David On Dec 11, 12:04 am, mr.freeze

[web2py:37026] Re: new on web2pyslices.com: WebGrid

2009-12-11 Thread mr.freeze
Here is a list of changes: * Allows setting of 'id' for the table * No Additional TBODY when header included * THEAD includes THs not TDs * No odd '%s' in Class * PEP-8 cleanup * row_created event On Dec 11, 9:07 am, mr.freeze nat...@freezable.com wrote: datatables requires a strictly formatted

[web2py:37032] Re: Unsubscribe is not working

2009-12-11 Thread mr.freeze
Did you already go to http://groups.google.com/group/web2py/subscribe and select 'No Email'? On Dec 11, 6:36 am, Offray Vladimir Luna Cárdenas off...@riseup.net wrote: Hi all, First, thanks for all the learning. I think that web2py is a wonderful web application framework, but now my

[web2py:37039] Re: new on web2pyslices.com: WebGrid

2009-12-11 Thread mr.freeze
, that is one reason to use it rather than datatables :) -Thadeus On Fri, Dec 11, 2009 at 10:35 AM, mr.freeze nat...@freezable.com wrote: Here is a list of changes: * Allows setting of 'id' for the table * No Additional TBODY when header included * THEAD includes THs not TDs * No odd '%s

[web2py:37053] Re: new on web2pyslices.com: WebGrid

2009-12-11 Thread mr.freeze
Just added: multiple grids per page is supported now! Enjoy, Nathan On Dec 11, 12:35 pm, mr.freeze nat...@freezable.com wrote: No javascript needed. I have plans to add ajax hooks for inline editing but will make sure that it degrades gracefully when javascript is disabled. On Dec 11, 12:27

[web2py:37059] Re: Off-Topic: Web2py awesomeness

2009-12-11 Thread mr.freeze
It's almost silly how much faster (and better) I can code with web2py vs. others. I just picked back up on a large asp.net project and want to gouge my eyes out!!! On Dec 10, 10:20 pm, Thadeus Burgess thade...@thadeusb.com wrote: Everytime I look at a django app... it makes me so grateful for

[web2py:37064] Re: Off-Topic: Web2py awesomeness

2009-12-11 Thread mr.freeze
:42 pm, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On Dec 11, 5:16 pm, mr.freeze nat...@freezable.com wrote: It's almost silly how much faster (and better) I can code with web2py vs. others. I just picked back up on a large asp.net project and want to gouge my eyes out!!! .. I'll

[web2py:37100] Re: Using alternate login method with custom auth_user table

2009-12-12 Thread mr.freeze
Try removing the IS_STRONG validator temporarily and see if it works. On Dec 12, 2:02 pm, Diz ken.disb...@gmail.com wrote: Hi All, I'm trying to use a custom user table AND an alternate login method. I get everything to work (i.e. no errors) BUT when I try to log in I get a flash message

[web2py:37108] Re: multiple SQLForms and rows datetime problem

2009-12-12 Thread mr.freeze
You're not doing anything wrong. It's either a problem with the calendar.js plugin or the way it is implemented in web2py_ajax.html. On Dec 12, 5:49 pm, Mikey J missingtu...@gmail.com wrote: This problem comes also with default view.. and Firefox, IE7..  Too depressed to try opera ;) On 13

[web2py:37114] Re: HELP with new DAL

2009-12-12 Thread mr.freeze
I updated and get this now: Traceback (most recent call last): File C:\\web2py\\gluon\\main.py, line 551, in wsgibase SQLDB.close_all_instances(SQLDB.rollback) AttributeError: type object 'SQLDB\' has no attribute 'close_all_instances\' On Dec 12, 11:27 pm, mdipierro mdipie...@cs.depaul.edu

[web2py:37118] Re: HELP with new DAL

2009-12-13 Thread mr.freeze
: oops. I always tested the new DAL isolated. I forgot to integrate it with the rest of web2py. Done now. Please try again. Massimo On Dec 13, 12:23 am, mr.freeze nat...@freezable.com wrote: I updated and get this now: Traceback (most recent call last): File C:\\web2py\\gluon\\main.py

[web2py:37126] Re: multiple SQLForms and rows datetime problem

2009-12-13 Thread mr.freeze
and it works fine!  In ''/take_slice/25 http://www.web2pyslices.com/main/slices/take_slice/25' month name customize is also good. So going with these now. This, of course is solved in future! :) I'll tell how it goes.. 2009/12/13 mr.freeze nat...@freezable.com If you can get away

[web2py:37131] Re: HELP with new DAL

2009-12-13 Thread mr.freeze
Works now! On Dec 13, 2:02 pm, mdipierro mdipie...@cs.depaul.edu wrote: fixed. reposting.,, On Dec 13, 12:02 pm, Nathan Freeze nat...@freezable.com wrote: Now I get this: Traceback (most recent call last):   File C:\web2py\gluon\restricted.py, line 184, in restricted     exec ccode

[web2py:37223] IronPython 2.6 Final is out

2009-12-15 Thread mr.freeze
http://ironpython.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=12482 -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py:37247] Re: new on web2pyslices.com: WebGrid

2009-12-15 Thread mr.freeze
, mr.freeze nat...@freezable.com wrote: Just added: multiple grids per page is supported now! Very useful. Thanks for your further explanations too. -David -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web

[web2py:37248] Re: new on web2pyslices.com: WebGrid

2009-12-15 Thread mr.freeze
And here's the link again: http://www.web2pyslices.com/main/slices/take_slice/39 On Dec 15, 1:03 pm, mr.freeze nat...@freezable.com wrote: This just added: column filtering!  You can now set filters per column. This will render dropdowns of all of the possible values for your field. The slice

[web2py:37251] Re: new on web2pyslices.com: WebGrid

2009-12-15 Thread mr.freeze
in advance. 2009/12/15 mr.freeze nat...@freezable.com This just added: column filtering!  You can now set filters per column. This will render dropdowns of all of the possible values for your field. The slice has been updated with screenshot and usages instructions. On Dec 12, 7:32 am

[web2py:37252] Re: new on web2pyslices.com: WebGrid

2009-12-15 Thread mr.freeze
Looks like filters and paging aren't working together. I should have it fixed soon. On Dec 15, 1:32 pm, mr.freeze nat...@freezable.com wrote: If your datasource is not a join: grid.edit_link = lambda row: A('edit', _href=self.crud.url(f='custo

[web2py:37254] Re: new on web2pyslices.com: WebGrid

2009-12-15 Thread mr.freeze
Fixed! On Dec 15, 1:43 pm, mr.freeze nat...@freezable.com wrote: Looks like filters and paging aren't working together. I should have it fixed soon. On Dec 15, 1:32 pm, mr.freeze nat...@freezable.com wrote: If your datasource is not a join: grid.edit_link = lambda row: A('edit', _href

[web2py:37260] Re: new on web2pyslices.com: WebGrid

2009-12-15 Thread mr.freeze
/slices/take_slice/39, and now I see you updated it. Thanks 2009/12/15 mr.freeze nat...@freezable.com Fixed! On Dec 15, 1:43 pm, mr.freeze nat...@freezable.com wrote: Looks like filters and paging aren't working together. I should have it fixed soon. On Dec 15, 1:32 pm

[web2py:37273] Re: Form element definition examples

2009-12-15 Thread mr.freeze
element and elements take any combination of args and keywords and cycle through the form components looking for match(es) form.element('input',_type='text')# grabs the first text input form.elements('input',_type='text')# grabs all text inputs form.elements('input','textarea') # grabs all

[web2py:37321] Re: Form element definition examples

2009-12-15 Thread mr.freeze
I made a slice with a few more examples: http://www.web2pyslices.com/main/slices/take_slice/43 On Dec 15, 4:17 pm, mr.freeze nat...@freezable.com wrote: element and elements take any combination of args and keywords and cycle through the form components looking for match(es) form.element

[web2py:37335] Re: Select DISTINCT ON Field Name bug?

2009-12-15 Thread mr.freeze
Is DISTINCT ON supported by all RDBS? I am getting OperationalError: near ON: syntax error with sqlite now. On Dec 16, 12:11 am, mdipierro mdipie...@cs.depaul.edu wrote: The code contains:    if distinct == True: This code was designed so that distinct is True or False (that is what the

[web2py:37363] Re: Online database designer

2009-12-16 Thread mr.freeze
Also, there is a link to it when you edit a model with admin. On Dec 16, 7:35 am, Johann Spies johann.sp...@gmail.com wrote: Apologies, I found it:http://gaesql.appspot.com/ Sorry for the noise. Johann 2009/12/16 Johann Spies johann.sp...@gmail.com: I can't find the graphical online sql

[web2py:37378] Re: new on web2pyslices.com: WebGrid

2009-12-16 Thread mr.freeze
:         grid_pessoal.edit_link = lambda row: A('edit', _href=URL(r=request, f='custo',                                                       args=[request.args(0), grid_pessoal.tablenames[0], row['id']])) 2009/12/15 mr.freeze nat...@freezable.com If your datasource is not a join: grid.edit_link = lambda

[web2py:37388] Re: form.vars.id - TypeError: 'NoneType'

2009-12-16 Thread mr.freeze
Both problems are related. The problem is that form.vars.id is of type Reference instead of integer. On Dec 16, 2:38 pm, mdipierro mdipie...@cs.depaul.edu wrote: Let's summarize it.    session.id=form.vars.id does it work or not for you with web2py 1.74.2? If not, which is the python

[web2py:37393] Re: form.vars.id - TypeError: 'NoneType'

2009-12-16 Thread mr.freeze
I think changing line 898 of sqlhtml.py from: self.vars.id = self.table.insert(**fields) ...to... self.vars.id = int(self.table.insert(**fields)) ...might fix it. On Dec 16, 2:38 pm, mdipierro mdipie...@cs.depaul.edu wrote: Let's summarize it.    session.id=form.vars.id does it work or not

[web2py:37461] Re: web2py 1.74.2 is OUT

2009-12-17 Thread mr.freeze
Yannick, in your example code from the other thread, your auth_user table doesn't have a table name. On Dec 17, 8:09 am, Yannick ytchatch...@gmail.com wrote: This issue here i have no idea how to fix it using the latest version 1.74.3

[web2py:37481] Re: multiple SQLForms and rows datetime problem

2009-12-17 Thread mr.freeze
: Comes to mind. What is the best way to put 4 lines from same database table into same form?   What is easy model to do this? mr.freeze, I havent got time to try your widget yet. Mikko - On 14 joulu, 02:45, Mikey Jokinen missingtu...@gmail.com wrote: Thanks

[web2py:37488] Re: multiple SQLForms and rows datetime problem

2009-12-17 Thread mr.freeze
web2py_ajax.html to call it? 2009/12/18 mr.freeze nat...@freezable.com I have been testing this as a replacement for the existing calendar. It's based on the same library but works for multiple date/datetime fields and also has different themes: http://code.google.com/p/dyndatetime

[web2py:37541] Control MIME type for static download

2009-12-18 Thread mr.freeze
When I host a .w2p file on Dreamhost, it tries to open in the browser with Firefox, displaying garbled binary data on the screen. I have tried this in my .htaccess file: Files *.w2p ForceType application/octet-stream Header set Content-Disposition attachment /Files ...and... AddType

[web2py:37548] Re: Control MIME type for static download

2009-12-18 Thread mr.freeze
. On Dec 18, 1:24 pm, mr.freeze nat...@freezable.com wrote: When I host a .w2p file on Dreamhost, it tries to open in the browser with Firefox, displaying garbled binary data on the screen. I have tried this in my .htaccess file: Files *.w2p   ForceType application/octet-stream   Header

[web2py:37588] Re: blob and binary

2009-12-20 Thread mr.freeze
Massimo, could it be done with a custom validator? On Dec 20, 10:55 am, mdipierro mdipie...@cs.depaul.edu wrote: This may be possible with the new DAL. Not currently. On Dec 20, 3:21 am, vince lapcc...@gmail.com wrote: i need to read and write blob from sqlite in order to work with others

[web2py:37604] Re: How to limit get_twits function?

2009-12-20 Thread mr.freeze
You should be able to search by user with from%3Auser (url encoded 'from:user') : http://search.twitter.com/search.json?q=from%3Auserpage=1rpp=10 On Dec 20, 8:03 pm, Tito Garrido titogarr...@gmail.com wrote: I've found this link too but it doesn't work :-/ On Sun, Dec 20, 2009 at 5:45 PM,

[web2py:37617] Re: Need help with custom widget

2009-12-21 Thread mr.freeze
Here is an example widget that should do what you want: def text_widget(f,v): inp = SQLFORM.widgets.text.widget(f,v) inp['_onfocus'] = jQuery(this).val(''); return inp This is how you would use it: form = SQLFORM.factory(Field('mytext',

[web2py:37618] Re: Need help with custom widget

2009-12-21 Thread mr.freeze
You probably only want to clear it if it's value is the default so: def text_widget(f,v): inp = SQLFORM.widgets.text.widget(f,v) inp['_onfocus'] = if(this.value == '%s'){this.value = '';} % f.default return inp On Dec 21, 9:22 am, mr.freeze nat...@freezable.com wrote: Here

[web2py:37702] Re: Sitemap Plugin or Sitemap Generator

2009-12-22 Thread mr.freeze
This may help: http://www.web2pyslices.com/main/slices/take_slice/3 On Dec 22, 4:28 pm, Richard richar...@gmail.com wrote: For a website with many dynamic URLs based on request.vars / request.args then you will need to crawl + scrape it. But for a more static layout I would prefer an internal

[web2py:37779] Re: LOAD function anybody?

2009-12-23 Thread mr.freeze
Can't you just trap the submit event in web2py_trap_form instead of the button clicks? On Dec 23, 2:36 pm, mdipierro mdipie...@cs.depaul.edu wrote: jQuery(':submit,.submit')? On Dec 23, 2:32 pm, Thadeus Burgess thade...@thadeusb.com wrote: I would say assume anything of type submit and

[web2py:37811] Re: Happy Holidays

2009-12-24 Thread mr.freeze
I wish you all a peaceful and bug-free holiday from Austin, TX. -Nathan On Dec 23, 10:25 pm, mdipierro mdipie...@cs.depaul.edu wrote: I wish everybody Happy Holidays. I will probably be on the list as any other day. Massimo -- You received this message because you are subscribed to the

[web2py] Re: how to custimize the submit button in auth form

2010-01-09 Thread mr.freeze
This should do it: form = SQLFORM.factory(...) submit = form.element(input,_type=submit) submit[_type] = image submit[_src] = URL(...) On Jan 9, 7:37 pm, Frank thethinkbo...@gmail.com wrote: I'm try to customize the submit button in auth form to an image button such as login,

[web2py] Re: how to custimize the submit button in auth form

2010-01-10 Thread mr.freeze
It works for me. Here is my user function: def user(): form=auth() submit = form.element(input,_type=submit) submit[_type] = image submit[_src] = URL(...) return dict(form=form) On Jan 10, 3:11 am, Frank thethinkbo...@gmail.com wrote: thanks ,mr.freeze, the method you

[web2py] Re: how to custimize the submit button in auth form

2010-01-10 Thread mr.freeze
[_type] = image submit[_src] = URL(...) return dict(form=form) On Jan 10, 10:02 am, mr.freeze nat...@freezable.com wrote: It works for me.  Here is my user function: def user():     form=auth()     submit = form.element(input,_type=submit)     submit[_type] = image     submit[_src

[web2py] Re: Large datasets

2010-01-14 Thread mr.freeze
WebGrid can handle large datasets as it limits the query by the page size if the datasource is a Set or Table(s). The performance hit will come in when the filter row is enabled since each filter is a query for all distinct values in a field. I would try disabling the filter row with:

[web2py] Re: jquery help

2010-01-17 Thread mr.freeze
I think that selectedIndex will default to 0 if the selected attribute is not set explicitly. The only workaround/hack I can think of is to look at the innerHTML to see if it was set explicitly. Maybe something like this: jQuery(select).each(function(){ var thisSel

[web2py] new on web2pyslices.com: version history!

2010-01-27 Thread mr.freeze
Well it took a while but I finally got around to it. From now on when you modify your slice, a version history link will appear below the main body. It currently only allows viewing but will support restoring previous versions soon. Enjoy and keep those slices coming! -- You received this

[web2py] Re: Mobile Access Design

2010-01-27 Thread mr.freeze
I made a mileage tracker for blackberry here: http://www.web2pyslices.com/main/slices/take_slice/15 It's a simple app but hopefully will help. On Jan 27, 10:35 pm, yamandu yamandu.co...@gmail.com wrote: I am building an app that has some functions that need to be accessed from a mobile, a

[web2py] Re: has anybody check the the cron in trunk?

2010-01-29 Thread mr.freeze
No but I'm getting this in the console on Windows 7: WARNING:root:WEB2PY CRON Call returned code 1: 'c:/Python25/python.exe\' is not recognized as an internal or external command, operable program or batch file. On Jan 29, 5:37 pm, mdipierro mdipie...@cs.depaul.edu wrote: In particular on

[web2py] Re: crud delete_record checkbox [RESOLVED]

2010-01-29 Thread mr.freeze
I don't think it's in there. You would need to add this at line 676 of sqlhtml.py: self.custom.label['deletable'] = delete_label On Jan 29, 11:58 pm, weheh richard_gor...@verizon.net wrote: I'm not sure I understood what you wrote, sorry. My question, really, is what is the name of the key used

[web2py] Re: crud delete_record checkbox [RESOLVED]

2010-01-30 Thread mr.freeze
Because it seems like it should be in form.custom.label by default like the rest of the labels that are present in the form. Shouldn't form.custom let you get at every part of the form? On Jan 30, 12:58 am, mdipierro mdipie...@cs.depaul.edu wrote: Why do you want to put this in sqlhtml? In you

[web2py] Re: crud delete_record checkbox [RESOLVED]

2010-01-30 Thread mr.freeze
I meant as a patch. On Jan 30, 12:53 am, weheh richard_gor...@verizon.net wrote: Yes, I see that. But URGH, do I really want to start leaving footprints in gluon? What happens when there's a new release. Do they get wiped out and then I have to do it over again? Seems like the deletable field

[web2py] Re: crud delete_record checkbox [RESOLVED]

2010-01-31 Thread mr.freeze
I think a better question is why would you not want it in sqlhtml ;) On Jan 30, 12:58 am, mdipierro mdipie...@cs.depaul.edu wrote: Why do you want to put this in sqlhtml? In you controller you can do: form.custom.label['deletable'] = 'delete_label' On Jan 30, 12:53 am, weheh

[web2py] Re: A small improvement for the edit interface

2010-01-31 Thread mr.freeze
It only shows this for me on Windows: edit views: l, l, l, l I think it is because of the backslash in the path. On Jan 31, 11:02 am, mdipierro mdipie...@cs.depaul.edu wrote: BTW. This is in trunk! On Jan 31, 10:46 am, Jose jjac...@gmail.com wrote: excellent, thanks jose -- You

[web2py] Re: A small improvement for the edit interface

2010-01-31 Thread mr.freeze
I sent you a new admin/controllers/default.py. I'm not really sure how to make a patch with mercurial yet. On Jan 31, 12:08 pm, mdipierro mdipie...@cs.depaul.edu wrote: Can you fix it? On Jan 31, 11:19 am, mr.freeze nat...@freezable.com wrote: It only shows this for me on Windows: edit

[web2py] Re: EMERGENCY! Major security hole in 1.74.8 fixed in 1.74.9.

2010-02-01 Thread mr.freeze
Can you give us details on the exploit? I would like to run my own tests. If you don't want to disclose it publicly, can you send an email? On Feb 1, 3:42 pm, mdipierro mdipie...@cs.depaul.edu wrote: I runs some tests. This affects 1.74.8 and 1.74.7 ONLY. It does not affect previous versions.

[web2py] Re: Webgrid so strange!

2010-02-01 Thread mr.freeze
Hmmm...The error you got was related to encoding: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 57: ordinal not in range(128)' What language are you using? Can you post some code? On Feb 1, 1:25 pm, yamandu yamandu.co...@gmail.com wrote: First: I tried to write comment on

[web2py] Re: Dumb syntax error! Can't fix it!

2010-02-04 Thread mr.freeze
I think 'transaction' is a reserved word. Try changing it to 'transactions'. On Feb 4, 12:35 pm, Jason Brower encomp...@gmail.com wrote: Prolly obvious, but I can't see it... can you?  db.py 6KViewDownload -- You received this message because you are subscribed to the Google Groups

[web2py] Re: powered by drupal?

2010-02-04 Thread mr.freeze
Confusing. On Feb 4, 5:00 pm, mdipierro mdipie...@cs.depaul.edu wrote: http://webtopy.org/community/tips-examples -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from

[web2py] web2pyslices.com hits 100 members

2010-02-06 Thread mr.freeze
Thanks to everyone for your contributions and suggestions. -Nathan -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

[web2py] Cron errors on Windows

2010-02-06 Thread mr.freeze
I'm getting this when running the hg tip. web2py Enterprise Web Framework Created by Massimo Di Pierro, Copyright 2007-2010 Version 1.74.11 (2010-02-03 10:53:34) Database drivers available: SQLite3, MySQL Starting cron... please visit: http://127.0.0.1:8000 use kill -SIGTERM 5264 to

[web2py] Re: Cron errors on Windows

2010-02-07 Thread mr.freeze
\\cron\ \cron.running' On Feb 7, 1:05 am, mdipierro mdipie...@cs.depaul.edu wrote: I will fix it in trunk On Feb 6, 11:58 pm, mr.freeze nat...@freezable.com wrote: I'm getting this when running the hg tip. web2py Enterprise Web Framework Created by Massimo Di Pierro, Copyright 2007-2010

[web2py] Re: Cron errors on Windows

2010-02-07 Thread mr.freeze
Seems happy now. Thanks. On Feb 7, 11:05 am, mdipierro mdipie...@cs.depaul.edu wrote: please try again. On Feb 7, 10:23 am, mr.freeze nat...@freezable.com wrote: Let me know when to test. I'm still getting: Exception in thread Thread-4: Traceback (most recent call last):   File C

[web2py] Re: crud links to default, not the calling controller

2010-02-07 Thread mr.freeze
I think you need to set crud.settings.controller = 'admin' On Feb 7, 2:01 pm, weheh richard_gor...@verizon.net wrote: I'm building an admin interface of my own, which mostly looks like the web2py admin interface. Therefore, in my admin controller, I have @auth.requires_membership('Admin')

[web2py] Re: password hash problems

2010-02-07 Thread mr.freeze
Looking at CRYPT, if you provide a key but not a digest algorithm, it will try to get the digest alg by splitting the key between a colon. So you could say: auth.settings.hmac_key = 'sha512:%s' % vpepm_hmac_key On Feb 7, 1:44 pm, Jonathan Lundell jlund...@pobox.com wrote: I've got this (where

[web2py] Re: web2py gae presentation

2010-02-07 Thread mr.freeze
I have a few things I've written that you are welcome to use as an idea,jumping off point or clone: Mileage tracker - http://www.web2pyslices.com/main/slices/take_slice/15 Art gallery manager - email me web2pyslices - http://www.web2pyslices.com/main/static/share/web2py.app.web2pyslices.w2p

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-07 Thread mr.freeze
Nice! I like this but I think it needs a few more tweaks. Can you modify it to allow the arrow keys to select an item? Also, when you clear the input after typing something, all of the options show. I personally think that javascript should be used more in the framework (with proper attention

[web2py] Re: cancel button

2010-02-07 Thread mr.freeze
I hate this too: form[0][-1][1]. I have a pending patch that will allow you to grab parent and sibling elements so you can do: form = SQLFORM(db.whatever) submit = form.element(_type='submit') submit.parent.append(INPUT(_type='submit',_value='Cancel')) A little more verbose but human readable

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-07 Thread mr.freeze
at least two chars to start the ajax calls. just do db.table.field.widget=AutocompleteWidget(request,db.othertable.name,db.othertable.id) it looks up in field name for the value of id. On Feb 7, 3:12 pm, mr.freeze nat...@freezable.com wrote: Nice! I like this but I think it needs a few more

[web2py] Re: AutocompleteWidget: experimental, magic, RFC

2010-02-07 Thread mr.freeze
give it a try. It seems some time requires double click instead of single click but cannot figure out why. On Feb 7, 8:52 pm, mr.freeze nat...@freezable.com wrote: Looking good but now I can't select an unselected option by clicking. I can only select the currently selected option with a mouse

[web2py] Re: Soaplib problem.

2010-02-07 Thread mr.freeze
I've heard good things about SUDS: https://fedorahosted.org/suds/ I've never used it and I don't know if it works on GAE but might be worth a shot. On Feb 7, 9:07 pm, Matt mjwat...@gmail.com wrote: So realistically the soaplib package won't work on GAE due to the lxml dependency. Do you know

[web2py] Re: function that lists all members of a group

2010-02-08 Thread mr.freeze
I don't think there is one built in but it should be simple. Something like this maybe: def get_members(role): try: group = db(db.auth_group.role==role).select()[0] members = db(db.auth_membership.group_id==group.id).select() return members except: return

[web2py] Re: DB query help

2010-02-09 Thread mr.freeze
The DAL will do the join for you on a reference field. You should be able to do: comments = db(db.post_comment.post_id==request.args(0)).select() for c in comments: print c.comment_by.username,c.comment I don't think this works on GAE On Feb 9, 11:19 pm, minh mdn0...@gmail.com wrote: Hi,

[web2py] generic views broken?

2010-02-18 Thread mr.freeze
I just downloaded the latest source and now any action in my controller that doesn't have an explicit view is broken. The request just hangs and the python process goes to 100% processor usage. If I define a view for the action, then it works. I am using Windows 7 and python 2.5 with

[web2py] Re: generic views broken?

2010-02-18 Thread mr.freeze
This line in generic.html seems to be causing the problem: div class=hidden id=responseh2response/ h2{{=BEAUTIFY(response)}}/div It doesn't look like beautify can handle it properly. On Feb 18, 11:16 am, mr.freeze nat...@freezable.com wrote: I just downloaded the latest source and now any

[web2py] Re: generic views broken?

2010-02-18 Thread mr.freeze
Is it still called trunk with hg? :) Let me know when to test. On Feb 18, 2:30 pm, mdipierro mdipie...@cs.depaul.edu wrote: aha this may be the problem of my memory leak! Fixing it in trunk. Massimo On Feb 18, 12:04 pm, mr.freeze nat...@freezable.com wrote: This line in generic.html

[web2py] Re: generic views broken?

2010-02-18 Thread mr.freeze
Money. Works now. On Feb 18, 2:58 pm, mdipierro mdipie...@cs.depaul.edu wrote: You should find 1.75.4 in trunk. On Feb 18, 2:52 pm, mr.freeze nat...@freezable.com wrote: Is it still called trunk with hg? :) Let me know when to test. On Feb 18, 2:30 pm, mdipierro mdipie...@cs.depaul.edu

[web2py] new from the slice house: request a slice!

2010-02-18 Thread mr.freeze
You can now request a slice on web2pyslices.com. You will be notified if someone creates a slice based on your request. There will eventually be a hall of fame to honor those who have created the most slices and responded to the most requests. To view or create a request, simply click the 'Slice

[web2py] Re: Any way to close a window from the controller?

2010-02-19 Thread mr.freeze
May not be what you're looking for but you can inject javascript from a controller with this: http://www.web2pyslices.com/main/slices/take_slice/8 On Feb 19, 5:52 pm, waTR r...@devshell.org wrote: I have a window that was opened by a link. I have it go to a controller, but once I am finished,

[web2py] Re: autocompletion

2010-02-20 Thread mr.freeze
Here's another option: http://www.web2pyslices.com/main/slices/take_slice/24 On Feb 20, 9:20 pm, weheh richard_gor...@verizon.net wrote: I'm in the middle of doing my first autocompletion. I've read and reread doc v2 example. But I've also gone to the jQuery site and looked at their example.

[web2py] Re: new on web2pyslices.com: version history!

2010-02-21 Thread mr.freeze
You can now also log revision comments and restore previous versions. On Jan 28, 11:01 pm, mdipierro mdipie...@cs.depaul.edu wrote: cool! On Jan 28, 10:20 pm, mr.freeze nat...@freezable.com wrote: Also, a newrevisionwill now trigger an email if you are subscribed to that slice. Handy

[web2py] Re: Saving Thumbnail Files

2010-02-21 Thread mr.freeze
What about saving it as original_filename_thumb? On Feb 21, 5:03 pm, villas villa...@gmail.com wrote: I'm having another go at this and have succeeded except for one remaining question. My object is to upload a file and make a thumbnail at the same time. Say I have a table with two fields

[web2py] Re: rpxauth and groups.

2010-02-21 Thread mr.freeze
Which RPX module are you using? On Feb 21, 10:05 pm, Matt mjwat...@gmail.com wrote: Hi there, I'm setting up rpxauth for use with my website. Thus far it's looking good and working well however I need to support groups for my users. According to the Auth documentation: Once a new user

[web2py] Re: rpxauth and groups.

2010-02-21 Thread mr.freeze
using: http://code.google.com/p/rpxauth/ Matt On Feb 22, 5:10 pm, mr.freeze nat...@freezable.com wrote: Which RPX module are you using? On Feb 21, 10:05 pm, Matt mjwat...@gmail.com wrote: Hi there, I'm setting up rpxauth for use with my website. Thus far it's looking good

[web2py] Re: Where is the actual API?

2010-02-22 Thread mr.freeze
http://web2py.com/examples/default/api http://web2py.com/examples/static/epydoc/index.html On Feb 22, 5:20 pm, Matt mjwat...@gmail.com wrote: Hi there, Is there an _actual_ HTML hosted API available that describes how to programatically use web2py? I.e. That covers things like tools,

[web2py] Re: creating Microsot Excel type charts

2010-02-22 Thread mr.freeze
This looks good too: http://www.jqplot.com/ On Feb 22, 5:27 pm, Richard richar...@gmail.com wrote: I have been using Google's Chart API for simple graphs and flot for interactive ones:http://code.google.com/p/flot/ On Feb 23, 9:04 am, Brian M bmere...@gmail.com wrote: Yahoo's YUI

[web2py] Re: Google Authentication with Auth

2010-02-22 Thread mr.freeze
I haven't used their api directly but have used RPX to authenticate google accounts: http://www.web2pyslices.com/main/slices/take_slice/28 On Feb 22, 6:44 pm, Richard richar...@gmail.com wrote: GAE has its own authentication features: from google.appengine.api import users user =

[web2py] Re: Google Authentication with Auth

2010-02-22 Thread mr.freeze
Looks like it. Missed that one. On Feb 22, 7:28 pm, Thadeus Burgess thade...@thadeusb.com wrote: Isn't this what the gluon/contrib/login_methods/gae_google_account.py is for? It integrates directly into web2py auth mechanisms? -Thadeus On Mon, Feb 22, 2010 at 6:52 PM, mr.freeze nat

[web2py] Re: what distinguishes update form from create form

2010-02-23 Thread mr.freeze
If you pass a specific record to SQLFORM, it will generate an update form for that record. If you don't pass a record, it will generate an insert form. On Feb 23, 4:47 am, hamdy.a.farag hamdy.a.fa...@inbox.com wrote: can't get it sorry !! is not there a special form variable that distinguishes

[web2py] Plugin system status

2010-02-23 Thread mr.freeze
Is the plugin system considered backwards compatible at this point? I am considering converting some modules into plugins but want to know if they API is stable. Also, is the naming convention of 'db' for your database still required for the plugin system? --- I predict that in

[web2py] Re: Plugin system status

2010-02-23 Thread mr.freeze
23, 6:37 pm, mr.freeze nat...@freezable.com wrote: Is the plugin system considered backwards compatible at this point? I am considering converting some modules into plugins but want to know if they API is stable. Also, is the naming convention of 'db' for your database still required

[web2py] Re: Plugin system status

2010-02-23 Thread mr.freeze
That still feels wrong to me. What about making a plugin_db parameter in option_std.py for the database instance name you want to use for the plugin subsystem? On Feb 23, 10:29 pm, mdipierro mdipie...@cs.depaul.edu wrote: yes On Feb 23, 10:18 pm, mr.freeze nat...@freezable.com wrote: What

[web2py] Re: Plugin system status

2010-02-23 Thread mr.freeze
conventions. Instead of a new global vars, I would prefer that each plugins has its own plugin_whatever_settings.db and users can customize each individual plugin. On Feb 23, 11:12 pm, mr.freeze nat...@freezable.com wrote: That still feels wrong to me. What about making a plugin_db parameter

[web2py] Re: web2py with Cherokee via uWSGI: a simple, easy guide

2010-02-24 Thread mr.freeze
This is really helpful. Unfortunately, it will be lost on this mailing list in a month or so. Care to make a slice? http://www.web2pyslices.com/main/default/index On Feb 23, 2:56 pm, GrayMatterComputing battledi...@gmail.com wrote: web2py with Cherokee via uWSGI: a simple, easy guide (written

[web2py] Re: Plugin system status

2010-02-24 Thread mr.freeze
on auth anyway. Or should we relax that? On Feb 23, 11:32 pm, mdipierro mdipie...@cs.depaul.edu wrote: OK but the I would call that variable db because that is what it is called in welcome/models/db.py On Feb 23, 11:25 pm, mr.freeze nat...@freezable.com wrote: I think the most

  1   2   3   4   5   6   7   8   9   10   >