Hi António,
In my database model I have a field of type upload on which I set the
following validators:
db.logofile.file.requires=[IS_IMAGE(extensions=('gif','jpg','jpeg','png'),maxsize=(348,108)),IS_LENGTH(36*1024,error_message='file
size exceeds 36 KB')]
The IS_LENGTH(...) limits the file
The w2p files include the sqlite db but not others dbs.
On Aug 2, 6:17 pm, pbreit pbreitenb...@gmail.com wrote:
I believe the w2p files do NOT include the db.
On Tue, 2 Aug 2011 22:49:16 -0700 (PDT)
guruyaya guruy...@gmail.com wrote:
Now I acctually asked people on my interviews, why PHP, and
the most common answer was we have wordpress / zend-cart / joomla /
drupal / some other system written in PHP we need extending, and we're
looking for someone
Do I understand correctly, that validator allows uploading e.g. 10GB file,
than checks the file size and when exceedes the limit, deletes the file ...
so at least for the moment file takes its disk space? So potentialy someone
can upload 100GB file and fill my disk?
David
I found an issue, as issues is disabled in your bitbucket, I created a wiki
page.
https://bitbucket.org/PhreeStyle/web2py_ckeditor/wiki/issue
Thanks. Noted
On Tue, Aug 2, 2011 at 3:58 PM, Anthony abasta...@gmail.com wrote:
On Tuesday, August 2, 2011 2:30:01 AM UTC-4, zeng wrote:
Ok, and the next question I may sound like a retard, where to submit
the ticket?
Looks like this one is solved, but for future reference, tickets get
hello guys ,
can you show me the way of adding a css file in web2py i trying to
add one and its not working !! help
I need that plugin or i´m a dead man!
:)
2011/8/3 Bruno Rocha rochacbr...@gmail.com
I found an issue, as issues is disabled in your bitbucket, I created a wiki
page.
https://bitbucket.org/PhreeStyle/web2py_ckeditor/wiki/issue
hello,
what do i tell in my company to convinve them to use web2py apps without
fearing that i as administrator cannot discover their password?
Thank you
António
Congratulations Timothy!
what do i tell in my company to convinve them to use web2py apps
without fearing that i as administrator cannot discover their password?
Sounds like you will have to lie to them as you can always as a
developer change the code so that a copy of passwords is stored as clear
text.
At the
Fixed, many thanks.
Hmmm. The markmin has changed, but the rendered view hasn't:
http://web2py.com/book/default/chapter/02#try...except...else...finally
I will report this to Massimo.
Here is a printout showing the general space consumption (attached). My
web2py src, not including the .hg folder is about 14.3MB.
web2py_size.pdf
Description: Adobe PDF document
missing :
Special Attributes, Methods and Operators
class MyList(object)
def __init__(self, *a): self.a = list(a)
class MyList(object):
def __init__(self, *a): self.a = list(a)
Thanks, I fixed that one too. I noticed the rendered view hasn't changed
though. I wonder it this is a caching issue...
I will check later this evening.
Massimo, FYI the web2py.com site home page still refers to 2.4. I guess
you should remove that reference now.
Hi guys,
Can anyone provide some examples of the new syntax for join introduced
in 1.96.1?
- new alterante syntax for inner joins: db(...).select(join=...)
Thank you
Antonio;
I dont think the passwords are decrypt-able;
I remember asking this question and I think that its a one-way hash.
I could be wrong though.
Besides; your client has to TRUST you; obviously there is never a
guarantee who they hire wont be able to maliciously store plain text
Is it possible to create and execute prepared statements in DAL for
postgresql? I observed there is a prepare api for creating 'PREPARE
TRANSACTIONS' for two-phase commit but no api for prepared statements.
why is the first part
def keywords(record):
return list(set(x.lower() for re.compile('\w
+').findall(record.content or '')))
raising an error in syntax
andrej
On Wednesday, August 3, 2011 5:22:18 AM UTC-4, Web2Py Freak wrote:
hello guys ,
can you show me the way of adding a css file in web2py i trying to
add one and its not working !! help
Assuming you're using the 'welcome' app folder structure, put the file in
/yourapp/static/css, and
congrats Tim
On Wed, Aug 3, 2011 at 8:12 AM, Michele Comitini michele.comit...@gmail.com
wrote:
Tim finding you on g+ was a challange... i'm definitely dumb and
always miss something while using social apps! ;-)
mic
2011/8/3 Timothy Farrell explori...@gmail.com:
A boy, Zane. A healthy
hello i have my server only on port 443(https) because i realy need https!
if i click the link lost password i receive an email with a link to reset
the password
this link is http and not https, so the link is not working.
If i change the url from http to https i get the flash message
On Wed, 22 Jun 2011 07:08:29 -0700 (PDT)
Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Possibly by the end of August.
Thanks for the info. Same publisher?
Sincerely,
Gour
--
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)
On Aug 3, 2011, at 3:48 AM, cjrh wrote:
Here is a printout showing the general space consumption (attached). My
web2py src, not including the .hg folder is about 14.3MB.web2py_size.pdf
Hmm. I've got iPhone apps 20 times that size...
i need to send email to all users of a group
is there a simple way of doind this?
like mail.send(*groupname*,subject=demo,message=demo)
thank you?
António
That was my feeling also.
I agree, that size is small even on embedded systems by now...
Anyway trying to keep it small is always a good thing IMHO.
mic
2011/8/3 Jonathan Lundell jlund...@pobox.com:
On Aug 3, 2011, at 3:48 AM, cjrh wrote:
Here is a printout showing the general space consumption (attached). My
web2py
On Wednesday, 3 August 2011 16:22:46 UTC+2, mcm wrote:
I agree, that size is small even on embedded systems by now...
Anyway trying to keep it small is always a good thing IMHO.
I think the word small is the wrong word to use here. It doesn't really
mean anything. It is a relative word
Any?
On Tue, Aug 2, 2011 at 2:11 PM, Ismael Serratos ialejandr...@gmail.comwrote:
Hi! I have a crud.update launched via mmodal, the table has 3 string fields
with the option multiple activated.
When I get into the crud.update the multiselect widget doesn't remember the
selection, how could
?
On Tue, Aug 2, 2011 at 10:50 AM, Ismael Serratos ialejandr...@gmail.comwrote:
Hi! How could I represent the ID of a SQLTABLE as a link that shows a
mmodal plugin window? And how can I pass to it args?? The form that I'd like
to show in the modal is in another controller.
Greetings!
hello i need to get the automatic id field of the record in my controler
after the code
*
*
*if postform.accepts(request.vars,session):**
** *
if i print request.vars i dont see the id that i need to create a link to
send email to the document just created
Thank you
António
Hello, I need the help of some web2py guru...
I'm developing an application where I have to add and modify couples of
people. So I've defined a table called person, and a table called pairs
which have two fields related to person.
I need to show a form to add/edit couples (so adding/editing in
Is there a advantage to use reponse.file except the length of the code line
and the possibility to insert a CSS or JS at the controller level??
Is it faster or something?
Thanks
Richard
On Wed, Aug 3, 2011 at 9:03 AM, Anthony abasta...@gmail.com wrote:
On Wednesday, August 3, 2011 5:22:18 AM
Wrong thread I think!
;-)
Richard
On Tue, Aug 2, 2011 at 7:18 PM, pbreit pbreitenb...@gmail.com wrote:
Navicat Lite or SQLite Manager for Firefox
Hi
I'm trying the following:
form = crud.create(db.tablename)
form.vars.description = 'default value for description'
...but the default value for description isn't displayed in my form.
Should this work?
-Jim
I don't think that method would work with Crud because the .accepts method
is called within crud.create, which happens before your form.vars
assignment. Instead, try:
db.tablename.description.default = 'default value'
form = crud.create(db.tablename)
Anthony
On Wednesday, August 3, 2011
I don't think there's any advantage other than those you stated.
On Wednesday, August 3, 2011 11:16:59 AM UTC-4, Richard wrote:
Is there a advantage to use reponse.file except the length of the code line
and the possibility to insert a CSS or JS at the controller level??
Is it faster or
Here is a rough working outline of what the future pip web2py installer
could do. The one that is currently called web2py basically installs glueon
to site-packages which is great if you want to import Web2py stuff, like say
DAL functionality into another Python application but it is not what
I think the id should be in postform.vars.id after you call postform.accepts
(assuming the form was accepted).
Anthony
On Wednesday, August 3, 2011 11:00:39 AM UTC-4, Ramos wrote:
hello i need to get the automatic id field of the record in my controler
after the code
*
*
*if
Why?
The current web2py package that is available for installation via pip
installs glueon and other stuff to site-packages which is great for advance
usage, like importing Web2py stuff, for example, DAL functionality into
another Python application but this is not what someone checking out
Ohhh,
now i´m confused
what is the diference between postform.vars and request.vars
thank you
António
2011/8/3 Anthony abasta...@gmail.com
I think the id should be in postform.vars.id after you call
postform.accepts (assuming the form was accepted).
Anthony
On Wednesday, August 3, 2011
I'm new to web2py but find it a vast improvement over the PHP-based
web framework I was using before, and so I'm already using web2py to
develop my next web app. At the same time, I find myself in a
situation where I'm needing to use several different computers to do
my work. See I need to find
On Aug 1, 9:10 am, Anthony abasta...@gmail.com wrote:
On Monday, August 1, 2011 6:23:03 AM UTC-4, Ramos wrote:
this way works
auth.settings.extra_fields['auth_user'] = [Field('Skype')]
Yes, this will create auth.settings.extra_fields['auth_user']. Once created,
you should be able to
Thanks, just what I needed.
-Jim
On 8/3/2011 10:46 AM, Anthony wrote:
I don't think that method would work with Crud because the .accepts
method is called within crud.create, which happens before your
form.vars assignment. Instead, try:
db.tablename.description.default = 'default value'
On Wednesday, August 3, 2011 12:12:10 PM UTC-4, Ramos wrote:
Ohhh,
now i´m confused
what is the diference between postform.vars and request.vars
request.vars includes the form variables that came in to the server via the
HTTP post request (before any validation or processing). form.vars
hum... very strange... i see it when I run web2py locally (127.0.0.1),
but not when I run it with web2py specifying ip 0.0.0.0 and port
8080...
I don't get any exceptions, or something that says trying to load
jqgrid... I just get the page header (# Queue). The table is there
(its a queue and
BINGO - ldap.set_option(ldap.OPT_REFERRALS, 0) seems to have done it. Thank
You!
I can't answer to all your questions...
But I will try to help about some of your point...
First, welcome in Web2py crew ;-)
On Wed, Aug 3, 2011 at 12:08 PM, Eric Scott erictransla...@gmail.comwrote:
I'm new to web2py but find it a vast improvement over the PHP-based
web framework I was
Hii! How could I pre populate a crud.update (or equivalent with SQLFORM), I
mean, I have 3 list:string multiple fields (they take the value from another
table), like this
db.define_table('project',
Field('name','string'),
Field('comment','text'),format='%(name)s')
I just recently started with web2py, and found that it
is a pretty big elephant that is hard to eat a bite (byte?)
at a time, precisely because everything's included.
Even a simple app gets and incredible amount of scaffolding.
I routinely delete the languages directory, as I don't need
the
Syst admin like make system hardening...
That could be an answer...
Richard
On Wed, Aug 3, 2011 at 10:34 AM, cjrh caleb.hatti...@gmail.com wrote:
On Wednesday, 3 August 2011 16:22:46 UTC+2, mcm wrote:
I agree, that size is small even on embedded systems by now...
Anyway trying to keep it
I pretty much do exactly what you describe (pricetack.com).
The one main difference is that I use Fabric to script my deployment
activities. I highly recommend checking out Fabric if you are planning to
develop web apps. It's pretty easy to get started and use.
I have Fabric scripts that build
for user in db(db.auth_user.id
==db.auth_group.id_user).select(db.auth_user.email):
mail.send(.)
Something like that.
2011/8/3 António Ramos ramstei...@gmail.com
i need to send email to all users of a group
is there a simple way of doind this?
like
I'm wary of putting stuff on pip/pypi. Once you put stuff there, you really
need to be committed to keeping it updated or else things get confusing.
I found the Mac package simple to download from web2py.com, double click the
app and you're up and running.
And developers really should be
That's how I delete columns.
Thank pbreit,
I will look at it...
I would prefer stay in python then have to bash script...
http://docs.fabfile.org/en/1.2.0/index.html
Richard
On Wed, Aug 3, 2011 at 3:54 PM, pbreit pbreitenb...@gmail.com wrote:
I pretty much do exactly what you describe (pricetack.com).
The one main
I think he wants to delete columns from a SQLTABLE, not a db table.
On Wednesday, August 3, 2011 4:01:09 PM UTC-4, pbreit wrote:
That's how I delete columns.
Can you manage the web2py version change with Fabric too?
Richard
On Wed, Aug 3, 2011 at 4:01 PM, Richard Vézina
ml.richard.vez...@gmail.comwrote:
Thank pbreit,
I will look at it...
I would prefer stay in python then have to bash script...
http://docs.fabfile.org/en/1.2.0/index.html
Can you set your server to switch from http to https?
Or include this in def user(): in controllers/default.py:
auth.messages.reset_password = \
'Click on the link https://...reset_password/%(key)s to reset
your password'
Yes... I use pgAdmin for the other things, I didn't fix my choice on a
commercial database manager...
;-)
Richard
On Wed, Aug 3, 2011 at 4:04 PM, Anthony abasta...@gmail.com wrote:
I think he wants to delete columns from a SQLTABLE, not a db table.
On Wednesday, August 3, 2011 4:01:09 PM
Also, if all the recipients get the same message (with no customization),
then you can provide a list or tuple of recipients as the 'to', 'cc', or
'bcc' argument to mail.send(), so you only need to call it once.
Anthony
On Wednesday, August 3, 2011 3:47:30 PM UTC-4, rochacbruno wrote:
for
Don't know if my delete column function could be part of web2py core
functions but here it is :
def __del_sqltable_column(sqltable, column_name):
For deleting a given column in an instance of web2py SQLTABLE class.
Pass the SQLTABLE object and the column name to delete.
Ex.:
Well, Fabric itself pure Python and fabfiles are Python but yes, it's mainly
making shell commands. I find that a lot better since that's usually how
documentation shows a lot of these things. You don't end up doing anything
too crazy. Just a lot of cd, cp, mv, hg, rm, chown, etc.
Yes, you can
Let me preface this by saying that I really enjoy web2py, and that it's a
testament to the great efforts that Massimo puts into maintaining backwards
compatibility that made this change such a painful surprise...
1.96.1 includes a security fix that breaks existing applications by
disabling
pystar,
what are the errors that you are getting? i have never built python myself
(that i can remember), which implies that when i was last on ubuntu there
was a python2.5 package that i could install from the package manager.
never used virtualenv myself so i have no thoughts.
for the
Yeah, I think we can do a better job of handling this. I still like that the
generics work out-of-the-box on localhost but perhaps we could insert
messaging explaining what is going on.
And then for non-local attempts to use the generics we could have more
helpful messaging?
I really enjoy the mercurial / fabric combo as well and I agree with pbreit,
start with the basics and build on that over time.
On my development system I clone Web2py itself and then in the applciations
directory I create clones of my projects as well. Makes for very fast setup.
You can save
Note, restoring apps to the original behavior requires just this single line
in any model file:
response.generic_patterns=['*']
Anthony
On Wednesday, August 3, 2011 5:02:28 PM UTC-4, Kevin Butler wrote:
Let me preface this by saying that I really enjoy web2py, and that it's a
testament
do i have to change the urls inside the css file
thay are all like :
.class{
background: #543 url(images/1.jpg);
}
I like the way you think pbreit, I would not bother except that we have
something up now (which does work actually) that is really confusing for new
pip and/or Web2py users and even a few more seasoned ones ; ) .
The ideas in the draft basically bypass the whole packaging concept and
does a
On Wednesday, August 3, 2011 5:02:28 PM UTC-4, Kevin Butler wrote:
The fix was made for good reasons (because saying Don't do that isn't a
good security solution), but it really does break existing applications -
see http://web2py.com/examples/default/examples 3rd example, click the
If a user on OS X is using the Web2py versioning button the first time it
automatically generates a .hgignore file that ignores the database
directory...
Whew... could that be the issue??
Chris
I think you'll be OK if you put the folders referred to in your CSS URLs
inside the /static/css folder. For example, in your example below, it looks
like there is an 'images' folder with a 1.jpg file in it, so you'd need:
/yourapp/static/css/images/1.jpg
Otherwise, yes, I suppose you'd have
I did a little research on the pip web2py install. It places web2py and
gluon in the virtualenvs lib/python/site-packages and when you run
Python/bin/mkweb2pyenv it creates a detached Web2py applications directory
in whatever directory you happen to be in when you run the command. People
who
No. Can you give us an example of why you should use it outside a
distributed transaction?
On Aug 3, 6:31 am, Tarun Arora tarunarora.ni...@gmail.com wrote:
Is it possible to create and execute prepared statements in DAL for
postgresql? I observed there is a prepare api for creating 'PREPARE
The password are hashed not encrypted (also known as a one-way-
encryption). A hacker getting access to the passwords file cannot
decrypt them. The hacker can theoretically find collision but it is
almost impossible with SHA512+HMAC (which web2py uses).
Things are different for the administrator.
def keywords(record):
return list(set(x.lower() for x in re.compile('\w
+').findall(record.content or '')))
On Aug 3, 7:39 am, andrej burja andrej.bu...@gmail.com wrote:
why is the first part
def keywords(record):
return list(set(x.lower() for re.compile('\w
Syst admin like make system hardening...
That could be an answer...
Yes i am more into Sys Admin than web-developer , you've read my mind Richard
Vézina
Ok my concern is not really about the File size but the Code Base size
(lines of code , number of features).
Here is what i have:
1 .
Plus Bandwidth concern. I use my own Dedicated and VPS servers to host.
They are already busy , and Bigger file-size = more bandwidth , 10MB *
Download already 10 GB . If this become popular , bandwidth cost will be
great..
Errata:
10MB * 1000 Downloads already 10GB. My bandwidth limit is
Actually more Modularizing inside Gluon should be made easy.
putting all core features into gluon/core , everything that related into
gluon/dal , those can be removed without problem into its own folders etc.
I will look into this first.
On Thu, Aug 4, 2011 at 4:58 AM, Phyo Arkar
most files in gluon/dal have no dependences. Exception is the triad:
main.py, compileapp.py, restricted,py.
On Aug 3, 5:31 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote:
Actually more Modularizing inside Gluon should be made easy.
putting all core features into gluon/core , everything that
I do not think this qualifies for addition but it is useful.
I would have done:
rows = db().select(db.table.ALL)
db.table.fieldtodelete.writable=False
table = SQLTABLE(rows)
or
rows = db().select(*[field for field in db.table if not
field.name=='fieldtodelete'])
table = SQLTABLE(rows)
On Aug
They are most core of the webp2y , i c.
On Thu, Aug 4, 2011 at 5:16 AM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
most files in gluon/dal have no dependences. Exception is the triad:
main.py, compileapp.py, restricted,py.
On Aug 3, 5:31 pm, Phyo Arkar phyo.arkarl...@gmail.com
main contains the wsgibase app. compileapp defined run_models,
run_controllers, run_views (called by wsgibase) and they run using
restricted (in restricted.py) which does the exec in an environment
and captures errors into a RestrictedException object.
Everything else is pretty much decoupled.
I am working on a jqgrid module. There is a chance it can work for what you
are trying to do. The module is designed around web2py tables but the JqGrid
class can be subclassed and the data method, the method used to access the
data for the jqgrid rows can be overridden with whatever you like.
Mostly bug fixes, in particular an undefined keyword that broke the
osx binary.
Anyway, please check it.
great work, thank you so much
A gotcha when working with computed fields and update_record: the only
fields that get sent to the compute function are the ones specified in the
update_record. This makes sense but caught me off guard.
Example:
item.update_record(a=1)
This compute works:
db.item.result.compute = lambda r: a
Can you make any specific suggestions on what could or should be removed?
As far as I can tell, there is not a lot of stuff that is unused. It's quite
rare to use Web2py without a database.
The examples app and language files are probably rarely used but aren't
much harm.
What else would you
I've tried with
db.auth_user.owner_proj.default = db.(db.auth_user.id ==
reques.args[0]).select(db.auth_user.owner_proj).first()
form = crud.update(db.auth_user, request.args[0])
but nothing happens, I mean, the form shows filled OK except in the 3
multiple fields which appears to be empty, I
Just trying to set a favicon in an application called init on a
webfaction.
However, I just get Internal Server Error everytime I use routes.py.
Here's the code:
default_application = 'init'# ordinarily set in base routes.py
default_controller = 'default' # ordinarily set in app-specific
wow... that's a good one! so... i was on MACOS, then I did update
using the web2py update button... then I packed it up, pushed it to a
windows server and installed it... I'll see if i can retrace those
steps...
that makes me think, the windows server has a different (lower)
version of web2py (I
Hello,
I am trying to make a simple component which has a form that contains
just buttons. It seems to work OK when I use LOAD(... ajax=False) and
have only one component on my page. However, I'd like to have multiple
components on one page. When I tried that, still with ajax=False,
everything
On Wednesday, August 3, 2011 1:35:17 PM UTC-4, Ialejandro wrote:
Field('user_proj','string',requires=IS_IN_DB(db,db.project.id
,%(name)s,multiple=True)),
Field('owner_proj','string',requires=IS_IN_DB(db,db.project.id,%(name)s,
multiple=True)),
You typically should not have to do anything in routes.py for a favicon to
work. Do your Javascripts, CSS files and other images load OK?
In fact I'm using list:string because architechture, I'm doing a lot of
manual parsing, but Is it a problem? Coould it be implemented? or the best
way is to use list:reference?
On Wed, Aug 3, 2011 at 10:49 PM, Anthony abasta...@gmail.com wrote:
On Wednesday, August 3, 2011 1:35:17 PM UTC-4,
I think with ajax=False you're going to run into problems because the end
result is both of the forms on one page of HTML and the controller might get
confused on which to handle.
But I would think ajax=True should work. ajax_trap should be unnecessary.
Can you get one form to work by itself
Congratulations!! God bless the baby :)
On Aug 3, 6:14 pm, Furqan Rauf sfar.fur...@gmail.com wrote:
congrats Tim
On Wed, Aug 3, 2011 at 8:12 AM, Michele Comitini michele.comit...@gmail.com
wrote:
Tim finding you on g+ was a challange... i'm definitely dumb and
always miss
1 - 100 of 105 matches
Mail list logo