On Fri, 28 Oct 2011 14:48:52 -0700 (PDT)
peter 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 in the web2py arena...e.g.
On Fri, 28 Oct 2011 18:06:18 -0400
Justin Heath
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
--
The senses are so
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 loca
Hi Anthony, you understand my needs perfectly. I will try your
solution. Thanks
Spring
On Oct 29, 1:26 pm, Anthony 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 content is stati
you are using ui=jquery-ui maybe locally it is not being loaded?
http://zerp.ly/rochacbruno
Em 29/10/2011 08:35, "peter" 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 in the
> way SQLFORM
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 "SQLFO
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
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, Br
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 wrote:
> Johan, we're you able to specify your own icons for your custom buttons? If
> so, may I know how you did it?
>
>
>
>
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 load
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
These lines appear at the top of my generated html files
Where are they generated, and how can I get control over them?
Thanks
On Oct 29, 2:49 pm, Anthony wrote:
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" escreveu:
> These lines appear at the top of my generated html files
>
>
> script>
> [web2py] Re: Question to Bruno on grid and styles
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
layout.ht
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
Yes it is related and there is a patch for this. More details on the
above link.
On Oct 28, 2:27 pm, szimszon wrote:
> Could be related:https://groups.google.com/forum/#!topic/web2py/lLCCUrwB5x0
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 filter
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
spec
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 the
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
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
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
However the lines still execute
{{#response.files.append(URL('static','css/jquery-
ui-1.8.16.custom.css'))}}
{{#response.files.append(URL('static
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 n
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
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 defaul
thanks
On Oct 29, 11:46 pm, Anthony 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 app
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
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, particu
Thanks will use this
On Oct 28, 12:21 pm, ~redShadow~ 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.
>
> I'm attaching two
Thanks. In trunk
On Oct 28, 5:26 pm, Carlos Hanson 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,
> ['ldap://DomainDnsZones.domain.
Open a ticket. this is a bug.
On Oct 28, 2:12 am, szimszon 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',
> Field( 'wdi
Thanks. Keep up posted on your progress.
On Oct 28, 4:48 pm, peter 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 view
> downloads, and vi
I am lost. Can you summarize problem and email me the patch?
On Oct 29, 12:42 pm, thodoris 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 wrote:
>
>
>
>
>
>
>
> > Could be related:https://groups.google.com/forum/#!topi
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ò wrote:
> Just wanted to update you on our progress.
>
> We have wrapped the modules that we use ourselves with
> socksipy:http://web2py.com/e
You must use cache.ram but this is not guaranteed to work.
In a multi-threaded environment the web server decides which threads
to start/stop/kill.
On Oct 29, 4:39 pm, Arturo Filastò wrote:
> We have noticed that everything in models gets executed every time a
> page gets loaded.
>
> Is there a w
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.
> auth.settings.allow_basic_log
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 id=db.auth_group.update_or_in
Actually I have not received it. Perhaps open a ticket and upload the
patch.
On Oct 29, 7:00 pm, Hong-Khoan Quach
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 29.10.2011 19:41, s
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:
db.my_table.form
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.
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
>
> I'd like to do this (or something like that), after all
> define_table()'s automatically generated by wwwsqldesigner:
> db.my_table.format = '%(name)s'
>
> I saw it is impossible because "_format" is stored as a tuple
> initialized with None if it's not passed to define_table().
>
_format defa
On Sunday, October 30, 2011 1:44:47 AM UTC-4, viniciusban wrote:
>
> 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
f.strftime(T('%Y/%m/%d').xml())
Also, if you need to temporarily force T() to make translations
immediately, I think you can do this:
T.lazy = False
T('translate this')
T.lazy = True
Anthony
On Sunday, October 30, 2011 1:42:18 AM UTC-4, viniciusban wrote:
>
> I'm trying to internationalize my
Thank you.
It worked. :-)
I think it would be nice to update book to document it, right?
On Sun, Oct 30, 2011 at 4:24 AM, Anthony wrote:
> On Sunday, October 30, 2011 1:44:47 AM UTC-4, viniciusban wrote:
>>
>> In the book there's this comments about it:
>>
>> [cite]
>> Most attributes of fiel