Drupal is a Trojan horse. Don't go there.
On Jan 6, 7:21 pm, Luther Goh Lu Feng elf...@yahoo.com wrote:
Even though it is in php, with the release of Drupal 7, I am tempted
to give it a spin just to see what's the fuss all about. Drupal seems
extremely popular, looking at some of the well
On Jan 7, 2:12 am, Mariano Reingart reing...@gmail.com wrote:
I know that in your mind skipping imports is about not repeating
yourself. But look guys: every single other Python program ever
written uses imports. By not including them you've basically made sure
that learning web2py is
On Jan 7, 9:59 am, VP vtp2...@gmail.com wrote:
Drupal is a Trojan horse. Don't go there.
What's the enemy hiding inside? PHP?
Jacobian made a few bogus statements. One is about imports.
In fact, you don't need to import anything to use Python globals or
primitive data structures. Why? because those primitives structures
are so useful and often used that they are automatically imported for
use.
This is conceptually
It's not so much PHP (at least not directly).
It's a Trojan horse because it's a very attractive tool to create
something quick, easy and pretty. CCK (now included in core), Panel,
Views are so powerful that you can create many websites (apps) with
them. But as you go deeper, trying to add
Actually, I'm using the route.py script that Massimo provided a while
ago. But a more understandable configuration is preferable. Here it
is (routes.conf is not listed here):
default_function = 'v'
try: config=open('routes.conf','r').read()
except: config=''
def auto_in(apps):
routes=[
sorry that was copypaste mistake. Here it is:
try: config=open('routes.conf','r').read()
except: config=''
def auto_in(apps):
routes=[
('/robots.txt','/welcome/static/robots.txt'),
('/admin$anything','/admin$anything'),
]
for a,b in [x.strip().split() for x in
It is unfortunate that these things occur and hopefully people are going to
be serious developers on a framework are smart enough to do their own
evaluation.
I came to Python about 1.5 years ago mainly because I was doing video
processing with gstreamer and the best control language for that
Forgot to mention the admin interface and the ability to compile and package
an application in a couple of button presses into a single file and then
deploy to the production servers.
The ticketing system instead of come look at my screen, it broke. My users
are in locations up to 3000 miles
Hi,
I'm using a jQuery template plugin that also uses '{{' and '}}' as
markers. I need to output something like img src={{url}} / in the
rendered HTML. I'm now using this but is there a better way?
{{=XML(u'img src={{url\u007D\u007D /')}}
Thanks,
HC
not sure this is what you want but you can easily build tabs with
web2pys included ajax functions
default.py
def index():
return dict()
def page1():
return 'this is page 1'
def page2():
return 'this is page 2'
index.html
{{=UL([LI('Page %s'%i,
hello,
from the document
(page 423 of 3rd edition of web2py, and
http://web2py.com/book/default/chapter/10)
it say the ajax api has the following signature
input id=name onkeyup=ajax('echo', ['name'], 'target') /
however, when I tried on my own application, instead of the 'id'
field,
Indeed.
Moreover, while it's not best practice, it's certainly common enough to see
from somewhere import *
which magically injects a bunch of names into the namespace.
Your suggestion that web2py simply has a small set of built-ins strikes me as
right on.
For exemple
from
On Jan 7, 10:27 am, VP vtp2...@gmail.com wrote:
But as you go deeper, trying to add features, it will be so
difficult. Just to make the app looks right to your taste is really a
challenging job.
Ok, interesting.
On Jan 6, 7:31 pm, Offray Vladimir Luna Cárdenas off...@riseup.net
wrote:
I think that Fossil is more self contained, portable and easy to learn
that Git, from a newbie point of view:
Go with what you like best, and don't let anyone tell you otherwise.
By Fabric do you mean [1]?
Yes. It
Congratulations, I hope my vote helped! :)
I would join if it was held in Europe.
I'm trying to create a multilanguage wiki with the plugin_wiki.
I know i can create just a few pages with different slugs
(corresponding to the language) for the same article, but what i can't
figure out is how to create a menu, using meta-menu or another way,
that belongs to a specific language.
Perhaps this?
from gluon.template import render
def index():
return render(filename=viewfilename,context={},delimiters=('
%','%'))
On Jan 7, 2:58 am, hcvst hcv...@googlemail.com wrote:
Hi,
I'm using a jQuery template plugin that also uses '{{' and '}}' as
markers. I need to output
+1
On Friday, January 7, 2011 3:18:55 AM UTC-5, VP wrote:
Jacobian made a few bogus statements. One is about imports.
In fact, you don't need to import anything to use Python globals or
primitive data structures. Why? because those primitives structures
are so useful and often used
On Friday, January 7, 2011 2:58:14 AM UTC-5, cjrh wrote:
On Jan 7, 12:06 am, Anthony abas...@gmail.com wrote:
In case anyone is interested...
http://www.reddit.com/r/Python/comments/ex54j/seeking_clarification_o...
Massimo should just stop caring. The reddit people have already
Hmmm... somewhere after 1.56.2 the ajax function was changed.
It now uses serialize (which encodes a set of form elements as a
string for submission) instead of the original getElementById.
On Jan 7, 5:15 am, kuokon kuo...@gmail.com wrote:
hello,
from the document
(page 423 of 3rd
On Jan 7, 2011, at 2:15 AM, puercoespin wrote:
Indeed.
Moreover, while it's not best practice, it's certainly common enough to see
from somewhere import *
which magically injects a bunch of names into the namespace.
Your suggestion that web2py simply has a small set of
After being offended by web2py being in Pycon, they made a major
attack on reddit, raised a bunch of lies. Alarmed against web2py on
twitter (they managed to enter to the top tweets) and
this created a certain discomfort.
Some of my clients (two of them) called me asking for explanations about
It remains me that django conference where they make joke about the girl who
wants the pony:
http://www.linuxformat.com/files/nopony.jpg
disclaimer: i love django too, but they have respect all the ways of doing
things.
On Fri, Jan 7, 2011 at 4:20 PM, Anthony abasta...@gmail.com wrote:
On
they **should** have
On Fri, Jan 7, 2011 at 4:51 PM, Albert Abril albert.ab...@gmail.com wrote:
It remains me that django conference where they make joke about the girl
who wants the pony:
http://www.linuxformat.com/files/nopony.jpg
disclaimer: i love django too, but they have
Gosh I am glad I can share about web2py in with my country's php,
django and rails programmers without all this nonsense.
On Jan 7, 11:40 pm, Bruno Rocha rochacbr...@gmail.com wrote:
After being offended by web2py being in Pycon, they made a major
attack on reddit, raised a bunch of lies.
On Jan 7, 6:37 pm, cjrh caleb.hatti...@gmail.com wrote:
On Jan 7, 10:27 am, VP vtp2...@gmail.com wrote:
But as you go deeper, trying to add features, it will be so
difficult. Just to make the app looks right to your taste is really a
challenging job.
Ok, interesting.
So quick
On Jan 7, 2011, at 8:40 AM, Luther Goh Lu Feng wrote:
On Jan 7, 6:37 pm, cjrh caleb.hatti...@gmail.com wrote:
On Jan 7, 10:27 am, VP vtp2...@gmail.com wrote:
But as you go deeper, trying to add features, it will be so
difficult. Just to make the app looks right to your taste is really a
On Jan 8, 12:48 am, Jonathan Lundell jlund...@pobox.com wrote:
On Jan 7, 2011, at 8:40 AM, Luther Goh Lu Feng wrote:
On Jan 7, 6:37 pm, cjrh caleb.hatti...@gmail.com wrote:
On Jan 7, 10:27 am, VP vtp2...@gmail.com wrote:
But as you go deeper, trying to add features, it will be so
In essence, a CMS is not really a framework. Just like a forum
software, or a blog software is not a CMS. I think unless VBulletin
or Wordpress drastic changes their structure, they will not be as
capable as Drupal, as a CMS.
A CMS is a platform to build systems that manage content. It happens
On Jan 7, 2011, at 12:34 AM, VP wrote:
sorry that was copypaste mistake. Here it is:
Thanks. What's your routes.conf?
try: config=open('routes.conf','r').read()
except: config=''
def auto_in(apps):
routes=[
('/robots.txt','/welcome/static/robots.txt'),
Tks for your opinions.
So I take it that it may not be worthwhile to consider building a
drupal-like CMS off web2py for non-programmers?
On Jan 8, 1:11 am, VP vtp2...@gmail.com wrote:
In essence, a CMS is not really a framework. Just like a forum
software, or a blog software is not a CMS. I
ok, after some work, here's the patch.
Massimo, I tried to follow your way, hope you like it.
The code is made in non strict way, so it shouldn't break at the first
non valid input.
URL() in meta-menu plugin_wiki patch:
http://www.speedyshare.com/files/26117790/url-in-meta-menu_plugin_wiki.patch
On Jan 7, 2011, at 9:00 AM, Luther Goh Lu Feng wrote:
Looking at web2py, we already have an IDE, a wizard, and a plugin
wiki. Might be the beginnings of a drupal-like CMS for this year's
web2py exhibition.
I'd like to see a good CMS based on web2py (the analogy isn't exact, but sort
of like
On Jan 7, 2011, at 9:26 AM, blackthorne wrote:
ok, after some work, here's the patch.
Massimo, I tried to follow your way, hope you like it.
The code is made in non strict way, so it shouldn't break at the first
non valid input.
URL() in meta-menu plugin_wiki patch:
thanks, that must have been the only line of code I haven't really
thought about
On Jan 7, 5:36 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Jan 7, 2011, at 9:26 AM, blackthorne wrote:
ok, after some work, here's the patch.
Massimo, I tried to follow your way, hope you like it.
The
These guys seem to have no clue about the increasingly
pervasive nature of computing in society today. There are many very
smart and intelligent beginners who know little about web frameworks
or even Python. They simply look for tools to develop their ideas.
In fact, you see many scientists
no help???
On 6 Jan., 17:38, pk peter.kirch...@youngdesigners.de wrote:
or just better:
how can i avoid this with the selection box: IS_IN_DB()?
because i will also not that friends.hauptperson == friends.freund
i need help very badly...
thanks
On 6 Jan., 17:24, pk
It is something like this:
example1.com /app1/default
example2.com /app2/default
example3.com /app3/default
On Jan 7, 11:17 am, Jonathan Lundell jlund...@pobox.com wrote:
On Jan 7, 2011, at 12:34 AM, VP wrote:
sorry that was copypaste mistake. Here it is:
Thanks. What's your
Is there an errata file of the printed book? Because Lulu's book has
many errors, and I have to be in comparison to the online version of
it.
I also think it would be interesting that users can add comments in
the book, and that anyone can also display, as is for example in the
postgresql
On Jan 7, 2011, at 12:14 PM, VP wrote:
It is something like this:
example1.com /app1/default
example2.com /app2/default
example3.com /app3/default
In that case:
routers = dict(
app1 = dict(domain='example1.com'),
app2 = dict(domain='example2.com'),
app3 =
On Jan 7, 2011, at 12:25 PM, Jonathan Lundell wrote:
On Jan 7, 2011, at 12:14 PM, VP wrote:
It is something like this:
example1.com /app1/default
example2.com /app2/default
example3.com /app3/default
In that case:
routers = dict(
app1 = dict(domain='example1.com'),
first they laugh at you then they fight you then you win
(Mohandas Karamchand Gandhi)
Best regards,
Stefaan.
I think it would definitely be worthwhile for there to be a decent
Web2py-based CMS. But it doesn't need to be as extensive and complicated as
Drupal. Keep it simple.
Hi Philip,
On 07/01/11 18:17, Philip wrote:
Web2py is to me the next generation of MS Access, and I mean that as a
compliment. MS Access first opened up the world of database-driven
applications to business people. With Access they could throw
together a simple application to manage a
Don't compare instantpress with another big cms, I developed instant press
in 3 month myself, plus learning web2py. How much develop and programmers
have wordpress? :P. I started to learn web2py and what can I do with the
framework. Yes is need it a lot of time to make it instantpress big.
I2p is
Hi Jonathan,
On 07/01/11 17:28, Jonathan Lundell wrote:
I'd like to see a good CMS based on web2py (the analogy isn't exact, but sort
of like Plone is based on Zope). However, building a good CMS on web2py is at
least as much work as building web2py in the first place (order of magnitude,
I think the most misunderstood fact with web2py is that web2py
implementation is improving every day,
because of TOP-DOWN approach choosen by Massimo.
What does that mean? If someone finds that something has big impact
on perfomace, web2py gets changed to better and the users can upgrade
safely,
Kuba Kucharski wrote:
On Fri, Jan 7, 2011 at 9:43 PM, Stefaan Himpestefaan.hi...@gmail.com wrote:
first they laugh at you then they fight you then you win
http://www.mail-archive.com/web2py@googlegroups.com/msg32314.html
Your link didn't work for me, but I assume this points to the same:
first they laugh at you then they fight you then you win
http://www.mail-archive.com/web2py@googlegroups.com/msg32314.html
Your link didn't work for me, but I assume this points to the same:
http://www.mail-archive.com/web2py@googlegroups.com/msg32314.html
Lol! Interesting how gmane rewrites
Thanks.
What if I have something like this:
example1.com /app1/controller1
example1.net /app1/controller2
How would this translate into this new syntax?
Thanks.
On Jan 7, 2:39 pm, Jonathan Lundell jlund...@pobox.com wrote:
On Jan 7, 2011, at 12:25 PM, Jonathan Lundell wrote:
On Jan
Guido released a new DataStore API for GAE
I read the docs and I think this syntax looks like DAL syntax
*Look the NewDataStoreAPI syntax:*
msg = yield Greeting.get_or_insert_async('hello', message='Hello world')
Let's break this up further into its constituents:
f =
Who cares about reddit, anyway?
All communities are biased. Don't mind that shit.
Marco
On Jan 7, 2011, at 1:56 PM, VP wrote:
Thanks.
What if I have something like this:
example1.com /app1/controller1
example1.net /app1/controller2
How would this translate into this new syntax?
Right now it doesn't split an application across domains. If that's useful, I
could extend
Who is http://www.reddit.com/user/av201001 I want to marry her...
Hold on.. is he a dude? argh .. nevermind ;)
On Jan 7, 7:20 am, Anthony abasta...@gmail.com wrote:
On Friday, January 7, 2011 2:58:14 AM UTC-5, cjrh wrote:
On Jan 7, 12:06 am, Anthony abas...@gmail.com wrote:
In case anyone
Mitsuhiko on reddit brings up a good issue that I was not aware of: a
bug in exec.
code=
class Foo(object):
def __del__(self):
pass
foo = Foo()
while True: exec code in {}
causes a memory leak. Web2py does this. The memory leak is small in
practice and in fact nobody noticed it. Yet
Actually this works for all classes but classes that have a __del__
(and this is not a web2py specific problem) so for now:
Attention: do not define classes with a __del__ method in models or
controllers.
Even if you do not use web2py but use another framework, do not create
classes with __del__
More about the subject of circular references:...
http://www.jython.org/archive/21/docs/differences.html
In Jython users don't need to worry about handling circular
references as these are guaranteed to be collected properly
CPython uses reference counting instead of proper garbage collection
As far as I can tell, the change in trunk didn't have any effect for me. I'm
on Windows 7 with Python 2.7.1 (just using the built-in Rocket server). I
added the following code to the top of default.py (outside any functions) in
the welcome app:
class Foo(object):
def __del__(self):
On Friday, January 7, 2011 5:50:38 PM UTC-5, Julio Schwarzbeck wrote:
Who is http://www.reddit.com/user/av201001 I want to marry her...
Hold on.. is he a dude? argh .. nevermind ;)
Sorry, I'm already married, and I'm a dude. But thanks for asking.
For the record, I'm a fan of your work
Hi, this code works with web2py 1.89.5 with mysql
but with web2py in trunk and mysql it dosent works.
db.define_table(lentes,
audit,
Field(tecnoGradua, 'string',
requires=IS_IN_SET(['MONOFOCAL','BIFOCAL','MULTIFOCAL']),label=Num.
de Graduaciones),
Field(material, string,
Also, I noticed the changeset in trunk included main.py and restricted.py,
but there were no actual changes in restricted.py. Was there supposed to be
a change in restricted.py that was mistakenly left out?
On Saturday, January 8, 2011 12:41:27 AM UTC-5, Anthony wrote:
As far as I can tell,
Probably just being unhappy with the case :)
tecnoGradua != tecnogradua
Mart :)
Field(tecnoGradua, 'string',
On Jan 8, 12:57 am, drayco antrod...@gmail.com wrote:
Hi, this code works with web2py 1.89.5 with mysql
but with web2py in trunk and mysql it dosent works.
Hi, this code works with web2py 1.83.2 and mysql
but,with web2py in trunk and mysql it doesn't works
cfedb.define_table('med_dnpmst_4',
Field('DireccionUTR', 'integer' , length = 6 ),
Field('Indice', 'id' ),
Field('ValorActual', 'double' ),
Field('Resolucion',
Ok, I understand your point.
But this is a issue of DAL or what?
because I only update web2py to trunk version
On Jan 8, 12:15 am, mart msenecal...@gmail.com wrote:
Probably just being unhappy with the case :)
tecnoGradua != tecnogradua
Mart :)
Field(tecnoGradua, 'string',
On Jan 8,
no, this is python...
not sure how it could have worked before, but the key (technogradua)
in .keys() is not being picked up... dal is simply pointing that out
with the exception being thrown. I did notice when I made the switch
that a few more of my mistakes got picked up (or it could be that I
I can also confirm this is a bug with the new DAL.
It is only caused when using upper case characters in the table or field
names. It seems that web2py converts all of the tablenames to lower case
when issuing the SQL (so your actual tables are lower regardless of what you
specify in the python).
Well, only a litle typo in page 324
db.define_table('notas_archive',
Field('current_record',db.notas),
db.notas)
However all it's works ok.
On Dec 8 2010, 7:58 pm, mdipierro mdipie...@cs.depaul.edu wrote:
which web2py version?
On Dec 8, 6:30 pm, drayco antrod...@gmail.com wrote:
really? I didn't know, thanks for pointing that out...
just out of curiosity
in
in __getitem__
return dict.__getitem__(self, str(key))
KeyError: 'tecnogradua'
don't the attribute lookups get done by python ultimately? Just
trying to understand...
how could this have worked if doing
Doesn't adding the gc.collect() just force the garbage collector to run
right now instead of waiting until some usage threshold is crossed and then
it runs to do the cleanup at some time in the future. Any accumulation of
heap use until gc gets around to running isn't really a leak, it is just
70 matches
Mail list logo