so, I think they can't use auth.methods without defining auth tables first
(kind of obvious?)
2012/5/10 Massimo Di Pierro massimo.dipie...@gmail.com
In the scaffolding app there is a file db.py which defines for you
everything you need for RBAC. If you do not want to use this built-in
Hello everyone,
When I try to show a datetime object in a table header using the TH()
helper it raises an error as the following (could be something regarding
dateutil.relativedelta library):
type 'exceptions.TypeError' %d format: a number is required, not
datetime.datetimeI can reproduce the
seems to be an alarm=False ;)
I solved this moving a function that imports dateutil.relativedelta to a
module and deleting the same (duplicate) import from the action that called
that function, awrf...
sorry for the noise
2011/11/8 BrendanC bren...@gmail.com
Daniel,
Not sure what you are asking, but this might help you:
Virtual fields are otherwise known as 'computed columns' in database terms
- if that is what you are familiar with. e.g. Sum, Count, Min, Max, etc as
these values are derived from underlying
Internal error and ticket is issued. you know the rest
2011/7/13 Ross Peoples ross.peop...@gmail.com
it looks correct, and shouldn't make any difference as long as indentation
is correct. Maybe try lowercasing the domain names. Also, do you have any
other routing options besides this one?
yeah, it is very weird, but suddenly after stoping, wait
I don't know what should be wrong, but I cannot map 2 apps to different
subdomains in the same domain, my routes.py is like the follow:
#!/usr/bin/python
#-*- coding: utf-8 -*-
routers = dict(
BASE = dict(
domains = {
'sub1.AAA.com' : 'app1',
'sub2.AAA.com' : 'app2',
}
2011/7/7 cjrh caleb.hatti...@gmail.com
On Jul 7, 1:27 pm, cjrh caleb.hatti...@gmail.com wrote:
On further examination, it looks like leaking file descriptors is enough
to
mark a library as incompatible (this happened with mercurial), so I
have
changed web2py's to incompatible until we
2011/6/23 Anthony abasta...@gmail.com
Actually, even easier, you can just do mytag['_attr'] and mytag[0].
On Thursday, June 23, 2011 6:21:37 PM UTC-4, Anthony wrote:
mytag=TAG.element('xyz', _attr='value')
print mytag.attributes['_attr']
value
print mytag.components[0]
xyz
Anthony
2011/6/24 szimszon szims...@gmail.com
Codes are in github: https://github.com/szimszon/Temporary-storage
great work, you really should put a license statement. check [this] for some
info about free software licenses _that worry about 'copyleft'_: [
http://www.gnu.org/licenses/].
regards
Hi,
I'm parsing an XML with TAG helper, but web2py breaks when an [CDATA]
appears. Can the TAG helper bypass this?
kind regards
2011/6/24 danto web2py.n...@gmail.com
Hi,
I'm parsing an XML with TAG helper, but web2py breaks when an [CDATA]
appears. Can the TAG helper bypass this?
kind regards
ahem... well, Iol, a string.replace('![CDATA[','') before using the helper
fix the problem, but is there a way to do
Hi web2pyers:
the TAG helper is very useful, but, it's any way to get the 'value' of the
attribute from an element?
Something like:
element attr='value' /
in that scenario, it is possible to get 'value' using just the TAG helper?
I would appreciate your suggestions.
Thank you in advance
2011/6/11 Dr Schmulge dr.schmu...@gmail.com
Take a slice )
http://web2pyslices.com/main/slices/take_slice/103
omg, ty! :)
http://valums.com/ajax-upload/
It's supposed to be a ready-to-use asyncronous upload (could be a widget,
later) with load indicator, but I don't know how to integrate with my form.
In fact, I get no errors on console (as the author say after set debug:
true) but still my upload fails. I can
2011/6/7 Gabriele Alberti gabriele.albe...@gmail.com
Hello,
it seems in latest web2py version, gluon/utils.py, line 93, logging is
used with no import ..
Regards,
G.
I think they already know about it. At this moment, solution is just do an
'import logging' in that 'except'
found this in the admin app error
log:
1.
2.
3.
4.
5.
6.
7.
Traceback (most recent call last):
File /home/danto/web2py/gluon/restricted.py, line 184, in restricted
passed to RestrictedError to identify where the error occurred.
File /home/danto/web2py/applications/admin/models/access.py
2011/6/7 danto web2py.n...@gmail.com
2011/6/7 Massimo Di Pierro massimo.dipie...@gmail.com
Many big fixes compared with 1.96.3. In particular:
- explicitly closing all open files (should make it work in Pypy),
thanks Caleb
- even better security in uuid (thanks Jonathan and David
2011/6/5 danto web2py.n...@gmail.com
2011/6/5 Massimo Di Pierro massimo.dipie...@gmail.com
You have migrations set to False. web2py needs to create a field
called is_active. Before it was called active and that created
problems.
but my app is not that old... :3 I developed the application
2011/6/6 Pradeesh pradeeshnara...@gmail.com
I have installed web2py on a remote opensuse server 10.3 and I am
using a Putty to start the web2py server. But when i am closing the
Putty session in my machine, the web2py server is also closing. How do
I start web2py server permanantly.
you
2011/6/4 Pepe Araya pepea...@gmail.com
now it works ok!
thanks!!
it works for me too (also after reinstalling with webfaction's script), but
now in tables where I have auth.signature it does not recognize the
'is_active' column
2011/6/5 danto web2py.n...@gmail.com
2011/6/4 Pepe Araya pepea...@gmail.com
now it works ok!
thanks!!
it works for me too (also after reinstalling with webfaction's script), but
now in tables where I have auth.signature it does not recognize the
'is_active' column
I forgot to say
I'm still can get up my site after upgrading from 1.95.1. After solving the
problem with logging (importing it as J. Lundell said in another message)
i'm running with another issue: after reinstalling with webfaction's script
and uploading the .w2p, tables where I have auth.signature does not
2011/6/5 danto web2py.n...@gmail.com
I'm still can get up my site after upgrading from 1.95.1. After solving the
problem with logging (importing it as J. Lundell said in another message)
i'm running with another issue: after reinstalling with webfaction's script
and uploading the .w2p, tables
bump
2011/6/5 danto web2py.n...@gmail.com
2011/6/5 danto web2py.n...@gmail.com
I'm still can get up my site after upgrading from 1.95.1. After solving
the problem with logging (importing it as J. Lundell said in another
message) i'm running with another issue: after reinstalling
2011/6/5 Massimo Di Pierro massimo.dipie...@gmail.com
You have migrations set to False. web2py needs to create a field
called is_active. Before it was called active and that created
problems.
but my app is not that old... :3 I developed the application little time ago
(1.94~95) and the
for the record: to solve the problem with google robots you can set
robot.txt to allow/deny other apps.
2011/6/4 Jonathan Lundell jlund...@pobox.com
The change treats read-only urandom the same as non-existent urandom, for
warning purposes. Is that the intent?
Also, I wonder if it wouldn't be a good policy to unconditionally use local
randomness (the seeded random) and mix in urandom
I installed 1.96.3 on webfaction and doesn't run (zip downloaded directly
from web 1 minute ago):
[danto@web184 ~]$ python2.7 web2py/web2py.py
Traceback (most recent call last):
File web2py/web2py.py, line 16, in module
import gluon.widget
File /home/danto/web2py/gluon/__init__.py, line
2011/6/4 Pepe Araya pepea...@gmail.com
I have the same problem as i mentioned here:
https://groups.google.com/d/topic/web2py/e2KcQDYcPD0/discussion
(still in webfaction) I installed a fresh copy (no upgrade) and at least I
can access again to the scalfolding app but not to admin, now showing:
2011/6/4 Pepe Araya pepea...@gmail.com
did you installed it with the webfaction's script?
they (webfaction) already installed web2py for me when I first sign on with
their service. probably using their script. later I was upgrading from the
web interface and then restarting apache from ssh
2011/6/4 pbreit pbreitenb...@gmail.com
Do you have a parameters_###.py file in your web2py folder?
the was not any parameter_.py file. still, I copied from the old folder
and now I can see the login form to appadmin but my password doesn't work
[danto@localhost ~]$ python2 web2py/web2py.py -a pass -i 0.0.0.0
Traceback (most recent call last):
File web2py/web2py.py, line 16, in module
import gluon.widget
File /home/danto/web2py/gluon/__init__.py, line 15, in module
from globals import current
File /home/danto/web2py/gluon
2011/6/2 Vasile Ermicioi elff...@gmail.com
http://projects.unbit.it/uwsgi/
http://projects.unbit.it/uwsgi/http://projects.unbit.it/uwsgi/wiki/Doc
I use uwsgi without any other server and works fine so far
you can limit memory usage
setup instructions:
you need to create a custom
2011/6/2 danto web2py.n...@gmail.com
[danto@localhost ~]$ python2 web2py/web2py.py -a pass -i 0.0.0.0
Traceback (most recent call last):
File web2py/web2py.py, line 16, in module
import gluon.widget
File /home/danto/web2py/gluon/__init__.py, line 15, in module
from globals
Hi, to gain experience with python, ajax and my beloved framework I
developed an app accesible from http://blogosfera.cl
The intention of the site is to give oportunity for anyone to publish it's
site on the chilean blogosphere. Later I will put a ranking system.
Despite it's still on
2011/5/31 JorgeRpo jorgeh...@gmail.com
very nice!!
a lil suggestion: set the links to be open in a new window
what a quick response! :)
I'll do it, thank you for your suggestion!
2011/5/21 pbreit pbreitenb...@gmail.com:
This is the best answer I've seen:
http://stackoverflow.com/questions/117514/how-do-i-use-timezones-with-a-datetime-object-in-python
It can get complicated so make sure you need it.
i thought i would be easy when I read massimo saying something about
2011/5/19 danto web2py.n...@gmail.com:
I'm setting the created_on field in a database table with request.now
but i need to adjust the result to my timezone with the application
(it's a shared server). Can you tell me how can I achieve this?
thank you in advance
kind regards
sorry, it's
2011/5/18 JorgeRpo jorgeh...@gmail.com:
what about license issues or conflict
license would not be a problem if you also distribute the code of
web2py and/or other free licensed code
just for your information, the last update of this 'css framework'
bundled in web2py from time ago was on march 19 and adds a few things
http://css3buttons.michaelhenriksen.dk/
I'm setting the created_on field in a database table with request.now
but i need to adjust the result to my timezone with the application
(it's a shared server). Can you tell me how can I achieve this?
thank you in advance
kind regards
2011/5/19 Pierre Thibault pierre.thibau...@gmail.com:
2011/5/19 pbreit pbreitenb...@gmail.com
Very cool new code sharing service: http://chopapp.com/
Not cool for me. No Python. It is just like a pastebin.
--
A+
-
Pierre
My blog and profile
2011/5/11 pbreit pbreitenb...@gmail.com:
It works fine for me. I'm not sure I understand what you are reporting. Is
your site publicly viewable so we can see the problem?
I can second what selecta says.
pbreit, try this:
controller:
---
@auth.requires_login()
def asdf():
return
2011/5/11 Bruno Rocha rochacbr...@gmail.com:
Automatic form styles
http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/
plus:
http://www.dfc-e.com/metiers/multimedia/opensource/jquery-fancyzoom/
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
this is great, altougth
2011/5/11 danto web2py.n...@gmail.com:
2011/5/11 Bruno Rocha rochacbr...@gmail.com:
Automatic form styles
http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/
plus:
http://www.dfc-e.com/metiers/multimedia/opensource/jquery-fancyzoom/
--
Bruno Rocha
[ About me: http://zerp.ly
2011/5/4 Syed Mushtaq syed1.mush...@gmail.com:
Looks really beautiful :) Are you planning on open-sourcing it ?
Thanks
-Syed
On Wed, May 4, 2011 at 11:37 AM, Jason (spot) Brower encomp...@gmail.com
wrote:
It would be fun to put a widget for online radio.
embed
2011/5/2 Alexandre Strzelewicz strzelewicz.alexan...@gmail.com:
I have the pleasure to present you Skytoop,
http://www.skytoop.com/
If someone have tips or feedback to give me it coould be nice !
omg, it's amazing!
some 'about' and 'purposes' info would be very much appreciated :)
needs a
I'm creating an rss just as says in the book and *works well where is
just one item but isn't with more*, so it gives me an error about bad
rss serialization when trying to use the rss view, but the xml view
shows the following:
document
created_on2011-05-02 12:59:34.924007/created_on
2011/5/2 pbreit pbreitenb...@gmail.com:
It looks ok at first glance. Can you send it through a validator? It should
tell you exactly where the problem is.
http://www.w3schools.com/XML/xml_validator.asp
http://validator.w3.org/feed/
well, I can't know really because the render of a dict in a
2011/5/2 Bruno Rocha rochacbr...@gmail.com:
On Mon, May 2, 2011 at 2:14 PM, pbreit pbreitenb...@gmail.com wrote:
Is routing the only other solution or would an import or import-like
approach be feasible?
models needs to be executed not imported, I think would be kind of helper
for doing
altougth I haven't do the proper research in the source code of the
prettydate module, this is the problem I'm having right now with an article
i'm fetching from rss in my web2py app.
I post this if someone has a time to take a look, very thanks in advance in
that case.
regards
2011/5/1 danto web2py.n...@gmail.com
altougth I haven't do the proper research in the source code of the
prettydate module, this is the problem I'm having right now with an article
i'm fetching from rss in my web2py app.
I post this if someone has a time to take a look, very thanks
2011/4/28 Anthony abasta...@gmail.com
On Wednesday, April 27, 2011 2:04:29 PM UTC-4, w2padawan wrote:
I still don't know what issues are all talking about regarding pydev and
web2py. I'm using it on archlinux and imports, autocomplete and functions
are all working pretty well.
just go to:
I still don't know what issues are all talking about regarding pydev and
web2py. I'm using it on archlinux and imports, autocomplete and functions
are all working pretty well.
just go to:
window preferences pydev interpreter-python libraries
and add a [new folder] in system pythonpath
2011/4/27 pierreth pierre.thibau...@gmail.com
OK I see,
This way, Pydev automatically had the missing imports when we are
coding. Personally, I added the library project by project so the
feature is working for me too.
It's no need of adding the library project by project but just one time
for the record, I solved this using PySerial
Hi to all,
do you know how to format a date/time to show as one hour ago and such?
I know i could be done with time delta, but it is any helper available in
web2py to do this?
thanks in advance
best regards
danto
oh thank you, I must be tired.
M-x rtfm
w00t!! :D
2011/4/11 selecta gr...@delarue-berlin.de
+1 yeay
On Apr 10, 11:30 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
+1
On Apr 10, 9:35 am, José Luis Redrejo Rodríguez jredr...@debian.org
wrote:
It's just been accepted into Debian. I'll upload latest stable
has line breaks.
even, if I write a text with line breaks, doing a type asdf.txt com1
print all the text in one line.
in short, how could I [format the text to] print new lines in windows to a
serial printer?
best regards,
danto
Hi everybody,
is there any way to call a function from a URL('controller','function')
where 'function' need a parameter? I don't want to use request.args on this,
so args='parameter' doesn't seem to apply for this.
thank you in advance for any help.
Best regards
2011/4/6 Ross Peoples ross.peop...@gmail.com
But if you are trying to pass arguments to an action in a controller like
this:
def test(arg1, arg2):
#some code here
This will not work, as actions must not take any arguments in the
definition. If this is really what you're going for,
following the example above, how can I call _test() from outside test() ?
2011/4/6 Massimo Di Pierro massimo.dipie...@gmail.com
I think
arg1 = request.args[0] or None
arg2 = request.args[1] or None
should be
arg1 = request.args(0)
arg2 = request.args(1)
On Apr 6, 8:07 am,
2011/4/6 Anthony abasta...@gmail.com
On Wednesday, April 6, 2011 9:47:51 AM UTC-4, Ross Peoples wrote:
Any function that starts with _ or contains function parameters is not
callable via URL.
Note, this is explained here:
http://web2py.com/book/default/chapter/04#Dispatching (in the
2011/3/29 kawate yutaka.kaw...@gmail.com
Hell:
Please advise me to show PluginMModal window in plugin_wiki page.
Best Regards:
Web2py is better than that. You shoud try asking Heaven or Fellowship
regards
I remember that the Time datatype widget in DAL can deploy a kind of
dropdown menu showing the hours, but not anymore. This is how it should be
or is something wrong? I'm using 1.94.5
hi,
the tags widget in plugin_wiki are supposed to make posible to list pages
with same tag between same tables? that seems yet not posible, at least for
me, but I don't know if I missing something or not understanding well how
plugin_wiki_tag works. can you give an advice for this?
thanks in
2011/3/26 Massimo Di Pierro massimo.dipie...@gmail.com
yes and not. Plugin wiki simply allows to tag objects, ids but
(tablename, record_id). plugin_wiki does not keep track of which pages
contain which widgets. If you tag the page, instead of the objects
they contain, than you get pages by
2011/3/13 Massimo Di Pierro massimo.dipie...@gmail.com
You can also do
{{=plugin_wiki.render_page('slug')}}
if you do not need the ajax trapping.
for the record, the above didn't work because there is not any render_page
method in plugin_wiki, but {{=plugin_wiki.embed_page('slug')}}
2011/3/15 mart msenecal...@gmail.com
Just throwing in my 2 cents worth,
Personally, I kind of like the that it says Enterprise, but as
mentioned here, depends on who's reading it. This is my first try in
world if open source so the experience may speak to me differently
than let's say the
+1
2011/3/13 Anthony abasta...@gmail.com
Note, the Sahana Software Foundation is looking for translators to complete
a localization of Sahana Eden into Japanese:
http://www.sahanafoundation.org/japan
Sahana Eden is an open source disaster management system written in web2py.
Anthony
Hi,
it is possible to just load the content of a plugin_wiki page in a view
using the LOAD() function?
thanks, that was very useful
2011/3/13 Massimo Di Pierro massimo.dipie...@gmail.com
You can also do
{{=plugin_wiki.render_page('slug')}}
if you do not need the ajax trapping.
On Mar 13, 10:17 am, danto web2py.n...@gmail.com wrote:
Hi,
it is possible to just load the content
I posted the video in tinyogg.com (html5)
http://tinyogg.com/watch/B4JmP/
2011/3/8 mikech mp.ch...@gmail.com
Great video, thanks!
here's another: http://ompldr.org/vN241Yg
ftr: despite is a very old version of web2py as you already know
2011/3/3 danto web2py.n...@gmail.com
te lo envío en formato estándar. saludos.
i sent you in standard format. greetings.
2011/3/3 Martín Mulone mulone.mar...@gmail.com
Sometime ago I
2011/3/3 Ross Peoples ross.peop...@gmail.com
(...)But if the web2py way is to format in the controller and make the
views contain as little Python code as possible, then that's they way I'll
write it.
is not web2py's way, is MVC (Model-View-Controller) paradigm. it's all
about separating
try creating a new app from ssh and probably will work.
also, you can always dev on localhost and later upload the app to webfaction
Hi, I attached the whole ticket.
thanks in advance for any help.
the controller remains as:
CONTROLLER:
===
def catree2():
supercategorias =
db(db.t_categoria.supercategoria==None).select(db.t_categoria.id,db.t_categoria.nombre)
catree = []
for supercat in
)
for cat in cats:
catree[-1].append([cat.nombre,False,'link'])
also URL('#') should just be '#'.
On Feb 14, 7:19 am, danto web2py.n...@gmail.com wrote:
Hi, I attached the whole ticket.
thanks in advance for any help.
the controller remains as:
CONTROLLER
80 matches
Mail list logo