[web2py] Re: Massimo Di Pierro talks about web2py on FLOSS Weekly

2011-10-29 Thread Gour
On Fri, 28 Oct 2011 14:48:52 -0700 (PDT) peter peterchutchin...@gmail.com wrote: I have just written an ecommerce site in web2py. ukjazz.net. [...] So I think that web2py is well suited to ecommerce. Do you plan to open-source your project? I'd like that we have some standard components

[web2py] Re: Massimo Di Pierro talks about web2py on FLOSS Weekly

2011-10-29 Thread Gour
On Fri, 28 Oct 2011 18:06:18 -0400 Justin Heath justin.he...@gmail.com wrote: You can use hg-git to interface with git repos from mercurial. Yeah, I know about it, but wonder if web2py will keep hg mirror as it is now situation with bzr (although the latter is much bigger). Sincerely, Gour

[web2py] Question to Bruno on grid and styles

2011-10-29 Thread peter
Bruno I have an indentical application on the web and locally. I use the same version of web2py. However I seem to get some differences in the way SQLFORM.grid appears. If you look at www.ukjazz.net/store/albums the column headings and the lines above have a grey background. However on my

[web2py] Re: Best practice of organizing/present static pages

2011-10-29 Thread Spring
Hi Anthony, you understand my needs perfectly. I will try your solution. Thanks Spring On Oct 29, 1:26 pm, Anthony abasta...@gmail.com wrote: On Saturday, October 29, 2011 1:17:43 AM UTC-4, pbreit wrote: Not the best urls but could you put them in static? I assume he meant the main page

Re: [web2py] Question to Bruno on grid and styles

2011-10-29 Thread Bruno Rocha
you are using ui=jquery-ui maybe locally it is not being loaded? http://zerp.ly/rochacbruno Em 29/10/2011 08:35, peter peterchutchin...@gmail.com escreveu: Bruno I have an indentical application on the web and locally. I use the same version of web2py. However I seem to get some differences

[web2py] Re: list of usernames

2011-10-29 Thread Archibald Linx
I was wondering if the problem could come from multiselect_widget(f,v), a function that I took from this Web2py slices page : http://www.web2pyslices.com/slices/take_slice/70 In this function you can find the following line : inp = SQLFORM.widgets.options.widget(f,v) But now I am using

Re: [web2py] Re: Contribution

2011-10-29 Thread Hong-Khoan Quach
Hi, sure. But unfortunately for our practical course we need to fix at least one non-trivial bugfix or implement a feature. Regards Hong-Khoan Am 27.10.2011 23:29, schrieb Triquetra: I'm sure assistance with documentation would be appreciated by all! On Oct 26, 10:16 am, Hong-Khoan Quach

Re: [web2py] Re: Found a bug: XMLRPC with basic authorization fails

2011-10-29 Thread Hong-Khoan Quach
done signature.asc Description: OpenPGP digital signature

[web2py] Re: Question to Bruno on grid and styles

2011-10-29 Thread peter
Thanks for a quick response. You are right that this is where the grey background is coming from. But I am still at a loss as to why this is not being loaded on my local machine as the css are in the right place in the static folder and are the same on both machines. Peter On Oct 29, 12:46 pm,

[web2py] Re: SQLFORM.grid awesomeness and some questions

2011-10-29 Thread Cliff
Replace the Edit literal with an IMG helper. You can read all about helpers here: http://www.web2py.com/book/default/chapter/05#HTML-Helpers On Oct 28, 11:17 pm, Nik Go nikolai...@gmail.com wrote: Johan, we're you able to specify your own icons for your custom buttons? If so, may I know how

[web2py] Re: Question to Bruno on grid and styles

2011-10-29 Thread Anthony
You may need to clear your browser cache to get static files to update. On Saturday, October 29, 2011 9:30:15 AM UTC-4, peter wrote: Thanks for a quick response. You are right that this is where the grey background is coming from. But I am still at a loss as to why this is not being loaded

