On Wed, Jul 8, 2009 at 1:55 AM, Yarko Tymciurak wrote:
> On Wed, Jul 8, 2009 at 1:45 AM, Hans Donner wrote:
>
>>
>> Hi All,
>>
>> yarko, are you carrying an ID? So if I want to know who you are you
>> show me your ID aren't you?
>
>
> I present those to log in; I don't use those to say "I decid
On Wed, Jul 8, 2009 at 1:45 AM, Hans Donner wrote:
>
> Hi All,
>
> yarko, are you carrying an ID? So if I want to know who you are you
> show me your ID aren't you?
I present those to log in; I don't use those to say "I decide I am
authorized!"
>
>
> So @user.is_loggedin is quite valid, but
Yarko,
imagine a web shop. You have Products class (SQL table) and Users
class (SQL table).
In RoR you would write a method in Product class:
def price_for_user(user_id=nil)
if user_id
user = User.find(user_id)
return self.list_price * (1 - user.discount)
else
return self.list_pr
Hi All,
yarko, are you carrying an ID? So if I want to know who you are you
show me your ID aren't you?
So @user.is_loggedin is quite valid, but it depends on your
implementation and philosophy.
The same goes with DAL and ORM. It depends on what you want. I like
both, and it depends on the situ
Good points, Segey - thanks for the thoughtful exchange.
What you say about migrations and maintenance really makes sense.
I can't think of any reason this would be incompatible w/ automatic
migrations.
- Yarko
On Wed, Jul 8, 2009 at 1:27 AM, SergeyPo wrote:
>
> I gave bad example with User.i
I gave bad example with User.is_logged but obviously having center
place where to put model logic is good thing. In web2py I write
functions (not methods in OOP sense) into db.py to get reusable code
that has to be called from various controllers. In RoR I write methods
to DAL classes that are ca
Changed Paths: Modify/trunk/VERSION
Modify/trunk/gluon/contrib/spreadsheet.py
Modify/trunk/welcome.w2p
impoved spreadsheet
web2py-read-only $ ./web2py.py
/Users/jlundell/Projects/web2py/web2py-read-only/gluon/contrib/
spreadsheet.py:222: SyntaxWarning: import * only al
,,, just to be clear, I am talking about structural ('design') choices in a
system, and what makes "natural" sense...
choices have implications (and sometimes don't matter too much).
In the case of DAL, there is good sense (there is reason for others to
make other structural design, and they'
Sergey, Massimo -
Both of you are talking about what is more than "merely syntax", but
responsibility.
Stepping away from software for a minute, ask yourself:
Does a user ask if he is admin? (user.is_admin)
Or is it more naturally appropriate that this responsibility lies with some
authority,
That's a lot of programming.
In web2py you would add the columns by just adding them to the model
and you can set a default. The default is used to populate the newly
inserted columns.
If you need to manipulate the data, since this is done only once, you
can write a script to do it and run it fr
Here is example of migration from my RoR application. It is intranet
application that is deployed in many locations (many clients) so
needs to be repeated at every server.
class WatchdogTimerField < ActiveRecord::Migration
def self.up
#add columns to various tables
add_column :alarm_de
That makes sense. Thanks for indulging me.
On Jul 7, 11:59 pm, mdipierro wrote:
> More precisely, this is how the Pyhton cgi module parses multiple
> submissions of the same variable (as a list). The reason it does not
> return a list if you select only one is because of html specs: the cgi
> m
1. I agree that RoR migrations are more powerful but web2py can update
the data too. Can you provide an example of something you can do in
RoR migrations that you believe cannot be done in web2py?
2. That is a major philosophical difference. Most people including me
believe that a proper mapping
I like web2py and prefer it over RoR but two things I am missing:
1. migrations (RoR migrations are really more powerful, you write the
script that not only changes database scheme but also can update data,
you have full control etc.)
2. models (web2py model layer is purely database layer which yo
More precisely, this is how the Pyhton cgi module parses multiple
submissions of the same variable (as a list). The reason it does not
return a list if you select only one is because of html specs: the cgi
module has no way of knowing it is possible to select more than one.
On Jul 7, 11:56 pm, md
This has nothing to do with web2py. This is how HTML was designed and
one of the reasons it sucks.
web2py FORM.accepts and validators have to just hoops to deal with
things like this.
Massimo
On Jul 7, 11:43 pm, "mr.freeze" wrote:
> Red
> Yellow
> Blue
> Orange
> Green
> Purple
>
> If I check
Red
Yellow
Blue
Orange
Green
Purple
If I check more than one item request.vars.color is a list
If I check only one item request.vars.color is a string
It's easy enough to type check it but was just curious if it is by
design. It threw me off because my loop that was returning single
letters when
hi all,
i need a basic understanding of ajax^^
i have a dynamic table filled with an ajax call.i want to paginate
the
table with an jquery plugin.
my problem is
when i put the script into the ajax page, it paginates well but
doesnt
get transportet into target div of mainpage. there i get full l
hi all,
i need a basic understanding of ajax^^
i have a dynamic table filled with an ajax call.i want to paginate the
table with an jquery plugin.
my problem is
when i put the script into the ajax page, it paginates well but doesnt
get transportet into target div of mainpage. there i get full l
Yes - count me in also...
On Tue, Jul 7, 2009 at 9:25 PM, DenesL wrote:
>
> Count me in, as always.
> Denes.
>
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this gro
Count me in, as always.
Denes.
--~--~-~--~~~---~--~~
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 email to
do you have a function
def download(): return response.download(request,db)
in default.py?
On Jul 7, 7:30 pm, pk wrote:
> the browser shows me invalid function
>
> On 8 Jul., 02:26, mdipierro wrote:
>
> > /appname/default/download/
> > project.plogo.b61441d00860d943.4c6f676f2e706e67.png
>
the browser shows me invalid function
On 8 Jul., 02:26, mdipierro wrote:
> /appname/default/download/
> project.plogo.b61441d00860d943.4c6f676f2e706e67.png
>
> On Jul 7, 6:38 pm, pk wrote:
>
> > for example i can read the child in the xml from flex and get this:
> >
> > project.plogo.b61441d00
/appname/default/download/
project.plogo.b61441d00860d943.4c6f676f2e706e67.png
On Jul 7, 6:38 pm, pk wrote:
> for example i can read the child in the xml from flex and get this:
>
> project.plogo.b61441d00860d943.4c6f676f2e706e67.png
>
>
> as String = project.plogo.b61441d00860d943.4c6f676f2e7
looks nice. there is an unmacthed tag at the end
On Jul 7, 6:38 pm, Victor wrote:
> On Jul 7, 5:12 pm, Rob McC wrote:
>
>
>
> > First, web2py looks like an exciting framework, one that I wish to
> > learn.
>
> > I admire the efforts of Massimo for moving web2py forward. It must
> > require a
for example i can read the child in the xml from flex and get this:
project.plogo.b61441d00860d943.4c6f676f2e706e67.png
as String = project.plogo.b61441d00860d943.4c6f676f2e706e67.png
but how can i now load this picture ??
(over the url)
On 8 Jul., 01:18, mdipierro wrote:
> I get that part.
On Jul 7, 5:12 pm, Rob McC wrote:
> First, web2py looks like an exciting framework, one that I wish to
> learn.
>
> I admire the efforts of Massimo for moving web2py forward. It must
> require a ton of time.
>
> I have it working on my Mac, and I am comfortable with getting apps to
> GAE.
> -
I get that part. I still do not understand the problem without an
example.
On Jul 7, 6:10 pm, Yarko Tymciurak wrote:
> I think pk may be doing xml databinding with flex, which Oracle and Postgres
> and IBM's DB2 support;
>
> I was first made aware of it when starting Bruce Eckel's "First Steps I
I think pk may be doing xml databinding with flex, which Oracle and Postgres
and IBM's DB2 support;
I was first made aware of it when starting Bruce Eckel's "First Steps In
Flex" book... and wondered how to connect this with web2py - xml to the
controller? xml all the way back to the db? I just
My experience is that the database is the bottleneck, in particular if
the database is not local.
Massimo
On Jul 7, 6:03 pm, Yarko Tymciurak wrote:
> On Tue, Jul 7, 2009 at 5:56 PM, mr.freeze wrote:
>
> > >>I am not an expert, but since I found out about your web2py, I am
> > speechless.
>
>
On Tue, Jul 7, 2009 at 5:56 PM, mr.freeze wrote:
>
> >>I am not an expert, but since I found out about your web2py, I am
> speechless.
>
> That was my reaction too. web2py was the only framework I found that
> let me focus on actual web development and not get bogged down by
> idiosyncratic temp
I do not understand the problem.
On Jul 7, 5:45 pm, pk wrote:
> thanks,
> but if i need the filename from the xml
> because i reed the xml from flex
> and i will show the file in a datagrid
>
> On 8 Jul., 00:36, mdipierro wrote:
>
> > assuming
>
> > db.define_table('mytable',Field('myimage','
that is to say, in RoR you create a migration class - and you run a
migration.
web2py, you just update your table definition. If "migrations" are not
"False" for that table, the web2py automatically does an "up" migration (in
ROR terminology); There is no automatic "down" migration in web2py (t
>>I am not an expert, but since I found out about your web2py, I am
speechless.
That was my reaction too. web2py was the only framework I found that
let me focus on actual web development and not get bogged down by
idiosyncratic templating languages and quirks of other people's
imaginations. It
It is different.
As far as I understand, in rails you create migration file and you
specify how tables have to change to go from A to B, from B to C, etc.
Each step is a migration.
In web2py you do not need to write those migration files. web2py just
compares the previous table definitions with
so... you are doing xml databining in flex? saving all your data in xml in
the database?
On Tue, Jul 7, 2009 at 5:45 PM, pk wrote:
>
> thanks,
> but if i need the filename from the xml
> because i reed the xml from flex
> and i will show the file in a datagrid
>
>
> On 8 Jul., 00:36, mdipierro
Hey Yarko, about migrations with big apps.
How things are done with Rails apps, then?
Is Rails make possible to work with migration with big apps and
upgrade, how is
this diferent from we2py?
Thanks.
On Jul 7, 6:30 pm, Yarko Tymciurak wrote:
> On Tue, Jul 7, 2009 at 4:53 PM, Fran wrote:
>
thanks,
but if i need the filename from the xml
because i reed the xml from flex
and i will show the file in a datagrid
On 8 Jul., 00:36, mdipierro wrote:
> assuming
>
> db.define_table('mytable',Field('myimage','upload'))
>
> and a controller
>
> def download(): return response.download(re
assuming
db.define_table('mytable',Field('myimage','upload'))
and a controller
def download(): return response.download(request,db)
than the URL is
http://hostname:port/[app]/[controller]/download/[filename]
and filename is the one stored in db.mytable.myimage, not the original
filenam
On Tue, Jul 7, 2009 at 4:53 PM, Fran wrote:
>
> On Jul 7, 10:36 pm, eric cs wrote:
> > I'm just wondering to do big e-commerce sites like
> > www.taget.com or www.bestbuy.com isn't web2py enough, or does it need
> more maturity?
>
> I imagine that a serious site like this would have a team behin
hi,
how can i access to the url of a image which i load up in the table.
because i have another application (not web2py) and read the table
with xml.
now i need to access to the file.
thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Wow Massimo him self, that alone is awesome.
I am not an expert, but since I found out about your web2py, I am
speechless.
Looks like so good that must hava a flaw,,,hehehe, you know what I am
saying.
I bet more people know about it they will quit other frameworks.
How does it compare to java's sp
On Tue, Jul 7, 2009 at 4:36 PM, eric cs wrote:
> Awesome guys, I still can't believe..hheheh
> I just mention that to a django guys and he called web2py a mini-framework
> and django is more feature for big apps.
> Do you agree with that?
I don't know - Massimo has had more direct experience w
Fran thanks for the reply, but about those problems how
rails,zend,django would be diferent.
I understand orm for big sites can be slow, but just that right?
Thanks.
On Jul 7, 5:53 pm, Fran wrote:
> On Jul 7, 10:36 pm, eric cs wrote:
>
> > I'm just wondering to do big e-commerce sites like
> >w
Sure... ask him which feature does Django have that we do not have,
than check in with us.
Just some examples of features for dealing with BIG apps.
1) web2py can connect with multiple databases (even different types)
at the same time. If those databases are postgresql web2py can do
distributed t
On Jul 7, 10:36 pm, eric cs wrote:
> I'm just wondering to do big e-commerce sites like
> www.taget.com or www.bestbuy.com isn't web2py enough, or does it need more
> maturity?
I imagine that a serious site like this would have a team behind it
which may mean you wouldn't get all the benefits o
Awesome guys, I still can't believe..hheheh
I just mention that to a django guys and he called web2py a mini-framework
and django is more feature for big apps.
Do you agree with that?
I am not a Django guy so I don't know but native
orm,scalfolding,migrations,admin, this community...just amazing, I
well, and there is so much more than that - it's hard to describe
sometimes...
Have a running site in web2py? User request means adding something to that
user table they / you forgot to think about?
No problem - first live update (which is scary) goes without a hitch
(adding a new field to an
Thank You... Interesting...
On Jul 7, 3:22 pm, Yarko Tymciurak wrote:
> http://forum.webfaction.com/viewtopic.php?id=2373
>
> I need to update my site to current web2py (which I have not done yet -
> still running 1.56).
>
> On Tue, Jul 7, 2009 at 2:08 PM, Yannick wrote:
>
> > Oh thx Yarko for
John is making an excellent point here.
web2py is the only framework committed to be backward compatible
despite the fact that we add new features every day. For the last two
years we have maintained the promise without the need to jump any
hoops and without problems. Also we never had any securi
No shame - just priorities / time
No immediate need to update the 1.56 (it runs well; I personally know the
guy that wrote it ;-)
On Tue, Jul 7, 2009 at 3:22 PM, mdipierro wrote:
>
> > I need to update my site to current web2py (which I have not done yet -
> > still running 1.56).
>
> Sham
Are you calling these stored procedures directly with executesql(), or are
they called by triggers or db views?
Immediately, I can imagine an issue occuring if the SP changes a value which
is in an open web2py table connection (cache), so I'd be interested to know
more about context, if you are co
eric,
Web2Py's saving grace -- you won't have to do it twice unless you want
to. I have some code that is about a year old and that code still
works on the current web2py releases today. I have had no complaints
on speed. The ORM is as expressive as any other out there.
Massimo is working on a n
> I need to update my site to current web2py (which I have not done yet -
> still running 1.56).
Shame on you, Yarko! LOL
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this
Mind that that document is old and does not reflect recent changes in
web2py and in the other frameworks. Nevertheless it is a good place to
learn about differences in syntax.
On Jul 7, 1:49 pm, "mr.freeze" wrote:
> Have you seen
> this?:http://mdp.cti.depaul.edu/examples/static/web2py_vs_other
Hi Rob,
I do not have a good sense of which apps posted on applicances/ work
on GAE and which ones do not because I have not written them all
myself. Reddish works with a minor bug but I would not reccomend it
because if not based on the new Auth therefore I consider it obsolete
and to be rewritt
You are getting an error at this line:
File "/Library/Python/2.5/site-packages/web2py/applications/cms/
models/db.py", line 281, in
db.bedrijfactiviteit.activiteit['requires']
=db.bedrijfactiviteit.activiteit.requires
TypeError: 'SQLField' object does not support item assignment
but that
I use stored procedures for everything in my web2py application.
All of a sudden, I'm having a strange issue with certain stored
procedures.
It seems to be stored procedures that call other stored procedures.
I've worked around the issue to some degree.
I am not able to replicate this through
On Tue, Jul 7, 2009 at 2:26 PM, Jonathan Lundell wrote:
>
> On Jul 7, 2009, at 12:12 PM, Yarko Tymciurak wrote:
>
> > stepping thru selectively with something like WingIDE
>
>
> I haven't been using an IDE, and I'm interested in starting.
>
> I've been looking at Komodo, partly because it support
On Jul 7, 2009, at 12:12 PM, Yarko Tymciurak wrote:
> stepping thru selectively with something like WingIDE
I haven't been using an IDE, and I'm interested in starting.
I've been looking at Komodo, partly because it supports some other
languages that I use. I've tried Eclipse+Pydev, but give
http://forum.webfaction.com/viewtopic.php?id=2373
I need to update my site to current web2py (which I have not done yet -
still running 1.56).
On Tue, Jul 7, 2009 at 2:08 PM, Yannick wrote:
>
> Oh thx Yarko for the note... Do you have the link of Webfaction that
> describe how to set up web2py
stepping thru selectively with something like WingIDE can help you see how
requests get parsed, and how applications and controllers get invoked per
request. It may seem a little tedious first time to figure out what calls
are "too much detail" and which are "essential" but I would argue that the
Oh thx Yarko for the note... Do you have the link of Webfaction that
describe how to set up web2py ? because from the site I see other
framework like Django, cherrypy etc... but not Web2py...
Thanks
On Jul 6, 3:25 pm, Yarko Tymciurak wrote:
> I think your request is a good one:
>
> - A blog-li
On Jul 7, 7:30 pm, Jonathan Lundell wrote:
> Massimo, a chapter in the manual on web2py plumbing would be helpful.
> Not every detail, but enough to give a newcomer the lay of the land, a
> guide to browsing the source. What's the startup sequence, what
> happens when a request is received,
Have you seen this?:
http://mdp.cti.depaul.edu/examples/static/web2py_vs_others.pdf
On Jul 7, 12:58 pm, eric cs wrote:
> Guys I just knew this framework and really I can't believe it
> Several people say good things about Django but web2py looks like way
> better.
> So I would ask you to co
On Jul 7, 2009, at 11:08 AM, Yarko Tymciurak wrote:
> to be visible throughout your application, you can put it in any
> file in your models folder (if you want it to be visible in your
> db.py or other files in models, remember that files are read in
> alphabetical order in that file - so
On Tue, Jul 7, 2009 at 10:21 AM, Jason Brower wrote:
>
> http://web2py.com/examples/default/download
> but it's only the code that is being used... not the launchpad site,
> web2py doesn't use all the launchpad featureset.
...not sure what you mean...
>
>
>
> On Tue, 2009-07-07 at 08:15 -0700
The code is and stays very organized.
I work on a powerful system built on Java.
But when I make changes to the web application built on java... I
program in python(with jython)
Python is a more organized language. Really easy to learn, and actively
being developed.
If you like java run web2py in
to be visible throughout your application, you can put it in any file in
your models folder (if you want it to be visible in your db.py or other
files in models, remember that files are read in alphabetical order in that
file - so for example db.py would not see utils.py if both were in the
models
Guys I just knew this framework and really I can't believe it
Several people say good things about Django but web2py looks like way
better.
So I would ask you to compare web2py to Rails,Django,Zend,Spring and
tell me the cons and pros and tell me some stuff that 2py doesn't do?
Any limitations
First, web2py looks like an exciting framework, one that I wish to
learn.
I admire the efforts of Massimo for moving web2py forward. It must
require a ton of time.
I have it working on my Mac, and I am comfortable with getting apps to
GAE.
-
For anyone that uses GIMP for graphics work there is a plug in to
create a CSS/XHTML of a given image.
http://my.opera.com/area42/blog/cssdev-for-gimp
A work in progress but shows promise.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Massimo,
I will try and give you a translated example which is probable easier
to understand. I have two tables:
db.define_table('company',
db.Field('company_name',length=54,default='',notnull=True),
db.Field(...),
migrate=False)
db.define_table('activity',
db.Field
('activity_
sorry. I must have missed your message about this. It is fixed now and
I am uploading to trunk.
Massimo
On Jul 7, 10:19 am, Jason Brower wrote:
> I am getting complaints about a bug I reported a while ago.
> When people update their profile, people have to logout and back in to
> see the change
http://web2py.com/examples/default/download
but it's only the code that is being used... not the launchpad site,
web2py doesn't use all the launchpad featureset.
On Tue, 2009-07-07 at 08:15 -0700, annet wrote:
> Massimo,
>
> Problem solved. Thanks.
>
> By the way: I couldn't find a link on the
It is under downloads
On Jul 7, 10:15 am, annet wrote:
> Massimo,
>
> Problem solved. Thanks.
>
> By the way: I couldn't find a link on the web2py site to
> bazaar.launchpad.net, did I overlook it or is it just not there?
>
> Kind regards,
>
> Annet.
--~--~-~--~~~---~
I am getting complaints about a bug I reported a while ago.
When people update their profile, people have to logout and back in to
see the change.
Is there a setting I haven't set for this?
Regards,
Jason
--~--~-~--~~~---~--~~
You received this message because yo
Massimo,
Problem solved. Thanks.
By the way: I couldn't find a link on the web2py site to
bazaar.launchpad.net, did I overlook it or is it just not there?
Kind regards,
Annet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
I have a hard time figuring out what you are trying to do because your
field names do not mean anything to me. I may have given and I may be
giving wrong suggestions as a result. It would help if you could
translate the field names. Anyway, try adding the last line:
db.adres.adressoort.requires=[
You are using an experimental feature that is (was) under development.
For now replace this line
record=db.nfa[request.args[0]]
with this line
record=request.args(0)
and it will work. The problem is that crud(table,record), record
should be a record id, not an actual record. I was wor
Two possibilities are:
1) place the files you generate in 'private' not 'static' and build a
controller to serve them
2) modify your copy of admin
Massimo
On Jul 7, 4:02 am, SergeyPo wrote:
> I place several large js libraries into 'static' directory, also my
> application generates MANY graphi
On Jul 6, 2009, at 8:55 PM, mdipierro wrote:
> You can already define something like:
>
> def url(f,args=request.args): return URL(r=request,f=f,args=args)
>
> I always do it together with some of my other favorite shortcuts.
Where does one put something like that, in order to be visible
throu
Which version exactly are you using? I need the date.
Massimo
On Jul 7, 12:55 am, annet wrote:
> It is not just the check to delete that doesn't work, when I update
> the record and click submit the update isn't being executed either.
>
> Kind regards,
>
> Annet.
--~--~-~--~~---
Sorry Alexei for my delay, but (I don't know why) I don't receive
email updates about this thread...
The page that doesn't work for me is
http://www.web2py.com/AlterEgo/default/show/66
The other is ok...
Bye
On 2 Lug, 05:47, Alexei Vinidiktov
wrote:
> Did the method work on Windows?
>
> I've j
I place several large js libraries into 'static' directory, also my
application generates MANY graphical files into this dir. Is it
possible to display only "standard" directories in static? Otherwise
loading app admin page takes too much time/memory as it loads thusands
of file names that are sto
85 matches
Mail list logo