Thanks Simon! Py 3.12 indeed works.
simon...@gmail.com schrieb am Freitag, 13. Dezember 2024 um 15:12:47 UTC+1:
> cgi is removed in python 3.13. Web2Py was only tested in python 3.12, as
> fas as I know.
>
> There is a legacy-cgi package on pypy that might help you:
>
> https://stackoverflow.com
I've downloaded the latest source release (3.0.9) and installed it on
macos. When I run it with Python 3.13.0, I get the ModuleNotFoundError
below. Apparently cgi was removed in Py 3.8.
When I run it with Python 3.7, the error does not occur, and my app (that
I've just ported from Python 2) se
Thanks for your reply, Jim. Unfortunately the table is actually auth_user,
the boolean fields are extensions which I defined via
auth.settings.extra_fields[auth.settings.table_user_name] = [...]
Unless there's a very simple way to replace or customize the builtin user
profile related funtions,
I have a table with two boolean fields. All four combinations used to be
meaningful, but now only three are.
I'd like to present the three options in one dropdown list instead of two
checkboxes. Is this possible and how?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentatio
Thanks, this does the job. Sorry for not RTFM.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to th
I have a "contact form" page using a simple, self-submitting SQL form for
filling in message, email address etc. After the form is accepted, the
server tries to send an email. In case this fails, there's response.flash
error message, and I'd like to just present the form again, so that users
at
On my site (sympathetic-resonances.org), users edit complex forms. Part of
the form is musical data passed as JSON in a hidden form field, where a JS
frontend reads it from and writes it to. The pages themselves are submitted
as regular forms.
I have a few users in countries with very unreliabl
e @auth.requires_permission decorator, that
> will by default also require login. Otherwise, if you want to use
> auth.has_permission, you must separately check whether the current user is
> logged in.
>
>
> Anthony
>
> On Wednesday, November 2, 2016 at 7:04:16 PM UTC-4,
I've found a behavior in 2.14.6 which makes me scratch my head. I have set
auth.settings.everybody_group_id = 2
in order to make every user part of the "user" group (2). The
auth_membership reflects this explicitely for each added user.
I have granted several permissions to group 2, e.g. one
t; Have you customized the auth_user table in any way (in particular,
> anything that would prevent the default validators from being added to the
> email field)?
>
> On Friday, May 16, 2014 8:05:22 AM UTC-4, Horst Horst wrote:
>>
>> It seems (at least in my case) the con
;, length=80),
]
Am Freitag, 16. Mai 2014 15:05:53 UTC+2 schrieb Anthony:
>
> Have you customized the auth_user table in any way (in particular,
> anything that would prevent the default validators from being added to the
> email field)?
>
> On Friday, May 16, 2014
h that setting, upon registration, it converts the email to
> lowercase before storing in the database, and then on login, it looks for
> the lowercase version of the email in the database. Try converting all
> email addresses already in the database to lowercase and see if it works
&g
I'm running web2py 2.9.5 and set auth.settings.email_case_sensitive to
False in my app, because I thought it'd be a good idea.
Now I have a bunch of users complaining that they can't log in, and figured
out that they registered with an email address which contains capital
letters. I tried mysel
TC+2 schrieb Massimo Di Pierro:
>
> Please open a ticket:
> - the reset password should display password strenght
> - there should be an option to automatically login after reset password.
>
> On Monday, 21 April 2014 16:25:20 UTC-5, Horst Horst wrote:
>>
>> Thanks, Massimo
stered_users:
> auth.messages.reset_password = "I have shared a document with you click
> on the link %(link)s to reset your password, your document is . bla bla
> bla"
> auth.email_reset_password(user)
>
> On Friday, 7 March 2014 08:14:21 UTC-6, Horst Horst wrote:
>&
so, setup the required
> permissions then. Once that controller is done, redirect them where they
> need to go.
>
>
> ...just my thoughts on your issue.
>
>
> -Jim
>
>
>
> On Friday, March 7, 2014 8:14:21 AM UTC-6, Horst Horst wrote:
>>
>> I'd
I'd like to implement a feature similar to sharing Google docs or Dropbox:
If you share something with a non-registered user, he gets a notification
email, but once he signed up, the permissions are already in place.
Programmatically registering users should be no problem, but how can I show
th
Best regards
>
>
>
> Mariano Reingart
> http://www.sistemasagiles.com.ar
> http://reingart.blogspot.com
>
>
> On Mon, Feb 24, 2014 at 10:18 AM, Horst Horst
> > wrote:
>
>> I'm getting a:
>>
>>type oid 114
>> not mapped to py type
I'm getting a:
type oid 114 not
mapped to py type
I'm wondering what's the best thing to do now? Currently I'm considering:
- using TEXT instead. But my former JSON strings are then enclosed by "|"
which leads to new errors
- updating gp8000 (there seems to be a newer version, but the vers
s all
backups referring to it.
Am Montag, 17. Februar 2014 14:02:36 UTC+1 schrieb Anthony:
>
> On Monday, February 17, 2014 7:24:24 AM UTC-5, Horst Horst wrote:
>>
>> I don't understand the rationale behind the way record versioning is
>> implemented: If you delete a
a row with dependants record on it would mean dropping also the
> dependant record(s), that can't be then "archived" properly.
>
> On Monday, February 17, 2014 2:02:36 PM UTC+1, Anthony wrote:
>>
>> On Monday, February 17, 2014 7:24:24 AM UTC-5, Horst Horst wrot
Thanks, Anthony. In fact, I was completely missing the other
enable_record_versioning section in the DAL chapter.
Am Montag, 17. Februar 2014 14:02:36 UTC+1 schrieb Anthony:
>
> On Monday, February 17, 2014 7:24:24 AM UTC-5, Horst Horst wrote:
>>
>> I don't understand t
That's what I'd indeed do if if was my book.
Am Sonntag, 16. Februar 2014 05:49:23 UTC+1 schrieb Tim Richardson:
>
> Perhaps we just delete the entire reference to pyjamas and see if a 0.9
> release ever happens?
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- h
27;s weird currently is that a query shows the latter, but delete works
on the former.
Am Montag, 17. Februar 2014 13:09:36 UTC+1 schrieb Horst Horst:
>
> I understand that enable_record_versioning() simply makes delete set the
> records' is_active flags to False, but I'm sur
r if any of the _before_delete callbacks returns a
> non-falsey value. There also does not appear to be a way to verify for
> certain that a particular table is being archived via
> enable_record_versioning.
>
> Anthony
>
> On Saturday, February 15, 2014 11:35:02 AM UTC-5, H
I understand that enable_record_versioning() simply makes delete set the
records' is_active flags to False, but I'm surprised that this also affects
addadmin. This means I can't delete records any more for real.
As a web2py newbie, this, together with my other record versioning problem
(https:/
bruar 2014 05:09:54 UTC+1 schrieb Massimo Di Pierro:
>
> del table[id]
>
> is more picky. Raises an exception if id is not int and if the record does
> not exist.
>
> On Friday, 14 February 2014 16:23:04 UTC-6, Horst Horst wrote:
>>
>> I have a controller function for
Unfortunately, row.translator.custom_name doesn't work either: 'Row' object has no attribute 'translator'
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
I have a controller function for record deletion which worked reliably for
quite some time.
Today I've added
added auth.enable_record_versioning(db)
to my model file for the first time (my tables had auth.signature fields
already).
Since then, I get
No such record: 230
tickets wheneve
Meta-question: Should I rather post things like this to the issue tracker?
1.
In
http://web2py.com/books/default/chapter/32/07/forms-and-validators#Validators,
the paragraph "IS_IN_SET" says:
The elements of the set must always be strings unless this validator is
preceded by IS_INT_IN_RANGE (
Given this table...
translator_format = lambda row: row.custom_name if (row.custom_name and
row.custom_name.strip()) else "%s -> %s" %(
db.notation(row.source_notation_id).notation_name,
db.notation(row.target_notation_id).notation_name)
db.define_table("translator",
I have a table with multiple list:string fields, like
db.define_table("problem",
# ... many other fields
Field("a", "list:string"),
Field("b", "list:string"),
Field("c", "list:string"),
# ... many other fields
)
SQLFORM renders nice widgets for each of the fields with little + and -
bu
plain strings, not unicode
strings. It can all be fixed, but the simplest thing would be to not to
pass unicode objects in the first place.
Am Montag, 10. Februar 2014 11:30:57 UTC+1 schrieb Tim Richardson:
>
>
>
> On Monday, 10 February 2014 19:51:37 UTC+11, Horst Horst wrote:
d-of-unicode-ones-from-json-in-python
Am Montag, 10. Februar 2014 01:07:35 UTC+1 schrieb Tim Richardson:
>
> Do you understand what the u means? (i.e. it means you have a unicode
> string)
>
>
>
> On Monday, 10 February 2014 10:08:31 UTC+11, Horst Horst wrote:
>>
>>
>>> from gluon.contrib.simplejson import loads, dumps
>>> loads(dumps("Hello"))
u'Hello'
How can I make loads give me a 'Hello' here instead of u'Hello'?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.goo
I've just spent several hours debugging a mysterious bug until I figured
out that what I thought was a long int (passed trough several layers of
code) was in fact a gluon.dal.Reference instance. I think I would have
found it immediately if repr(gluon.dal.Reference(3)) had been
'Reference(3L)' r
onvalidation function, or is validation
> unnecessary in that case (if the latter, you can just move all the
> translate logic to before validation).
>
> Anthony
>
> On Thursday, January 23, 2014 8:01:54 AM UTC-5, Horst Horst wrote:
>>
>> The controller is pretty leng
The controller is pretty lengthy, find a stripped-down version below. Yes,
I'm using several custom buttons which submit the form via JS, there's a
Save, a Save As, and a Translate button, identified by a hidden,
JS-generated form variable.
The Translate button translates some form content int
In my record-update controller, after SQLFORM.validate(), I'd like to
programmatically change some of the submitted form values, and then present
the form again (with the changed values) for further editing. Imagine a
sort of autocomplete of partially filled forms.
My controller has the standa
host" that
> your machine has a name that is neither resolvable by dns nor by /etc/hosts
> lookup. To fix the problem try to add the following line in your
> /etc/hosts:
>
> 127.0.0.1
>
>
>
> 2014/1/12 Horst Horst >
>
>> ...and guess what what: I
...and guess what what: I've been working on my first web2py project since
almost three month, and thought this was normal! (I hear you laughing.)
Until yesterday when I had my WLAN turned off and web2py launched almost
instantly.
I couldn't believe it, launched the debugger, and traced the pro
It worked for me.
--
Best,
Douglas Horst
dcho...@gmail.com
Evanston, IL USA
rfefox and Opera browsers
in a sentence - the whole thing defies the purpose of a web app
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send
gt; > > > > >> >> > > Strange...a route trace dies at
>> > > > > >> mfc-cst-bs-v841.netequip.depaul.edu
>> > > > > >> >> > > [140.192.9.177] for me.
>> >
>> >
e tedious and sometimes confusing boiler plate stuff.
The beauty of such virtual appliance is that you create it once, can
it, and then just reactivate it on any machine with Virtualbox without
needing to install / configure anything.
Horst
--~--~-~--~~~---~--~~
You re
nused web2py VM is spawned? Or,
> B) That Web2Py would trigger the creation/cloning of its own instance?
>
What I mean is
- the admin app runs per default via wsgi on that appliance
- if you create a new app, the appliance (optionally) creates a new virtual
host in Apache so that you can
ntu server with
> mailman, postgresql and psycopg2 preinstalled.
... and apache with mod_wsgi preconfigured, and perhaps a nice user
interface in web2py to add new virtual hosts ...
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
! That's easy and intuitive and yet so flexible and powerful.
Thanks - this is really getting somewhere now.
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
T
stimony on theweb2py web
site of our experience so far, including the exceptional experience of
being able to easily hire good competent developers familiar with
web2py, as well as the incredible responsiveness and helpfulness of
this list with a very low s
e id of the drug.
Just one of a great many practical examples.
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
com/features/postgresql/article.php/3437821/SELECT-DISTINCT-A-SQL-Case-Study.htm
I started thinking about alternatives
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To
on since 1.0.
Twice I would ave lost data without backups - so DO BACK UP!! first
Without jailbreaking, the iphone is only half as useful (home can
something that doesn't run Python possibly be useful?)
Horst
--~--~-~--~~~---~--~~
You received this messag
On Wed, May 27, 2009 at 9:46 PM, Vincent Borghi
wrote:
> Thanks for the prompt suggestion, but it does not work.
> With this code, both Enter key and submit button have the same bad
> behavior: they just run a GET of the same current URL ("searchform"),
> without passing parameters...
>
> Other i
t;
> To me it is syntactically correct, however, web2py tells me it's not:
When that happens to me, the error is usually in the line(s) above
that line of code
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
On Mon, May 25, 2009 at 11:28 AM, Richard wrote:
>
> hi Horst,
>
> I have emailed an example that implements image upload from nicEdit.
>
> Notes:
>* nicEdit.js 1368: set nicURI to: '/nicedit_upload/default/
> upload',
>* nicEdit.js 1391: removed Im
dex')
When the session times out or I try to access the page unauthorized,
it always redirects me to
/myapp/patient/user/login
instead of
/myapp/default/user/login
So why do I not end up at /myapp/default/user/login but at
/myapp/patient/user/login instead, when not authorized???
Horst
--~--
On Sat, May 23, 2009 at 11:46 PM, mdipierro wrote:
> var nicUploadButton=nicEditorAdvancedButton.extend({nicURI:"http://
> YOURUPLOADURL",
>
> I have not tried but it should do the trick.
The documentation suggests that they require a specific
I have no time at present
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send
:
>
> db.tablename.fieldname.requires=IS_NULL_OR(IS_DATE(str(T('%Y-%m-
> %d'
>
>
> Languages:
>
> ... create a language file e.g. en-de.py and edit the dates:
>
> Original Translation
> %Y-%m-%d
#x27;.', ',', ';', tab, enter]
Same conditions as above, same pay, ad again benefit for all web2py users
If a solution already exist and all you do is document properly how it
can be used easily from within web2py, pay is the same too.
Horst
--~--~-~--~~---
gets you a shell with application loaded incl modules (M switch)
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegro
these kind of
> changes?
No changes there, I guess - these two notations are equivalent and to
my knowledge both always have worked in web2py.
H1(...) is a helper function that creates the ... tags for you.
Anything between {{ and }} is Python code that gets executed.
Horst
--~--~-~-
y conforms to it incl
the date pickers? (eg '%d.%m.%Y')
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroup
given a table with a 'date' field
and the crud generated or SQLFORM generated forms,
how can I tell the form to accept *empty* values for a date?
Thanks,
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
nst the wall I guess.
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group,
n
happy to pay you for any time spent finding the fault. Driving me
crazy.
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googleg
n/update/db/auth_user/1
and update the user, it ignores the change but does not give me any
error messages.
Same with *any* other table in the app
Same with either the auth auto-generated tables and functions or with my own.
Just tried switching the databas
orked
beautifully until a few moments ago, don't recall really changing
anything in the code. This is the second time it happened (second app
malfunctioning). Any ideas?
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
gement
- recall system
- WYSIWYG template based letter writer
- drug reference database & prescribing
- clinical decision support
- reference database / web snippets
In (hopefully) about two weeks a version with basic functionality will
be released (under GPL license) in
I have to do to programmatically "log in" somebody via auth
(retaining all the auth goodies)
2) how is the password encrypted / hashed?
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2p
On Wed, May 20, 2009 at 5:06 AM, mdipierro wrote:
>
> I turned jpolite into a web2py app.
>
> https://www.web2py.com/jpolite
Jaw dropping - just what I needed for my web app. Just when I was in
the process of integrating
http://www.dhtmlgoodies.com/index.html?page=dhtml-
y "print int(request.args[0])" and looking at the shell
where you started web2py ?
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send ema
private email.
I hope this post is not inappropriate for his list - but I noted that
on the usual online job brokering boards web2py skills did not figure
yet
Regards,
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
when the page is
accessed for viewing
I offer $200 (via PayPal) if somebody produces such functionality
using only web2py and GPL compatible javascript libraries and allows
me to use it under an open source license (eg GPL)
Horst
--~--~-~--~~~---~--~~
You received this
ing to it with
the native kinterbasdb driver (which web2py uses internally too!), and
using it
Horst
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this gro
er')
AttributeError: 'NoneType' object has no attribute 'group'
This regardless whether the auth/crud staff is defined/used in model/db or not
Is firebird support broken or am I doing anything wrong?
Horst
--~--~-~--~~~---~--~~
You received
See error traceback below - the same code, run through sqlite or
postgres works just fine.
However, during a transitional period, I have to use an already
existing firebird database.
Any idea how this error could be fixed? I have tried with both
firebird 2.0 and firebird 2.1 servers. Accessing the
77 matches
Mail list logo