Re: [web2py] Re: Contribution

2011-10-29 Thread Anthony
On Saturday, October 29, 2011 8:58:23 AM UTC-4, Hong-Khoan wrote: Hi, sure. But unfortunately for our practical course we need to fix at least one non-trivial bugfix or implement a feature. Maybe look here for bugs and some feature requests: http://code.google.com/p/web2py/issues/list Some

[web2py] Re: Question to Bruno on grid and styles

2011-10-29 Thread peter
These lines appear at the top of my generated html files script src=/images/static/js/jquery.js type=text/javascript/ script link href=/images/static/css/calendar.css rel=stylesheet type=text/css / script src=/images/static/js/calendar.js type=text/ javascript/script link

Re: [web2py] Re: Question to Bruno on grid and styles

2011-10-29 Thread Bruno Rocha
you have ui loaded twice. there is a 1.75 and 1.8. probably plugin_wiki is loading it for you. and layout.html loads 1.8 http://zerp.ly/rochacbruno Em 29/10/2011 13:23, peter peterchutchin...@gmail.com escreveu: These lines appear at the top of my generated html files script

[web2py] Re: Question to Bruno on grid and styles

2011-10-29 Thread Anthony
There is a function called response.include_files() that is called in web2py_ajax.html, which is likely included in the head of your layout.html. Any files added to the response.files list prior to that being called will be included in the head by response.include_files(). The default

Re: [web2py] Re: Found a bug: XMLRPC with basic authorization fails

2011-10-29 Thread thodoris
Hi, I have tested the patch against 1.99.2 stable version of web2py and it works. auth.settings.allow_basic_login=True has to be set in order to be able to upload files using curl. Thodoris

[web2py] Re: curl post with authentication

2011-10-29 Thread thodoris
Yes it is related and there is a patch for this. More details on the above link. On Oct 28, 2:27 pm, szimszon szims...@gmail.com wrote: Could be related:https://groups.google.com/forum/#!topic/web2py/lLCCUrwB5x0

Re: [web2py] Re: Contribution

2011-10-29 Thread Matteo Harutunian
Hi Anthony, thanks, that looks promising, maybe we can find something in one of the links. We also had a brief look at the issue list before, but were uncertain whether or not its up to date or if the mentioned issues are of interest to the project. I guess we will have a closer look to

[web2py] Re: SOCKsify all connections from web2py server

2011-10-29 Thread Arturo Filastò
Just wanted to update you on our progress. We have wrapped the modules that we use ourselves with socksipy: http://web2py.com/examples/static/epydoc/web2py.gluon.shell-module.html https://code.google.com/p/socksipy-branch/ However we would like to have make also our DNS requests go through a

[web2py] Persistent variables in web2py

2011-10-29 Thread Arturo Filastò
We have noticed that everything in models gets executed every time a page gets loaded. Is there a way in web2py to have varibles be persistent. For example when I instantiate a class I don't want to re-instantiate it every time a page is loaded. The same is true for database connections. Does

Re: [web2py] Suggestions for multiple files upload in form

