Sorry for the late response. I tried putting print statements in this
method, but I don't see anything on the console. Is there an option
while starting web2py to enable this?
On Dec 15, 10:53 pm, mdipierro wrote:
> Hmmm... look into gluon/tools.py
>
> def basic(self):
> if not self.s
Update: Needed to restart web2py (sorry I'm spoilt!)
Ok it works as expected. It seems I need to unescape the "@" symbol in
username before calling basic(). I was using the encoded %40 instead.
On Dec 29, 1:10 pm, Adi wrote:
> Sorry for the late response. I tried putting print statements in thi
Thank you guys for your answers,
ron - it was just an example
Luther - this table was migrated from our old data and we do intent to
use auth instead
still, it's good practice to always have unique field or combination
of fields in a table besides the id, id is for machines, not suitable
for the r
Thank you guys for your answers,
ron - it was just an example
Luther - this table was migrated from our old data and we do intent to
use auth instead
still, it's good practice to always have unique field or combination
of fields in a table besides the id, id is for machines, not suitable
for the r
On Wednesday, December 29, 2010 6:48:51 PM UTC+11, stu...@brankovukelic.com
wrote:
>
> > It is an open question whether distribution of such modified copies are
> > legally allowed to still be called web2py if Massimo has sole legal
> rights
> > on the name. Thus, you may be able to do that, bu
Hi
I have a problem since version 1.83.2. It gives me this error:
Traceback (most recent call last):
File "D:\web2py\gluon\restricted.py", line 186, in restricted
exec ccode in environment
File "D:/web2py/applications/init/controllers/default.py", line 91,
in
File "D:\web2py\gluon\glob
If I remember correctly there was something about this on the list.
I think you use the URL the wrong way and until version 1.83.2 the
helper worked wrongly. In your case it "worked" but it has been
corrected and it doesn´t work anymore.
Try something like URL(c='account', f='log_in')
Kenne
or
URL('account', 'log_in')
On Dec 29, 3:14 am, Kenneth Lundström
wrote:
> If I remember correctly there was something about this on the list.
>
> I think you use the URL the wrong way and until version 1.83.2 the
> helper worked wrongly. In your case it "worked" but it has been
> corrected and
2010/12/29 Kenneth Lundström :
> If I remember correctly there was something about this on the list.
>
> I think you use the URL the wrong way and until version 1.83.2 the helper
> worked wrongly. In your case it "worked" but it has been corrected and it
> doesn´t work anymore.
Hm. Isn't that tech
I might be completly wrong but I think the way URL was used by Maurice
was wrong, it should not have worked, but thanks to a bug in URL it
worked the way Maurice wanted.
So I guess it depends on how you look at it. Did it break backwards
compatibility.
If your are using a bug and somebody re
Hi,
Thank you for testing, it is more updated in bitbucket. Now it has search by
column and a test version of server side processing.
If you want to change the pager do:
plugins.powerTable.dtfeatures['sPaginationType'] = 'full_numbers'
Here is a demo:
http://powertable.blouweb.com/products?
2010/12/29 Kenneth Lundström :
> If your are using a bug and somebody repairs that bug your application stops
> working.
I agree completely. However, it's a tricky situation if you insist on
ever-backwards-compatible. You only insist on that because you don't
want to break people's apps. Yet a bug
I guess not even web2py is perfect. Maybe some day.
Kenneth
2010/12/29 Kenneth Lundström:
If your are using a bug and somebody repairs that bug your application stops
working.
I agree completely. However, it's a tricky situation if you insist on
ever-backwards-compatible. You only insist
Il 28/12/2010 23:40, Luther Goh Lu Feng ha scritto:
Is there a reason why you are not using Auth, if you aren't?
http://www.web2py.com/book/default/chapter/08#Authentication
Anyway, assuming that you truly want to add the unique constraint,
then I am guessing that you could construct virtual fi
2010/12/29 Kenneth Lundström :
> I guess not even web2py is perfect. Maybe some day.
Sure. I don't mind the bugs getting fixed. I just wanted to say that
in a perfect world, you cannot expect backwards-compatibility-forever.
:)
--
Branko Vukelic
stu...@brankovukelic.com
http://www.brankovuk
It doesn't break backwards compatibility, because it *should not* work
the way it did.
@massimo: I think a SyntaxError should not be used for a case like
this. See that the syntax is correct and the passed values not, a
ValueError or the like shall be used.
On 29 Dez., 11:59, Kenneth Lundström
w
I would like to see web2py becomes matured in a similar model as
Drupal, at lease with a PR manager, a release manager, a documentation
manager, and a newbie-assistance manager, together with a platform
that attracts developers and encourages contribution. Massimo's role
should be in developing an
Hi everyone.
I'm customizing my authentication and access control system (following
the instructions from the web2py website and some examples of this
group).
I've renamed my auth_user table with the following:
auth.settings.table_user_name = 'ciudadanos'
Then I renamed the fields "first_name" an
Hi,
you can use *label* like described here:
http://www.mail-archive.com/web2py@googlegroups.com/msg28123.html
but you can still reference it only by its name ['first_name', 'last_name'].
On Wed, Dec 29, 2010 at 2:44 PM, Lisandro wrote:
> Hi everyone.
> I'm customizing my authentication and acce
http://dis.4chan.org/read/prog/1180084983/
--
Bruno Rocha
http://about.me/rochacbruno/bio
'Enterprise Programmer' is the best part of it. LOL
2010/12/29 Bruno Rocha
>
>
>
> http://dis.4chan.org/read/prog/1180084983/
>
>
>
> --
>
> Bruno Rocha
> http://about.me/rochacbruno/bio
>
--
Bruno Rocha
http://about.me/rochacbruno/bio
Hey
I have simple problem:
I work with eclips and web2py, every time when i done some change i
need to restart web2py server to see effect of my work, is there any
workaround for this. ???
Hi All !
I am new to web2py and my company is building an enterprise
level web application that will run on the desktop and also mobile
apps using web2py! So far it has been a gr8 experience working with
web2py and kudos to all the developers that made such an awesome
framework !
I am tr
Hello!
I'm using web2py with jquery and jquery.flot plugin
Tell me please how can I get json output like following:
[ { label: "Foo", data: [ [10, 1], [17, -14], [30, 5] ] },
{ label: "Bar", data: [ [11, 13], [19, 11], [30, -7] ] } ]
On Wed, Dec 29, 2010 at 3:38 PM, bova wrote:
> Hello!
>
> I'm using web2py with jquery and jquery.flot plugin
>
> Tell me please how can I get json output like following:
> [ { label: "Foo", data: [ [10, 1], [17, -14], [30, 5] ] },
> { label: "Bar", data: [ [11, 13], [19, 11], [30, -7] ] } ]
>
where is the attachment pdf?
I'm not aware of anything like this, but of course you can execute SQL
directly with web2py
I don't use Eclipse anymore but I can just tell that on my ubuntu box
I never need to restart the server when I edit a file in the
application folder (that is Model, View or Controller) and I tought
that web2py works like that.
If you work in the framework itself, I think that stop and start is a
Hi Bruno,
waauu what a Plugin your working on, very nice.
What does the productdetails function look like?
Kenneth
Hi,
Thank you for testing, it is more updated in bitbucket. Now it has search by
column and a test version of server side processing.
If you want to change the pager do:
plu
Very Impressive!
On Dec 27, 10:55 pm, mdipierro wrote:
> http://vimeo.com/18232653
Hi,
I need to customize Auth:
1. use username instead of e-mail for login
2. remove first_name and last_name fields
3. make username case_insensitive
I decided to use first_name field to store the "real" username, and
username field to store lowercase username (for case-insensitive
login).
Used
def jsonlist():
import gluon.contrib.simplejson
L = [ { 'label': "Foo", 'data': [ [10, 1], [17, -14], [30, 5] ] },
{ 'label': "Bar", 'data': [ [11, 13], [19, 11], [30, -7] ] } ]
response.headers['Content-Type']='text/json'
return gluon.contrib.simplejson.dumps(L)
On Dec 29, 9:38 am, b
Also, what about the book? Would the community have to start from scratch on
new documentation? The online version says "modified content cannot be
reproduced."
Anthony
On Wednesday, December 29, 2010 2:21:20 AM UTC-5, Graham Dumpleton wrote:
>
>
> On Wednesday, December 29, 2010 5:49:17 PM U
virtual fields are not computed fields. They do not exist in the db.
They are computed when records are retrieved. They cannot have
requirements or attributes because there no way to input their values
in a form. So this is simply imporssible:
db.mytable.uniqueField.requires = ...
On Dec 29, 5:
I agree.
On Dec 29, 7:29 am, snapy666 wrote:
> It doesn't break backwards compatibility, because it *should not* work
> the way it did.
>
> @massimo: I think a SyntaxError should not be used for a case like
> this. See that the syntax is correct and the passed values not, a
> ValueError or the li
c'mon... only for integer numbers (and not even checking)? What about
float?
Anyway, he is also missing:
storage = {}
def memoize(f):
def g(x):
if x in storage:
y = strorage[x]
else:
y = storage[x] = f(x)
return y
return g
@memoize
def fact
2010/12/29 Kenneth Lundström
> Hi Bruno,
>
> waauu what a Plugin your working on, very nice.
>
> What does the productdetails function look like?
In the main table every row has two attributes
ID = it is the record id from rows object, if there is not an id field it
will be the first row value
You should be able to doL
from gluon.dal import Expression
db(query).select(Expression("CASE WHEN 1=1 THEN 0 ELSE 1 END"));
Nut I never tried.
On Dec 29, 8:37 am, Harkirat wrote:
> Hi All !
> I am new to web2py and my company is building an enterprise
> level web application that wil
hi,
i will create an app for a community. and i need now the messages
function (inbox, sent...)
have somebody experience with this? can somebody help me?
thanks
peter
Right. I will make sure in my will web2py trademark is released on my
death.
On Dec 29, 2:41 am, Graham Dumpleton
wrote:
> On Wednesday, December 29, 2010 6:48:51 PM UTC+11, stu...@brankovukelic.com
> wrote:
>
> > > It is an open question whether distribution of such modified copies are
> > > leg
I will amend my will to release the book under an open source license.
You guys really think my "heirs" even know what I do in front of the
computer all day?
Massimo
On Dec 29, 10:26 am, Anthony wrote:
> Also, what about the book? Would the community have to start from scratch on
> new document
I found that for list and dict
repr(L)
works as good as
gluon.contrib.simplejson.dumps(L)
and it is much faster. What am I missing?
On Dec 29, 10:26 am, DenesL wrote:
> def jsonlist():
> import gluon.contrib.simplejson
> L = [ { 'label': "Foo", 'data': [ [10, 1], [17, -14], [30, 5] ] },
>
Here are some thoughts on URL design you might be interested in:
http://warpspire.com/posts/url-design/
Marco
Maybe not the best way, but just for testing, I tried this:
db.define_table('person',
Field('unikey','id',compute=lambda r: r.fname+r.lname),
Field('fname'),
field('lname')
)
got an error because the 'id' needs to be int
File "/ho
Are you using @cache() in functions? is your app compiled?
2010/12/29 Tomek
> Hey
>
> I have simple problem:
>
> I work with eclips and web2py, every time when i done some change i
> need to restart web2py server to see effect of my work, is there any
> workaround for this. ???
>
>
--
Brun
Beats me
https://docs.google.com/document/d/1LzT4fCd135lzgWiXGut6k4WoC9t7eV-6RSnUexNxezM/edit?hl=en_GB#
I think the dictionaries should work the same, though. Never tried,
but they are the same string form as JSON objects.
On Wed, Dec 29, 2010 at 6:05 PM, mdipierro wrote:
> I found that for list and dict
>
> repr(L)
>
> works as good as
>
> gluon.contrib.simplejson.dumps(L)
>
> and it is much faste
NIce!
But it is internship, django related and so far away from me or my Pythonic
friends.
So easy to decrypt the message.
Em 29 de dezembro de 2010 15:25, António Ramos escreveu:
> Beats me
>
>
> https://docs.google.com/document/d/1LzT4fCd135lzgWiXGut6k4WoC9t7eV-6RSnUexNxezM/edit?hl=en_GB#
On Wed, Dec 29, 2010 at 6:04 PM, mdipierro wrote:
> I will amend my will to release the book under an open source license.
>
> You guys really think my "heirs" even know what I do in front of the
> computer all day?
I dunno, but could you ask them if they'd sue people who would dare
continue the
Hi Bruno,
Work was done (I believe by Denes) to introduce non-standard primary
keys. However, that was really for legacy DBs that could not be
migrated to the web2py conventions. In any case, it was only available
for certain DBs and I'm not sure the work has been migrated and tested
properly in t
Just to update this thread, I guess this is fixed in trunk:
http://code.google.com/p/web2py/source/detail?r=729dfb5d92789c2accad605b543be7775def6cdc
2010/12/28 Emceha
> Hi I have such controller in default.py
>
> def index():
>dzialy = db().select(db.dzialy.ALL,orderby=db.dzialy.kolejnosc)
>
Perhaps try the Software Conservance again? I see that they recently
accepted PyPy and Git
On Dec 28, 9:28 am, mdipierro wrote:
> A foundation is a corporation and, believe it or not, in US a
> corporation is a person:
>
> http://www.professorbainbridge.com/professorbainbridgecom/2010/01/the...
This thread can be historical like that one:
http://www.python.org/search/hypermail/python-1994q2/1040.html which was the
start of PSF
it works great for me.
On Dec 29, 11:41 am, Branko Vukelić wrote:
> I think the dictionaries should work the same, though. Never tried,
> but they are the same string form as JSON objects.
>
>
>
> On Wed, Dec 29, 2010 at 6:05 PM, mdipierro wrote:
> > I found that for list and dict
>
> > repr(L)
i just xored every char in the password with the char in the array but got
another array full of garbage.
can you point any direction toward the sunshine?
Thanks
2010/12/29 Bruno Rocha
> NIce!
>
> But it is internship, django related and so far away from me or my Pythonic
> friends.
>
> So eas
>>> def xor(data,key):
... return ''.join(chr(ord(x) ^ ord(y)) for (x,y) in izip(data,
cycle(key)))
...
>>> k = 'i2Mobile'
>>> job_opportunity =
' ' ' \\9\n\x10\x07\x1f\r\x00Bm\x0e\x16I\x05W$]/\x06\x0e\...@e\x00\\m
\x07\x00\x1e\x04\x1a\x1cm8\x07I\x1b\x04\x07Fm\x0c\x10\x0c\r\x11\x00D(O\x1b\x06\x
Ops, I forgot to mention:
from itertools import izip,cycle
2010/12/29 Bruno Rocha
> >>> def xor(data,key):
> ... return ''.join(chr(ord(x) ^ ord(y)) for (x,y) in izip(data,
> cycle(key)))
> ...
> >>> k = 'i2Mobile'
> >>> job_opportunity =
> ' ' ' \\9\n\x10\x07\x1f\r\x00Bm\x0e\x16I\x05W$]/\x
the output is the same as i have with my code
>>> xor(job_opportunity,k)
'5\x0bG\x7fevae+_Cy+l;A4\x1dKan))e5_mhbwh\x7fu_uh+rhb/_A\x7fnd}e-\x1a\x02tdpgk{\x1bG{nif|>\rQ-mj{,4\nP-}`{u{\x0cOlgi)x>\x1eO#+Rl,.\x0cG-[|}d4\x11\x0e-Oohb<\x10\x0e-F|z}7S\x02N())_\n3\x02^nw\x7fi)S\x02G9HL
{\x16m^\'%Hb?\rMdo))
Em 29 de dezembro de 2010 16:27, António Ramos escreveu:
> the output is the same as i have with my code
>
Strange.
for me it worked very well.
>>> xor(job_opportunity,k)
'Internship at i2Mobile, in Oeiras. We want creative young developers for
our very small team. We use Python, Django, Mysq
Cool
On Dec 29, 8:56 am, mdipierro wrote:
> You should be able to doL
>
> from gluon.dal import Expression
>
> db(query).select(Expression("CASE WHEN 1=1 THEN 0 ELSE 1 END"));
>
> Nut I never tried.
>
> On Dec 29, 8:37 am, Harkirat wrote:
>
>
>
> > Hi All !
> > I am new to web2py and m
Where is the code that Generates the FORMs?
What is the best way to modify this; Currently when it outputs the key name
It puts a colon; ex. "First Name:" instaead of just "First Name"
I simply want to remove that from the form.
Also on the links of the welcome app; That generate the "[ login
I totally agree with Jonathan Lundell,
I think the changes he proposes, would provide stability web2py, and I'm
sure will appeal to users (both new and existing).
My humble opinion is that the way they attack the bugs, is one of the
weaknesses ofweb2py, I think it is
messy and I'm sure many have
you can set labels to auth_user table
db.auth_user.first_name.label = 'F Name'
db.auth_user.last_name.label = 'WHATEVER'
If you mean extra link in login/register form, simply edit
/views/default/user.html
2010/12/29 David J.
> Where is the code that Generates the FORMs?
>
> What is the best
Maybe they think you are watching youtube videos :p
On Dec 30, 1:04 am, mdipierro wrote:
> I will amend my will to release the book under an open source license.
>
> You guys really think my "heirs" even know what I do in front of the
> computer all day?
>
> Massimo
>
> On Dec 29, 10:26 am, Antho
Bruno;
That just changes the value; but the problem is the form code adds an
extra ":" to the end of the name.
so if you do as you suggested. db.auth_user.first_name.label='FName'
It outputs "FName:" not "FName" without the trailing colon ":"
Thanks.
On 12/29/10 2:02 PM, Bruno Rocha wrote
Also if you look carefully this out put code is not consistent.
If you look at the "verify password" field it is not using
class="w2p_fl|fw|fc"
Its just wrapped in a label.
Snippet from Register form.
for="auth_user_password" id="auth_user_password__label">Password:
id="auth_user_password"
2010/12/29 David J.
> Bruno;
>
> That just changes the value; but the problem is the form code adds an extra
> ":" to the end of the name.
>
> so if you do as you suggested. db.auth_user.first_name.label='FName'
>
> It outputs "FName:" not "FName" without the trailing colon ":"
>
The colon is
Thanks for the quickly answer. Though, I really need to rename the
field, this is for keep backward compatibility and standards with an
existing system.
On 29 dic, 11:03, Marin Pranjic wrote:
> Hi,
> you can use *label* like described
> here:http://www.mail-archive.com/web2py@googlegroups.com/m
great as far as 25 page pdf is in consideration. next time a simple text
file is good enough.
how the page get rendered? using generic.html or is it have a custom view
file?
And what's the controller returns?
btw which version of web2py you are using?
--
On 29-12-2010 21:37, Arun K.Rajeevan wrote:
> great as far as 25 page pdf is in consideration. next time a simple text file
> is good enough.
sorry about the large file, but I thought to give as much information as
possible
> how the page get rendered?
Mozilla printing to pdf
> using generic.html
problem seems to be with encoding data.
Can you show us relevant code that defines and initialize Books!
If you put code in a file under the modules directory then it will require a
restart unless you set the reload parameter to True
In model or controller
mod_name = local_import('module_file', True) will force a reload every time
so restart not needed.
Otherwise nothing gets retained between requ
On Dec 29, 2010, at 12:37 PM, Arun K.Rajeevan wrote:
> great as far as 25 page pdf is in consideration. next time a simple text file
> is good enough.
> how the page get rendered? using generic.html or is it have a custom view
> file?
> And what's the controller returns?
>
> btw which version of
Probably it is counting
data.encode('utf8', 'xmlcharrefreplace')
data as self and 'utf8' as second argument. yet it is strange because
this is valid syntax.
On Dec 29, 3:08 pm, Jonathan Lundell wrote:
> On Dec 29, 2010, at 12:37 PM, Arun K.Rajeevan wrote:
>
>
>
> > great as far as 25 page pdf
You can "ignore" current first_name or last_name (or both) fields, and add
other fields, as you like.
Add custom fields, and for current (first_name, last_name) set readable =
False and writable = False and just don't use them.
More about customizing:
http://www.web2py.com/book/default/chapter/08
ping. in trunk it's now at line 4774.
if there is a reason not to make the change please let me know so i can fix
my code. (but i assume this just has not made it to the priority list yet,
which is just fine, it is the holiday season and all!)
thanks,
christian
On Dec 29, 2010, at 1:35 PM, mdipierro wrote:
>
> Probably it is counting
>
> data.encode('utf8', 'xmlcharrefreplace')
>
> data as self and 'utf8' as second argument. yet it is strange because
> this is valid syntax.
That occurred to me, too, but that's not what's happening. See my test sequenc
thanks very much guys,
but probably you missed the solution I posted about an hour ago:
strings are of type
cheers
Stef
On 29-12-2010 22:51, Jonathan Lundell wrote:
> On Dec 29, 2010, at 1:35 PM, mdipierro wrote:
>> Probably it is counting
>>
>> data.encode('utf8', 'xmlcharrefreplace')
>>
>> d
Can you please hide the email from bots.
On Wed, Dec 29, 2010 at 7:08 PM, Bruno Rocha wrote:
>
> This thread can be historical like that
> one: http://www.python.org/search/hypermail/python-1994q2/1040.html which
> was the start of PSF
Why are Westerners so obsessed with death? That's quite amazing.
--
Branko Vukelic
stu...@brankovu
hello,
I'v raw html derived with BeautifulSoup from another webpage,
which I want insert in the contents of the web.
The images in the orginal webpage are located in the same directory as the html
page.
The orginal webpage is moved to a database,
and the images are placed into the web2py applicat
hi all. i have a component i'm plugging into the middle of a page, but
i want that component to act seamlessly with the rest of the page. i
do NOT want the component to do what components usually do and act
independently. i need to include variable files, and components are
the only way i can find
It is more that people in US are obsessed with lawsuits. ;-)
On Dec 29, 4:30 pm, Branko Vukelić wrote:
> On Wed, Dec 29, 2010 at 7:08 PM, Bruno Rocha wrote:
>
> > This thread can be historical like that
> > one: http://www.python.org/search/hypermail/python-1994q2/1040.html which
> > was the s
2010/12/30 mdipierro :
> It is more that people in US are obsessed with lawsuits. ;-)
Lawsuits and death. Very nice. :)
--
Branko Vukelic
stu...@brankovukelic.com
http://www.brankovukelic.com/
version 0.2:
http://www.vimeo.com/18282084
On Dec 28, 12:55 am, mdipierro wrote:
> http://vimeo.com/18232653
On Dec 29, 2010, at 3:25 PM, mattynoce wrote:
>
> hi all. i have a component i'm plugging into the middle of a page, but
> i want that component to act seamlessly with the rest of the page. i
> do NOT want the component to do what components usually do and act
> independently. i need to include va
in trunk. Sorry I had missed the thread
On Dec 29, 3:49 pm, howesc wrote:
> ping. in trunk it's now at line 4774.
>
> if there is a reason not to make the change please let me know so i can fix
> my code. (but i assume this just has not made it to the priority list yet,
> which is just fine, it
Thanks everyone.
It worked.
On Dec 29, 6:45 pm, mdipierro wrote:
> or
>
> URL('account', 'log_in')
>
> On Dec 29, 3:14 am, Kenneth Lundström
> wrote:
>
> > If I remember correctly there was something about this on the list.
>
> > I think you use the URL the wrong way and until version 1.83.2 th
Btw, in case you're new to these things, the main point of URL helpers
(called URL generators in some frameworks) is to generate the URL
based on the information about the internal structure of the
application. This is done to avoid hard-coding the paths. If you
merely use the URL helper function t
On Dec 29, 2010, at 3:10 PM, Stef Mientki wrote:
>
> Now I encounter 2 problems:
> 1. the raw html contains tags, like:
>
>toch iets over stromen, een plaatje />
>
> I "remove" them with the helper function TAG.
> Although it seems to work, I'm not convinced that this is the right meth
On Dec 29, 2010, at 4:32 PM, Branko Vukelić wrote:
>
> Btw, in case you're new to these things, the main point of URL helpers
> (called URL generators in some frameworks) is to generate the URL
> based on the information about the internal structure of the
> application. This is done to avoid hard
Hi
I've upgraded to version 1.91.5 and noticed an issue with the database
administrator.
I was in the admin application of my application (http://localhost:
8000/admin/default/design/init) and clicked on "database
administration", then click on any one of my populated databases. By
right, it shou
Hi Folks,
I just read the entire thread... uff.
I am a member of the Technical Leaderhip Council at Coin-OR (www.coin-
or.org). We went through these arguments a while back improductively
several times until we made it a priority to resolve them. We are sure
glad we did. We have over 50 projects
What version did you upgrade from? Did it work before with the same
data?
On Dec 29, 7:00 pm, Maurice Ling wrote:
> Hi
>
> I've upgraded to version 1.91.5 and noticed an issue with the database
> administrator.
>
> I was in the admin application of my application (http://localhost:
> 8000/admin/
Thanks for the suggestion Massimo! I haven't been able to get it to
work though.
That syntax returns an error "TypeError: __init__() takes at least 3
arguments (2 given)"
Tried looking at the Expression class defined in DAL.py for what
arguments it needs but haven't been able to figure this out.
An
It is definitively possible. It just that I cannot test it right now.
Try:
db(query).select(Expression("CASE WHEN 1=1 THEN 0 ELSE 1 END",None));
else you can use
db.executesql("... any raw sql ...")
the latter is the safe way. Always works.
On Dec 29, 6:55 pm, Harkirat wrote:
> Thanks for the
> An alternative to Text.replace would be to do a global regex substitution,
> where the replacement pattern is a function that calls URL('static',
> 'images/%s' % matchobj.group(0)). See the re.sub section of
> http://docs.python.org/library/re.html for details.
regex are too difficult for me
It was working on 1.82.1 on the same data.
On Dec 30, 9:10 am, mdipierro wrote:
> What version did you upgrade from? Did it work before with the same
> data?
>
> On Dec 29, 7:00 pm, Maurice Ling wrote:
>
> > Hi
>
> > I've upgraded to version 1.91.5 and noticed an issue with the database
> > admi
Sorry. Still worked on 1.83.2.
On Dec 30, 9:29 am, Maurice Ling wrote:
> It was working on 1.82.1 on the same data.
>
> On Dec 30, 9:10 am, mdipierro wrote:
>
> > What version did you upgrade from? Did it work before with the same
> > data?
>
> > On Dec 29, 7:00 pm, Maurice Ling wrote:
>
> > >
No idea. Can you send me (confidetially) your app and your db (if it
is sqlite)?
On Dec 29, 7:30 pm, Maurice Ling wrote:
> Sorry. Still worked on 1.83.2.
>
> On Dec 30, 9:29 am, Maurice Ling wrote:
>
> > It was working on 1.82.1 on the same data.
>
> > On Dec 30, 9:10 am, mdipierro wrote:
>
> >
1 - 100 of 123 matches
Mail list logo