Hi Massimo,
you can ignore this. I unintentionally ran python3 instead python2.
My mistake, sorry about that.
Marin
On Mon, Sep 12, 2011 at 2:28 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> can you try again please? What os?
>
> On Sep 12, 6:15 am, Marin Pranjić wrote:
> > Trac
few more errors:
ImportError: cannot import name redirect
ImportError: No module named validators
This is weird. Is it just me?
On Mon, Sep 12, 2011 at 1:15 PM, Marin Pranjić wrote:
> Traceback (most recent call last):
> File "web2py.py", line 16, in
>import gluon.widget
> File "/srv/te
uld just generate a query that always evaluates to
> false.
>
> On Aug 17, 3:48 pm, Marin Pranjic wrote:
> > Repeating the question :)
> >
> >
> >
> >
> >
> >
> >
> > On Tue, Aug 16, 2011 at 10:21 AM, Marin wrote:
> > > Also, I n
Repeating the question :)
On Tue, Aug 16, 2011 at 10:21 AM, Marin wrote:
> Also, I noticed that accessible_query raises an exception if user is
> not logged in.
> It's because of a line 2805 (trunk) in gluon/tools.py:
> user_id = self.user.id
>
> What is expected behavior if user is not logged
Hi Massimo,
It works now :-)
Regards,
Marin
On Wed, Aug 17, 2011 at 8:50 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> The reason for the change was to avoid records populated with the zero
> option ('').
> I think I fixed the problem, please check it.
>
> On Aug 17, 1:44 pm, Ma
On Wed, Aug 17, 2011 at 11:54 AM, Marin Pranjić wrote:
> I tried to create an issue on code.google.com/p/web2py but it crashed
> and are currently not working. I'm not sure if issue is created or
> not.
>
> Here is c/p:
>
>
> What steps will reproduce the problem?
> 1. import memcache client:
>
>
It should not be an issue with mixing environments.
Can you provide more information?
Marin
On Mon, Aug 15, 2011 at 6:27 PM, Carlos wrote:
> Hi,
>
> I'm having some weird errors about web2py/python not finding classes /
> objects in my models when multiple simultaneous requests come from diffe
On Aug 11, 10:41 am, Marin Pranjic wrote:
> They will not if you set writ...
> On 11 Aug 2011 17:16, "vapirix" wrote:
>
> The only problem with that is that ...
They will not if you set writable = false.
Marin
On 11 Aug 2011 17:16, "vapirix" wrote:
The only problem with that is that then the clients will be able to
edit that in their profile. =D
It's ok, I'll just roll my own registration page, it's not much work.
On Aug 10, 11:06 pm, pbreit wrote:
If you have an URL like:
http://www.domain.com/application/controller/function/*arg1/arg2/arg3/arg4*
?var1=1&var2=2&var3=3...
Then request.args contains: ['arg1', 'arg2', 'arg3', 'arg4']
You can access those strings with: request.args(2) or request.args[2], first
is better because it will return
Thanks
Marin
On 9 Aug 2011 20:18, "Massimo Di Pierro" wrote:
Now I understand:
rows = db(...).select(...)
rows.compact = False
and now you always have the rows[i].table.field syntax. no more
rows[i].field shortcuts.
Massimo
On Aug 9, 1:06 pm, Marin Pranjic wrote:
> No, but
No, but it would not help me.
I want to implement "dynamic queries", actually support adding some
WHERE and SELECT parts in query (extending original queries).
And iteration through Rows object should work without knowing did
query had JOINs or not.
Problem is when original query does not have JOI
It looks good.
How to add a task which will repeat infinite times?
What are Start time and Stop time used for? Just to clarify...
On Mon, Aug 8, 2011 at 4:28 PM, Massimo Di Pierro
wrote:
>
> Please let me know what you think.
>
> Massimo
Hi,
you can do:
array = [1,3,6]
db(db.tablename.fieldname.belongs(array)).select(db.tablename.ALL)
On Sun, Aug 7, 2011 at 3:05 PM, guruyaya wrote:
> Hi guys.
> Is there a way to use a SELECT... IN... syntax in dal? Something like
> "SELECT * FROM auth_user WHERE id IN (1,3,6)
> If not, I'll expl
https://bitbucket.org/PhreeStyle/web2py_ckeditor
2011/8/7 António Ramos :
> Where can i download this pluging from?
>
> It is not in the plugin area of web2py
> Thank you
> António
> 2011/8/6 tomt
>>
>> Hi,
>>
>> I was having trouble editing existing data with web2py_ckeditor until
>> I applied B
On Thu, Aug 4, 2011 at 10:21 PM, Anthony wrote:
> On Thursday, August 4, 2011 4:25:49 AM UTC-4, Ramos wrote:
>>
>>
>> That is the way of an enterprise framework.
>
>
> Note, web2py is no longer an "enterprise" framework
> (http://www.web2py.com/). ;-)
>
> Anthony
>
Source:
web2py Enterprise Web
Congratulations Timothy!
rows = db(db.blog.title.contains('search_entry').select()
where 'search_entry' is string that you want to seach for.
On Sat, Jul 30, 2011 at 7:14 PM, Web2Py Freak
wrote:
> hey guys ,
>
> is there anyway to do a search but other that the crud.search or a
> way to control the crud.search output
On database level, NULL can be anything. DBMS defines it as an unknown
value. If you query non-True records, you'll be given only those
records that have defined not-True value (since it's boolean it has to
be False). NULL means "I'm not sure if this is True or False, value is
missing".
If you want
works now :D
On Tue, Jul 26, 2011 at 9:22 PM, Marin Pranjic wrote:
> still not working 4me.
>
still not working 4me.
On Wed, Jul 13, 2011 at 7:45 AM, nic wrote:
>
> A Wiki / Blog / CMS / Forum
> An Online Store
> A Personal Accounting System
> A Media Center
> etc ...
>
This is great idea, I had it few months ago, but never wrote it here.
Next week I'll start programming a Forum software (with web2py ofc).
Mai
you can customize select / option tags layout with CSS
On Wed, Jun 15, 2011 at 5:16 PM, wdtatenh wrote:
> I could really use an answer to this question.
>
> Using SQLFORM is there a simple notation to set the width of a
> with IS_IN_SET defined in the model.
>
> Inserting {{=custom.form.widget.
I think that template app should be minimal.
On Mon, Jun 13, 2011 at 2:33 PM, Martín Mulone wrote:
> I prefer the way to select the application you want to install, only
> welcome in main web2py and the others over a repository.
>
> New: You want to install?
>
>- welcome (default)
>- welc
You can leave it empty and use onvalidation function:
http://web2py.com/book/default/chapter/07#onvalidation
On Sun, Jun 12, 2011 at 9:54 AM, Neveen Adel wrote:
> Hello,
>
> I have a field in database that can accepts float numbers or time.
>
> so i need to have OR-ing between the following ex
Yes, it is.
It should be something like
db(db.shirts.color.belongs(['red', 'white', 'blue']).select()
On Tue, Jun 7, 2011 at 2:18 AM, DJ wrote:
> Is this query possible in web2py?
>
> SELECT * FROM `shirts` WHERE `color` IN ('red','white','blue')
>
> -Sebastian
>
We will be angry at bus driver :)
On Thu, May 26, 2011 at 4:48 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> LOL...
>
> What if the CEO of a company gets hit by a bus? They get another CEO!
>
> I can assure there are many web2py experts on this list
> http://web2py.com/examples/def
Not sure if i understood, but
if you have multiple forms, you can use SQLFORM with form.accepts(formname =
'form_'+str(i), ...)
each form has it's own formname, so form.accepts will know which one is
submitted.
Is that your problem?
On Sun, May 22, 2011 at 10:02 AM, 黄祥 wrote:
> hi,
>
> is it pos
You can use
T.force('en')
T.force('it')
T.force('es')
based on request.vars or arguments
ex:
http://myapp/?lang?es
T.force(request.vars.lang)
not sure how to do it with routes
On Sun, May 8, 2011 at 11:47 PM, Miguel Morillo Iruela <
asellus2...@gmail.com> wrote:
> Hello,
>
> I wonder if it i
Something like db(db.tablename.id>0).count() ?
On Tue, Apr 12, 2011 at 5:22 PM, mart wrote:
> Hi,
>
> is there a shortcut to check if a table is empty? (not look to see
> what the content is, just if it has any at all)
>
> Thanks,
> Mart :)
I can join if you need idlers :P
On Mon, Apr 4, 2011 at 12:46 PM, Mengu wrote:
> also people are not couraged to join the irc room. that's one of the
> reasons.
>
> On Apr 4, 12:26 pm, selecta wrote:
> > ah i was just about to complain that the main page still links to a
> > strange irc channel
On Fri, Mar 25, 2011 at 10:09 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> Ideally this color scheme
>
> http://127.0.0.1:8000/examples/static/img/logo_db.png
>
>
this: http://web2py.com/examples/static/img/logo_db.png :)
On Tue, Mar 22, 2011 at 2:09 PM, villas wrote:
>
> You are really saying that is provocative?! Please explain and suggest
> a less provocative title. Perhaps something like 'Programming video -
> please don't get upset or anything' might be better.
>
LOL
Which version of web2py are you using?
On Mon, Mar 21, 2011 at 3:56 PM, rif wrote:
> Hi guys,
>
> Is the default lost password working for you?
>
> In my deploy I always get an Invalid email validation warning.
>
It will create *.table files in your apps /database/ folder, but will not
try to create those tables in database.
In other words, it will "fake" creation of tables in db.
I think :) Someone should confirm
On Sun, Mar 20, 2011 at 3:40 PM, VP wrote:
> What does this do exactly?
>
> Can you explain
works for me :)
On Sat, Mar 19, 2011 at 5:07 AM, Anthony wrote:
>
+1 :D
On Sun, Mar 6, 2011 at 11:48 PM, villas wrote:
> > speaks better than me.
>
> LOL, no way -- we missed the accent! :)
http://web2py.com/book/default/chapter/08#Customizing-Auth
On Tue, Mar 1, 2011 at 10:16 AM, Werner Gillmer wrote:
> Hi
>
> Very new to web2py, how would I go about extending the registration
> page? I want to capture phone numbers etc. during registration as
> well.
>
>
> Thanks
This is great. Very affordable.500Mb is enough for most of users.
Added into bookmarks :)
On Sat, Feb 26, 2011 at 1:17 PM, Budgetbytes wrote:
> Budgetbytes Hosting Solutions now offers Web2Py support. The website
> is still in Dutch, but will be released in english around march.
>
> For only € 1
I guess the post he quoted?
On Fri, Feb 25, 2011 at 1:25 AM, mart wrote:
> what solved the matter ?
>
> On Feb 24, 6:52 pm, Eduardo wrote:
> > Thank you all. That solves the matter.
> >
> > Eduardo
> >
> > On Feb 24, 8:31 pm, Vasile Ermicioi wrote:
> >
> > > > Please note I would like to use s
You can change value of response.view
http://web2py.com/book/default/chapter/04?search=response.view
On Thu, Feb 24, 2011 at 2:49 PM, Ed Greenberg wrote:
> Can one have more than one view share a controller?
>
> In cases where more than one operation shares a common amount of HTML,
> this would
p.s. i have the same problem, permissions are set, apps cannot be created
im using latest stable version
On Sun, Feb 20, 2011 at 12:22 PM, Marin Pranjic wrote:
> If you used script to install, then your web2py folder is /var/web2py and
> user is www-data
> run this as root:
>
If you used script to install, then your web2py folder is /var/web2py and
user is www-data
run this as root:
chown -R www-data:www-data /var/web2py
then permissions will be set
On Sun, Feb 20, 2011 at 9:45 AM, LightOfMooN wrote:
> I increased memory to 512mb from 256, so now I have about 80mb m
I use this for helper functions.
On Fri, Feb 18, 2011 at 11:03 PM, VP wrote:
> This is an interesting idea. I am wondering if by doing this, we
> can:
>
> + treat controllers as regular Python functions, which have
> parameters.
> + implement some type of automatic type checking on request.arg
Restarting web server does not restart web2py, i think.
Not sure if it should restart it or not, but... same here
On Thu, Feb 17, 2011 at 11:30 PM, Jonathan Lundell wrote:
> On Feb 17, 2011, at 2:21 PM, pbreit wrote:
> > The "stop server" and "start server" buttons on the Tcl console app.
>
> FWI
It's because of pythons limitations in overloading operators.
You can change behavior of &, |, ~ in python, but cannot change and, or,
not.
On Thu, Feb 17, 2011 at 7:00 PM, Paul Gerrard wrote:
> On more than one occasion, I've been caught out by a slip in my select
> statements. If you use 'and'
I wanted to update from admin app but it gives me neverending "Checking for
upgrades..."
Not sure what is the problem, so better to report it :)
Using 1.91.6 source code on windows, python2.7.1
I tried restarting web2py and update in 2 browsers but no success.
On Wed, Feb 16, 2011 at 3:52 PM, M
good :)
if you put slash at the beginning of the path, it is evaluated as apsolute
path (from root folder)
without slash or with "./" (dot slash) it is relative path, and that's what
you need.
On Sun, Feb 13, 2011 at 9:45 PM, stargate wrote:
> That worked
>
> On Feb 13
MAYBE this?
{{include 'includes/header.html'}}
On Sun, Feb 13, 2011 at 9:25 PM, stargate wrote:
> I am trying to include the following file but it gives me a error
>
> {{include 'includes/header.html'}}
>
> The file and folder exist but it doesn't work what I am doing wrong.
>
>
I set it as a wallpaper on my mobile, hope your daughter won't mind :)
On Sat, Feb 12, 2011 at 8:51 AM, Changju wrote:
>
> How sweet:)
> On 2월12일, 오전2시36분, Anthony wrote:
> > My 4-year-old daughter has been practicing her writing recently.
> Yesterday,
> > she handed this to me (she must have f
Cannot. Still in beta.
On 11 Feb 2011 21:53, "pbreit" wrote:
Where can qa-stack be downloaded?
sweet :)
On Fri, Feb 11, 2011 at 6:36 PM, Anthony wrote:
> My 4-year-old daughter has been practicing her writing recently. Yesterday,
> she handed this to me (she must have found the book on my desk and copied
> the title). Apparently web2py makes her think of hearts and flowers, as it
> does f
Add this after define_table
for t in TAGS:
... db.tag.insert(name = t)
run once and then comment / delete the lines.
On Thu, Feb 10, 2011 at 10:57 PM, Sascha Peilicke wrote:
> Hi guys,
>
> I'd like to know how to best populate a table with a given set of default
> values. I could add them man
+1 for dropping support
If shared hosting providers want web2py users, they will enable python
>=2.5.
There are many cheap VPS hosting services with root access.
There is also web2pyslices.com with some easy setup scripts.
If dropping support leads to code improvement and faster/easier developme
not sure if something like that is implemented, but here's what you can do:
before validating form:
1. check if email is given in post vars (instead of username)
2. if it is, make select query to db to find out username related to given
email
3. change variable (if email is given in username field
+ you can use ~ to reverse order.
http://web2py.com/book/default/chapter/06#orderby,-groupby,-limitby,-distinct
On Thu, Feb 3, 2011 at 2:21 PM, dederocks wrote:
> Hi Johann,
>
> Just use "|":
> orderby=db.table.name|db.table.surname
>
> On 3 fév, 13:56, Johann Spies wrote:
> > According to the
### this happens because FROM has no knowledge of writable
### and thinks that a missing boolean field is a None
if self.table[fieldname].type == 'boolean' and
self.vars[fieldname]==None:
del self.vars[fieldname]
these are in red
attachment
On Sat, Jan 29, 2011 at 6:51 AM, Anthony wrote:
> Where is it?
Problem solved!
Browser issue.
On Wed, Jan 26, 2011 at 10:26 PM, Marin Pranjic wrote:
> I think urlencoding is the problem.
>
> If I run
> http://example.com/cont/func?var=š<http://example.com/cont/func?var=%C5%A1>
>
> it encodes into
>
> http://example.com/con
th unicode maybe it's jquery-
> json and browser implementation that screws something up.
>
> On 26 Gen, 20:51, Marin Pranjic wrote:
> > It's not web2py related, but I hope someone can help me.
> >
> > I'm sending data via ajax, which is urlencode
It's not web2py related, but I hope someone can help me.
I'm sending data via ajax, which is urlencoded JSON object (I used
jquery-json).
Then, I use json.loads(variable) to load the object.
Everything works good for normal ASCII characters, but if I send non-
ascii chars, i get the following:
U
No permission for graphic.
On Thu, Jan 13, 2011 at 1:54 PM, Luis Díaz wrote:
> Results for 13/01/2011
>
> Chrome
> 1648% Firefox
> 1339%Explorer
> 1 3%Safari
> 13%Otros
> 13%opera
> 13%-
> total 33100%
>
>
> graphic:
>
> https://spreadsheets.google.com/g
I think it's number of users in this group.
On Jan 11, 9:15 pm, Anthony wrote:
> Very cool. For some reason, the attached graph doesn't show up in the new
> Google Groups interface for me -- had to go to the old version.
>
> Do you keep any stats on number of downloads or web2py.com visits or
> a
Slice is ok and your problem is not web2py related.
Try restarting ssh demon (i googled, not sure if it'll work).
On Mon, Jan 10, 2011 at 7:13 PM, Offray Vladimir Luna Cárdenas <
off...@riseup.net> wrote:
> Hi all,
>
>
> I have being testing cherokee + uWSGI for serving web2py. Locally they
> wor
database level, so it
> will work when I try to insert or update via web2py or via a desktop
> application.
>
> I hope I be clear :P
>
>
> On 30 dic, 16:46, Marin Pranjic wrote:
> > It's all in the book :)
> > Not sure what do you want to set by trigger.
>
s it is, and add the fields with other
> names. The only "problem" with this is that it isn't very elegant
> (values repeated in the database). But it will work.
>
> Thanks for the help Marin.
>
>
> On 29 dic, 18:39, Marin Pranjic wrote:
> > You can "ignore&q
default/chapter/08#Customizing-Auth
hope this one helps
Marin
On Wed, Dec 29, 2010 at 9:02 PM, Lisandro wrote:
> 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.
>
>
>
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
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
t?
>
>
> 2010/12/25 Marin Pranjic
>
> Download and install as a Plugin.
>>
>>
>> On Sat, Dec 25, 2010 at 1:08 PM, Martin Weissenboeck
>> wrote:
>>
>>> Hi,
>>>
>>> I have downloaded a new layout from web2py.com/layout and I wa
Download and install as a Plugin.
On Sat, Dec 25, 2010 at 1:08 PM, Martin Weissenboeck wrote:
> Hi,
>
> I have downloaded a new layout from web2py.com/layout and I want to active
> it.
> There should be a link, but I cannot find it.
>
> Any ideas?
> Thx, Martin
>
t;#" and that will have the same effect as return false.
but i prefer return false
On Fri, Dec 24, 2010 at 10:26 PM, Marin Pranjic wrote:
> try this:
>
>
>
>function remove()
> {
> var a = document.getElementById('id
try this:
function remove()
{
var a = document.getElementById('id');
var b = (a.parentNode).removeChild(a);
}
function add(x,y){
alert(x+y);
return x+y;
}
text
2+3?
now try removing "return false" after add function.
the thing
Key was the same in "app1", "app2" ,and "app3", but not in "shared" (don't
know why).
I've set the same key in all apps and it seems to be working now.
Thanks!
On Thu, Dec 23, 2010 at 7:57 AM, mdipierro wrote:
> Yes if they are providing registration/login/change password. If only
> one app pro
No prob.
I deleted all Recent history in browser, and tried again with the same
result.
Pretty sure it's not about cookies :)
On Thu, Dec 23, 2010 at 1:20 AM, mdipierro wrote:
> I cannot today but I will tomorrow. ;-)
>
> On Dec 22, 6:18 pm, Marin Pranjic wrote:
> > Hi Ma
ng in the sessions/ folder of the three apps.
>
> If you still have the problem I will try reproduce the problem and fix
> it.
>
> Massimo
>
> On Dec 22, 5:40 pm, Marin Pranjic wrote:
> > Hi there,
> > I need to make few apps that will share sessions.
> > For
Hi there,
I need to make few apps that will share sessions.
For testing purposes, i have applications "shared", "app1" and "app2".
In application "shared", i have:
db = DAL('sqlite://storage.sqlite')
session.connect(request, response, db = db)
(...)
in applications "app1" and "app2" i have:
77 matches
Mail list logo