2011-10-29 Thread Bruno Rocha
Thank you Paolo, very nice app. -- Bruno Rocha [http://rochacbruno.com.br]

[web2py] ASK Web2py Groups:Is there a better way?

2011-10-29 Thread Pystar
In an app I am developing, in my database definition I have a filed whose default value is auth.user.first_name, but I noticed that when I try to run the app it gives me an error since there is no user logged in and auth.user == None and the None value doesnt have a first_name attribute. How then

Re: [web2py] Suggestions for multiple files upload in form

2011-10-29 Thread Paolo Caruccio
Bruno, thanks. What do you think about the upload mechanism? Can it be translate in a web2py widget? or is it better to use a different javascript/jquery library? Regards. Paolo

[web2py] Re: Question to Bruno on grid and styles

2011-10-29 Thread peter
Thanks for your answers. One of the things that has been confusing me, and I would call a bug is this I have commented out two lines in layout.html !-- {{response.files.append(URL('static','css/jquery- ui-1.8.16.custom.css'))}} {{response.files.append(URL('static','js/jquery-

[web2py] Re: Question to Bruno on grid and styles

2011-10-29 Thread Anthony
It's not a bug. Stuff inside {{ }} is interpreted as Python code -- if you want to comment that, you have to use Python comments. Anything outside of {{ }} is left exactly as is so that you can mix whatever HTML/CSS/JS you want with the web2py template language. The web2py template engine does

[web2py] Re: Question to Bruno on grid and styles

2011-10-29 Thread Anthony
On Saturday, October 29, 2011 1:30:58 PM UTC-4, Anthony wrote: There is a function called response.include_files() that is called in web2py_ajax.html, which is likely included in the head of your layout.html. Any files added to the response.files list prior to that being called will be

[web2py] Re: ASK Web2py Groups:Is there a better way?

2011-10-29 Thread Anthony
default=auth.user.first_name if auth.user else 'some_other_default' or default=auth.user and auth.user.first_name or 'some_other_default' Anthony On Saturday, October 29, 2011 6:10:34 PM UTC-4, Pystar wrote: In an app I am developing, in my database definition I have a filed whose default

[web2py] Re: ASK Web2py Groups:Is there a better way?

2011-10-29 Thread Pystar
thanks On Oct 29, 11:46 pm, Anthony abasta...@gmail.com wrote: default=auth.user.first_name if auth.user else 'some_other_default' or default=auth.user and auth.user.first_name or 'some_other_default' Anthony On Saturday, October 29, 2011 6:10:34 PM UTC-4, Pystar wrote: In an

[web2py] Re: ASK Web2py Groups:Is there a better way?

2011-10-29 Thread Pystar
I actually did this and it worked, I put this at the top of my module file: def func(): if auth.user == None: return Anon else: return auth.user.first_name and in my table definition I did this: Field(auctioner, string, default = func(), required=True, readable=False,

[web2py] Re: ASK Web2py Groups:Is there a better way?

2011-10-29 Thread Anthony
On Saturday, October 29, 2011 6:58:53 PM UTC-4, Pystar wrote: I actually did this and it worked, I put this at the top of my module file: def func(): if auth.user == None: return Anon else: return auth.user.first_name Seems like overkill, particularly if

[web2py] Re: CSS for book printing

2011-10-29 Thread Massimo Di Pierro
Thanks will use this On Oct 28, 12:21 pm, ~redShadow~ redsha...@hackzine.org wrote: I just wrote a small CSS that changes a bit the layout of the web2py book in order to make it more printer-friendly. I tested it using Stylish Firefox addon, and PDF generated by print to pdf looks nice.

[web2py] Re: ldap_auth bug report

2011-10-29 Thread Massimo Di Pierro
Thanks. In trunk On Oct 28, 5:26 pm, Carlos Hanson car...@clanhanson.com wrote: Greetings, We use DNS in our Active Directory domain, so we get some extra results in a search:   [(None, ['ldap://ForestDnsZones.domain.com/DC=ForestDnsZones,DC=domain,DC=com']),    (None,

[web2py] Re: sqlform.grid and represent vs. format

2011-10-29 Thread Massimo Di Pierro
Open a ticket. this is a bug. On Oct 28, 2:12 am, szimszon szims...@gmail.com wrote: I have to tables db.define_table( 'wdirs',         Field( 'name', type = 'string',                 requires = IS_NOT_EMPTY()), *(a)*     *format='%(name)s %(id)s'* ) db.define_table( 'files',        

[web2py] Re: Massimo Di Pierro talks about web2py on FLOSS Weekly

2011-10-29 Thread Massimo Di Pierro
Thanks. Keep up posted on your progress. On Oct 28, 4:48 pm, peter peterchutchin...@gmail.com wrote: I have just written an ecommerce site in web2py. ukjazz.net. At the moment it is in demo form, so you can buy things for free when you click pay now. You will find that then it has things like

[web2py] Re: curl post with authentication

2011-10-29 Thread Massimo Di Pierro
I am lost. Can you summarize problem and email me the patch? On Oct 29, 12:42 pm, thodoris pasxi...@gmail.com wrote: Yes it is related and there is a patch for this. More details on the above link. On Oct 28, 2:27 pm, szimszon szims...@gmail.com wrote: Could be

[web2py] Re: SOCKsify all connections from web2py server

2011-10-29 Thread Massimo Di Pierro
Can you send a diff of your version of web2py? Perhaps we can create a hook so that you do not neet to maintain a fork. On Oct 29, 4:38 pm, Arturo Filastò a...@baculo.org wrote: Just wanted to update you on our progress. We have wrapped the modules that we use ourselves with

Re: [web2py] Re: Found a bug: XMLRPC with basic authorization fails

2011-10-29 Thread Hong-Khoan Quach
Hi thodoris, thx for testing ;) . I hope Massimo will reply soon whether he has received our Email with the patch. Regards Hong-Khoan Am 29.10.2011 19:41, schrieb thodoris: Hi, I have tested the patch against 1.99.2 stable version of web2py and it works.

[web2py] After LDAP authentication, where can I change some actions?

2011-10-29 Thread Tito Garrido
Hi Folks! I could see that ldap authentication is located on: /web2py/gluon/contrib/login_methods but after the login I need to insert the user on some ldap groups that I've queried during the authentication... where I can do it? I can see that I won't be able to use

[web2py] Re: Found a bug: XMLRPC with basic authorization fails

2011-10-29 Thread Massimo Di Pierro
Actually I have not received it. Perhaps open a ticket and upload the patch. On Oct 29, 7:00 pm, Hong-Khoan Quach hongkhoanqu...@googlemail.com wrote: Hi thodoris, thx for testing ;) . I hope Massimo will reply soon whether he has received our Email with the patch. Regards Hong-Khoan Am

[web2py] JSONDecodeError: No JSON object could be decoded

2011-10-29 Thread wwwgong
Hi, add 2 functinos in myapp/controller/default.py @service.run def concat(a,b): return a+b @service.jsonrpc def concat2(a,b): return a+b test them using browser 1) http://127.0.0.1:8000/myapp/default/call/run/concat?a=hellob=world -- return 'helloworld' 2)

Re: [web2py] JSONDecodeError: No JSON object could be decoded

2011-10-29 Thread Jonathan Lundell
On Oct 29, 2011, at 9:36 PM, wwwgong wrote: Hi, add 2 functinos in myapp/controller/default.py @service.run def concat(a,b): return a+b @service.jsonrpc def concat2(a,b): return a+b test them using browser 1)

[web2py] table.format cannot be set after define_table()?

2011-10-29 Thread Vinicius Assef
Hi guys. I'm using wwwsqldesigner to visually generate my models and I faced a problem. My tables are defined like this: db.define_table('my_table', Field('name')) I'd like to do this (or something like that), after all define_table()'s automatically generated by wwwsqldesigner:

[web2py] date_field.represent with T() strings

2011-10-29 Thread Vinicius Assef
I'm trying to internationalize my date representations using: db.my_table.date_field.represent = lambda f: f.strftime(T('%Y/%m/%d')) But unfortunatelly I'm getting this error: TypeError: strftime() argument 1 must be string or read-only buffer, not lazyT How can I do this? -- Vinicius Assef.

[web2py] Re: table.format cannot be set after define_table()?

2011-10-29 Thread Vinicius Assef
In the book there's this comments about it: [cite] Most attributes of fields and tables can be modified after they are defined: db.define_table('person',Field('name',default=''),format='%(name)s') db.person._format = '%(name)s/%(id)s' db.person.name.default = 'anonymous' (notice that attributes