[web2py] Re: Scaling web2py

2012-04-08 Thread Mengu
hi bruce, what are the specs of your web servers and db server/s? what web server are you using and how? On Saturday, April 7, 2012 4:59:20 PM UTC+3, Detectedstealth wrote: > > Hi, > > So now that my site has been developed with web2py I am now looking to > release it this month. However also

[web2py] what about web2py 2.0?

2011-09-20 Thread Mengu
anything special coming up? will it broke backward compatibility? nobody needs backward compatibility in a major version. are there any plans for a clean up?

[web2py] Re: Good jQuery UI Library

2011-07-16 Thread Mengu
the thing is when you have qooxdoo you don't need anything else. things in web2py_ajax.js not working is not a big deal when you are working with qooxdoo as it has its own libraries. if you guys face a problem with integrating qooxdoo and web2py, i can surely put up a simple application. On Jul 1

[web2py] Re: Good jQuery UI Library

2011-07-15 Thread Mengu
why qooxdoo would not integrate into web2py? it would fit awesome without any problems. :) On Jul 15, 2:57 pm, Ross Peoples wrote: > I have evaluated several UI libraries. ExtJS is the nicest, but you can only > use it for open source projects, otherwise you have to buy it. QooXDoo looks > cool,

[web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Mengu
go ahead and use celery. On Jul 4, 3:47 pm, Valter Foresto wrote: > It is possible to call from inside WEB2PY a 'short user function' based on > time tick periodically (like any 0.05 ... 5 seconds) ? > > This functionality can be very usefull to collect data from the field (for > example from equ

[web2py] Re: normal and lazy virtual field behavior error in 1.96.3

2011-06-18 Thread Mengu
.im_func.func_code.co_argcount: box[attribute]=method() return self On Jun 19, 4:06 am, Mengu wrote: > hi szimszon and massimo, > > i have found out what is the problem. > > when you append the new virtualfield with > "db.product.virtualfields.append(MyV

[web2py] Re: normal and lazy virtual field behavior error in 1.96.3

2011-06-18 Thread Mengu
hi szimszon and massimo, i have found out what is the problem. when you append the new virtualfield with "db.product.virtualfields.append(MyVirtualFields())" you instantiate it and apply it so for every lazy property, it uses the same MyVirtualFields class pointing to same object in the memory. i

[web2py] Re: Any way to prompt for password for sensitive pages?

2011-04-16 Thread Mengu
i'd do that with a decorator which would render a page. On Apr 16, 4:53 am, Brian M wrote: > Is there any easy way to re-prompt the user for their password before > displaying certain sensitive pages? Here's what I'm thinking - the user logs > in with auth and has access to most features of the

[web2py] Re: Reutilizing/Extending web2py admin panel

2011-04-13 Thread Mengu
blackthorne, you mean like Django admin? On 13 Nisan, 19:31, blackthorne wrote: > Well, this is one of things I need the most. > Being able to use parts of the web2py admin panel or building > something based on it for direct use by clients threw the public web. > > Is there anything about this?

[web2py] Re: subdomain auth

2011-04-11 Thread Mengu
are you saving the cookies in cities.ru domain but not per subdomain? On Apr 11, 6:40 pm, LightOfMooN wrote: > But that is in all browsers (we try IE, FF, Chrome, Safari). > I have seen many sites with subdomain structure, where there are one > login for all site structure. > For example, habraha

[web2py] Re: web2py DAL, requests, threads and memory

2011-04-06 Thread Mengu
glad you sorted it out. :) On Apr 6, 8:57 pm, Gleb wrote: > Goot idea! At the end I did it like that, but a little other way. There is a > *request.add_finished_callback* > property of the request object, so I extended the DAL object: > > class Root(DAL): >     def __init__(self, request, uri): >

[web2py] Re: web2py DAL, requests, threads and memory

2011-04-05 Thread Mengu
you can create a new request class extending from the original one and via using config.set_request_factory(YourReqClass)and make dal an attribute of it. whenever the request ends, you can close the connection. On Apr 5, 7:29 pm, Gleb wrote: > Hi All, > > I'm building an app on Pyramid framework

[web2py] Re: Congratulations to this mailing list

2011-04-04 Thread Mengu
i don't believe that you've said this on purpose yet you would wish something more for web2py. however have you ever joined the django irc room or the mailing list? have you ever seen the questions asked over and over of which answers already said in that -really- great documentation? On Apr 4, 2:

[web2py] Re: New b2b site using web2py

2011-04-04 Thread Mengu
hi, i cannot access http://qakit.com in istanbul, turkey. are you using google app engine? On Apr 4, 8:12 am, JimK wrote: > Hello Everyone! > > I've been working on a business for some time and have finally > launched it!  The web server for the main app and CAS are running on > appengine using

[web2py] Re: Congratulations to this mailing list

2011-04-04 Thread Mengu
so few people in the > irc channel, it was just not linked properly > > On Apr 4, 9:38 am, Mengu wrote: > > > > > > > > > it's because they beat us on the number of irc users. :) > > > as of april 4, 2011, 10:33 am gmt +2, #django has 289 use

[web2py] Re: Congratulations to this mailing list

2011-04-04 Thread Mengu
it's because they beat us on the number of irc users. :) as of april 4, 2011, 10:33 am gmt +2, #django has 289 users, #rubyonrails has 498 users, #web2py has 16 users. we are definitely more than that. just come to irc, especially yourself massimo. of course we cannot underestimate the number of p

[web2py] Re: we need a few more good people!

2011-03-31 Thread Mengu
i'm still waiting an approval. i'm in turkey. :) On Mar 31, 3:05 am, Massimo Di Pierro wrote: > http://experts4solutions.com/e4s/default/experts

[web2py] Re: OpenERP like widgets

2011-03-24 Thread Mengu
what exactly do you need and want us to tell about? On Mar 23, 1:47 pm, Indra Gunawan wrote: > Hi, any idea how to create application (I mean the view, javascript/ajax > widget etc) like thishttp://demo.openerp.com/? > Using Web2Py off course. > > OpenERP also build from python: > 1. Server (XML-

[web2py] Re: reddit again

2011-03-22 Thread Mengu
it's not provacative, it's attractive. apart from that, i agree with what you said. let's not hijack other frameworks' threads. On Mar 22, 7:27 am, pbreit wrote: > Massimo, sorry to say but I think your posting style invites the unwanted > attention (av201001, too). I'm a Web2py supporter but I t

[web2py] Re: How using is it to have the redirects shown while in development...

2011-03-21 Thread Mengu
i can think of this being helpful only for logging purposes. On Mar 21, 9:20 am, "Jason (spot) Brower" wrote: > Now that I am working in Django at my work, I notice that when using the > built in server it notifies you of all the redirects. > How useful is this and would it be useful to implement

[web2py] Re: web2py anti-propaganda video

2011-03-18 Thread Mengu
reddit thread: http://www.reddit.com/r/Python/comments/g6e5s/on_web2py_with_tornado_cherrypy_paste_mako/ On Mar 18, 4:52 pm, Anthony wrote: > Very nice. > > I'm sure the claim that the web2py template engine is "the best" will not > generate any controversy. ;) > > Anthony > > On Friday, March 1

[web2py] Re: greetings from PyCon

2011-03-15 Thread Mengu
well, then i'll wait. :) On Mar 15, 2:25 pm, Massimo Di Pierro wrote: > I have the code example so I will post it. I just need to add voice. > > On Mar 15, 3:03 am, Mengu wrote: > > > now that's sad massimo. i was extremely anxious to see how you built > > the

[web2py] Re: Proposals for New Tagline

2011-03-15 Thread Mengu
what about generating such taglines and displaying them randomly? On Mar 15, 2:54 pm, "Jason (spot) Brower" wrote: > Hmm.. > "Twice as fast to code in than Django and four time easier." > Ok ok, it sucks, but it's true! > Let me think... how about: > Productivity by design. > Think about the page

[web2py] Re: Proposals for New Tagline

2011-03-15 Thread Mengu
instead of "the framework that gets things done" i suggest "get your app done" On Mar 15, 1:04 pm, villas wrote: > The web2py tagline is currently: 'Enterprise Web Framework'. > > Massimo agrees that this might be improved and this thread is to > solicit suggestions.  Ideally suggestions would en

[web2py] Re: greetings from PyCon

2011-03-15 Thread Mengu
now that's sad massimo. i was extremely anxious to see how you built the facebook clone and how people were impressed. On Mar 14, 9:21 pm, Massimo Di Pierro wrote: > The second part was not recorded because I forgot to press the button > [record] after the break and because the people who paid to

[web2py] Re: greetings from PyCon

2011-03-14 Thread Mengu
so, what about the video?

[web2py] Re: Overview of posts.

2011-03-13 Thread Mengu
Here is a link of all your posts in the web2py group: http://groups.google.com/groups/search?scoring=d&filter=0&enc_author=-aUA7xcAAADH3c2cptFoWyqABz-QtXr_HqZiDvCVswhrZ6TQxKj0ww On Mar 13, 11:17 am, annet wrote: > > The "view profile" link next to your name at the beginning of each > > post?. > >

[web2py] Re: greetings from PyCon

2011-03-10 Thread Mengu
was it recorded? if so, it would be really interesting to watch it. On Mar 10, 7:28 am, Anthony wrote: > I think it went very well from the audience perspective as well. Massimo's > computer was set on Chicago time (Atlanta is an hour later), so he > accidentally gave us our break an hour late --

[web2py] Re: ADVOCACY: "every single other Python program ever written uses imports"?

2011-01-09 Thread Mengu
as david said, play! destroyed the traditional java -web app- programming. it doesn't use servlets so it is extremely flexible. it doesn't use maven, it uses python. it doesn't use jsp views, it is using a template system built with groovy, and so forth. there are lots of people using play!, contri

[web2py] Re: when to use ajax

2010-12-04 Thread Mengu
instead of extjs i can happily recommend you using qooxdoo. see: http://qooxdoo.org On Dec 3, 11:10 pm, Branko Vukelic wrote: > On Fri, Dec 3, 2010 at 7:04 PM, ron_m wrote: > > I would be careful on the licensing of Ext JS, wasn't this the one > > that caused some concerns a couple of years ago

[web2py] Re: Web2py like clone in Java?

2010-10-16 Thread Mengu
going with grails or play framework is teh only way. :) On 16 Ekim, 23:22, Michele Comitini wrote: > C# ? > > 2010/10/16 Christopher Steel : > > > > > > > > > then what is the new RPG? > > > On Oct 14, 8:08 pm, Jonathan Lundell wrote: > >> On Oct 14, 2010, at 4:38 PM, DJ wrote: > > >> > I was in

[web2py] Re: Vote for a new logo

2010-10-14 Thread Mengu
i think #7 is more serious and good. i'll vote for it. On 14 Ekim, 00:17, Bruno Rocha wrote: > Martin Mulone made the logovote application. > > I am hosting at my server > > You can post logo ideas, and vote for you prefered logo. > > Better if you made an transparent canvas .gif or .png maximum

[web2py] Re: My editor ...

2010-08-21 Thread Mengu
Yes, Qt license can be GPL or LGPL. PyQt license can be GPL and there is a price to pay for commercial apps. On 21 Ağustos, 12:38, Jason Brower wrote: > The QT licence can be gpl or lgpl. But it's free rest assured. > > > > - Original message - > >   On 21-08-2010 02:01, Michele Comitini

[web2py] Re: Where to announce bugs in web2py book?

2010-08-05 Thread Mengu
what about installing redmine for bug tracking? On Aug 5, 11:04 am, mdipierro wrote: > email to me. ;-) > > On Aug 5, 3:00 am, David Marko wrote: > > > Where to annouce bugs found in web2py book? I tried to setup SOAP > > according to thehttp://web2py.com/book/default/chapter/09#SOAPbut > > foun

[web2py] Re: The one video you should watch

2010-07-20 Thread Mengu
great screencast but you should really stop that zz. :) On 20 Temmuz, 17:22, mdipierro wrote: > If you have not followed closes the latest developments, you should > watch this video: > > http://www.vimeo.com/13485916

[web2py] Re: new web2py site in Poland!

2010-07-09 Thread Mengu
make it english, make it damn global. it'd just work for every country and city. On 7 Temmuz, 23:46, Kuba Kucharski wrote: > Hi, people, > > I would like to present you WRSZW project > > http://wrszw.pl > it is about events in Warsaw, capital of Poland, fully non-commercial > initiative of places

[web2py] Re: Urgent. EuroPython!

2010-07-05 Thread Mengu
yeah, DAL would be good. What is DAL and how it differs from others? On 2 Temmuz, 09:12, Richard wrote: > perhaps the DAL - new and upcoming features > > On Jul 2, 1:43 am, mdipierro wrote: > > > > > I just discovered I will be giving a tutorial about web2py at > > EuroPython in two weeks. > > I

[web2py] Re: [off-topic] UI frameworks like: ExtJs, Pivot

2010-05-22 Thread Mengu
qooxdoo? On 23 Mayıs, 01:38, b00m_chef wrote: > I prefer YUI 3. It includes the most revolutionary plugin system. > Basically, it has a built in apt-get like system where you just list > all the plugins you are going to include in your app, and YUI 3 > automatically downloads the additional sourc

[web2py] Re: New Django version 1.2

2010-05-17 Thread Mengu
On 18 Mayıs, 02:13, mdipierro wrote: > My comments below. > >     * Model validation inspired by Django’s form validation. > > If I understand > this:http://docs.djangoproject.com/en/dev/ref/validators/#ref-validators > now django works like web2py always did. They copied us. Still their > valida

[web2py] Re: Postgresql Schema in Web2py

2010-05-14 Thread Mengu
you can install sqlalchemy and use it with web2py. and i recommend using declarative bases: http://www.sqlalchemy.org/docs/ormtutorial.html#creating-table-class-and-mapper-all-at-once-declaratively but remember, if you use sqlalchemy you won't be able to use the built- in auth and crud systems.

[web2py] Re: Idea: Appliance remote management

2010-05-13 Thread Mengu
i support the idea. On 13 Mayıs, 22:07, Jason Brower wrote: > I say we move forward with this one as it doesn't need so much work as > with the plugins.  At least at first thought.  It's just additional > metadata in the application.  I think some simple xml/html would do the > trick.  Just what

[web2py] Re: New to web development? Watch this!

2010-05-13 Thread Mengu
thanks chef, great resource. On 14 Mayıs, 00:28, b00m_chef wrote: > http://academicearth.org/courses/building-dynamic-websites > > Watch all the videos in the series. Lots of NEED TO KNOW stuff for all > those starting out.

[web2py] Re: Belongs orders results by id

2010-05-13 Thread Mengu
yes, i have also tried with sqlite3 and it didn't work. see how awesome mysql is? any postgresql users, does psql support this? On 13 Mayıs, 20:37, Francisco Costa wrote: > Thank you Mengu > I've converted my DB to MySQL. In SQLite didn't work. > > On Ma

[web2py] Re: Belongs orders results by id

2010-05-13 Thread Mengu
yes, this is possible. i don't know other databases but possible with MySQL. db(db.space.id.belongs((result_id))).select(orderby="FIELD(id, 1,6,136,2,18,119,122)") On 13 Mayıs, 17:28, Francisco Costa wrote: > yes, then 2,18,119,122 > > On May 13, 3:22 pm, Mengu wrot

[web2py] Re: Belongs orders results by id

2010-05-13 Thread Mengu
so you want them to be ordered as first 1 then 6, then 136 etc? On 13 Mayıs, 13:53, Francisco Costa wrote: > I have this query db(db.space.id.belongs(result_id)).select() > the result id is an unsorted array of ids > I don't want the query results to be order by id > > The SQL list this > SELECT

[web2py] Re: Review my web2py app: Radbox.me

2010-05-11 Thread Mengu
This is surely a great app. Congratulations. I wish you success like a sea.

[web2py] Re: Reverse Search with .like

2010-05-07 Thread Mengu
is || just a string or have any purpose? On 7 Mayıs, 17:35, AsmanCom wrote: > Hi, > > here is the important Code from an Sqlite trigger i use very often, is > this possible with web2py to? > > Sqlite: > (SELECT table_1.field_1 FROM table_1 WHERE '%' || NEW.field_1 || '%' > LIKE table_1.field_1 )

[web2py] Re: Top 3 web2py features

2010-05-06 Thread Mengu
1) scalable 2) fast 3) easy

[web2py] Re: New to web app development -- is web2py a good choice

2010-05-06 Thread Mengu
This was true until the book went online. Now, web2py have a great documentation. Other than that, anything that a beginner might ask can be found in the mailing list. On 6 Mayıs, 17:07, Chris S wrote: > I've heard it said that the documentation for web2py isn't as good as > some other options.  

[web2py] Re: blocks in template

2010-05-05 Thread Mengu
We were discussing this on the IRC and he has taken action, great! Block support is an important part of templating engines. Thank you both. On 5 Mayıs, 08:11, Massimo Di Pierro wrote: > Less that two days ago Thadeus made a request: > >    http://web2py.uservoice.com/forums/42577-general/sugge

[web2py] Re: wordpress2py

2010-05-02 Thread Mengu
well, i don't know who is this but he also mirrored my post without my permission: http://www.mundopython.org/django-vs-web2py/ On 2 Mayıs, 20:12, Thadeus Burgess wrote: > He stole my code! > > -- > Thadeus > > > > On Sun, May 2, 2010 at 9:24 AM, mdipierro wrote: > >http://www.mundopython.org/w

[web2py] Re: web2py stats

2010-04-29 Thread Mengu
this is great news. hope many of them convert not just stay with visiting! :) On 29 Nisan, 17:32, mdipierro wrote: > web2py.com visitors have gone up (about +30% since two weeks ago). > > Unique visitors (by IP) > > 22/Apr/2010 1449 > 23/Apr/2010 1464 > 24/Apr/2010 1138 > 25/Apr/2010 1124 > 26/Ap

[web2py] Re: web2py paypal integration

2010-04-28 Thread Mengu
excellent article! i needed it for my e-commerce software that i'm developing with web2py.

[web2py] Re: ASP vs Rails 3 (vs web2py?)

2010-04-28 Thread Mengu
i can do it. :) On 27 Nisan, 16:53, mdipierro wrote: > Who is brave enough to rewrite this and add web2py? > > http://anders.janmyr.com/2010/04/aspnet-mvc-vs-rails3.html > > -- > Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en

[web2py] Re: delete database entry by form

2010-04-19 Thread Mengu
SQLFORM has an argument called "deletable" if you set it to True when you initialize it, you will have an option like "delete this record". and when you submit the form with that option checked then the record will be deleted. On 20 Nisan, 03:12, claudio wrote: > I have a newbie question: How can

[web2py] Re: web2py on IDE

2010-04-17 Thread Mengu
> > Support for the storage class would be awesome. > > As far as the IDE itself goes, a VIM mode would be a final selling > point for me. > > On Apr 16, 7:25 pm, Mengu wrote: > i currently don't know how to do vim mode and never done a research on this but i will take

[web2py] Re: web2py on IDE

2010-04-16 Thread Mengu
thanks massimo. any recommendations for web2py or general purpose? On Apr 17, 4:42 am, mdipierro wrote: > looks really nice. > > On Apr 16, 7:35 pm, Mengu wrote: > > > > > an early preview can be viewed athttp://omploader.org/vNDNsag/out-18.ogv > > > On Apr 17,

[web2py] Re: web2py on IDE

2010-04-16 Thread Mengu
an early preview can be viewed at http://omploader.org/vNDNsag/out-18.ogv On Apr 17, 3:29 am, Jose wrote: > On 16 abr, 20:25, Mengu wrote: > > > hi all, > > > many of you know that i'm developing a web development IDE that will > > support many frameworks inc

[web2py] web2py on IDE

2010-04-16 Thread Mengu
hi all, many of you know that i'm developing a web development IDE that will support many frameworks including web2py. so i want to hear your ideas and suggestions for both web2py part and the IDE in general. your sincerely mengu -- Subscription settings: http://groups.google.com/group/w

[web2py] Re: Creating New Applications From Console

2010-04-06 Thread Mengu
oh, it asks to create if it doesn't exist. it doesn't create automatically. On 6 Nisan, 22:10, "mr.freeze" wrote: > That works but you must confirm it at the command line. > > On Apr 6, 2:06 pm, Mengu wrote: > > > > > so python web2py.py -S newapp

[web2py] Re: Creating New Applications From Console

2010-04-06 Thread Mengu
so python web2py.py -S newapp is working? thanks by the way. i need this for my IDE's project creation. On 6 Nisan, 21:43, mdipierro wrote: > It should go in the comments. > > I would not add a new -g because we are running out of command line > options. > > Massimo > > On Apr 6, 12:55 pm, Kuba

[web2py] Creating New Applications From Console

2010-04-06 Thread Mengu
Hi, Is it possible to create new applications from console via web2py.py? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubs

[web2py] Re: New Python IDE for Windows/Mac/Linux

2010-04-01 Thread Mengu
yet another complex, powered by jetbrains ide. i think these guys know how to develop but don't know what is an ide. however it looks good. by the way, i'm also developing a "web development ide" (http:// www.mengu.net/post/a-new-web-development-ide) so i hate competition. :D On 2 Nisan, 02:38, m

[web2py] Re: googling web2py

2010-03-28 Thread Mengu
109K from Turkey. On 28 Mart, 15:14, Alfonso de la Guarda wrote: > Hello, > > 110,000 > from Perú > > > Alfonso de la Guarda > Centro Open Source(COS)http://www.cos-la.nethttp://alfonsodg.net >    Telef. 991935157 > 1024D/B23B24A4 > 5469 ED92 75A3 BBDB FD6B  58A5

[web2py] Re: how's going to make a plugin?

2010-03-24 Thread Mengu
how or who? On 24 Mart, 17:42, mdipierro wrote: > http://nivo.dev7studios.com/ -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+

[web2py] Re: web2py beautification

2010-03-18 Thread Mengu
mdipierro wrote: > > > > Ideally if we could make the welcome app use or at leat friendly > > > withhttp://jqueryui.com/themeroller/itwouldbe nice. > > > > On Mar 13, 9:35 pm, villas wrote:> On Mar 13, > > > 4:05 pm, Mengu wrote: > > > > &g

[web2py] Re: custom validation problem

2010-03-17 Thread Mengu
to your console. On 17 Mart, 13:41, mohammed al-moustady wrote: > thank you hamdy but it is irrelevant to the code. > > BTW > mdipierro > > do you mean print statement in the code itself? I thought it was s > special function.. > ok even If I do these print statements were would it print to? > >

[web2py] Re: Validation per object

2010-03-15 Thread Mengu
>       return form.errors > > errors = > validate_and_insert(db.tablename,field1='value1',field2='value2', > etc.) > if not errors: record was inserted > > Note that table.insert(...) takes form.vars not vars since they are > not the same. > &g

[web2py] Validation per object

2010-03-15 Thread Mengu
me="", email="b...@email") and the return is: ['Please enter your name', 'Given e-mail is not a valid one.'] so we can iterate over the errors and show them. you can see my addition here: http://github.com/mengu/web2py-patches/blob/master/gluon/sql.py#L

[web2py] Re: errorless ajax bugs - how to prevent?

2010-03-14 Thread Mengu
my advice is not web2py related but when i am dealing with ajax and javascript in general i always fire up my firebug console. On 14 Mart, 10:43, snfctech wrote: > You're right.  The example I gave isn't holding up anymore!  (I swear, > I didn't change my code since my last post!) I'm getting tic

[web2py] Re: Where do you use web2py?

2010-03-14 Thread Mengu
i am currently developing a business networking application with web2py. after that i will get into the CRM market. On 12 Mart, 11:42, "Giovanni Giorgi" wrote: > Hi all, >  in the attempt to better knowing web2py and its community, > I'd like to write some entry on my blog (gioorgi.com). > I want

[web2py] Re: An SQL Query Question for DAL

2010-03-13 Thread Mengu
sorry, this is the full error: File "/home/mengu/projects/werkzeug/***/models/gluon/sql.py", line 3525, in __str__ self.export_to_csv_file(s) File "/home/mengu/projects/werkzeug/***/models/gluon/sql.py", line 3505, in export_to_csv_file row.append(record._extra

[web2py] Re: An SQL Query Question for DAL

2010-03-13 Thread Mengu
> > Now we just need to see if Massimo will take the patch! > > > On Mar 13, 12:50 am, Mengu wrote: > > > > alright then, this is really great. :) i'm happy that i could > > > contribute to web2py. :) > > > > thanks mr.freeze. > > > &g

[web2py] Re: web2py beautification

2010-03-13 Thread Mengu
i still recommend oocss as css framework. a lot easier, a lot better. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...

[web2py] Re: An SQL Query Question for DAL

2010-03-12 Thread Mengu
otiable I think 'named' is better than > 'with_alias': > > postcount = db.post.id.count().named('postcount') > > On Mar 13, 12:54 am, "mr.freeze" wrote: > > > > > Now we just need to see if Massimo will take the patch! &g

[web2py] Re: An SQL Query Question for DAL

2010-03-12 Thread Mengu
ield('body')) > > db.define_table('post_comment', >    Field('post_id', db.post), >    Field('comment', 'text')) > > def mengu(): >     rows = > db(db.post_comment.post_id==db.post.id)

[web2py] Re: An SQL Query Question for DAL

2010-03-12 Thread Mengu
It seems to work well, allowing you to cast any expression into a new > variable: > totals = > db(db.things.id>0).select(db.things.amount.sum().with_alias('total')) > print totals.first().total > > Thanks Mengu. > > On Mar 11, 2:57 pm, Mengu wrote: > > > > &g

[web2py] Re: An SQL Query Question for DAL

2010-03-11 Thread Mengu
hi mr. freeze, please go with it, i didn't start doing anything. :) On 11 Mart, 22:52, "mr.freeze" wrote: > Mengu, one made one small change to your code for backwards > compatibility (putting the value back into _extra).  Other than that, > I added a with_alias method

[web2py] Re: An SQL Query Question for DAL

2010-03-11 Thread Mengu
Anyone has any other way for writing that query? Massimo, wouldn't you accept this as a patch? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send em

[web2py] Re: An SQL Query Question for DAL

2010-03-10 Thread Mengu
By the way, this work for queries like: top_votes = db(db.vote.question_id==db.question.id).select("title AS t", db.question.title, groupby=db.question.id) so you can access t with top_votes[0].t On 11 Mart, 06:38, Mengu wrote: > Hi all, > > I have two write this query

[web2py] An SQL Query Question for DAL

2010-03-10 Thread Mengu
Hi all, I have two write this query: "SELECT COUNT( vote.id ) AS votecount, question.id, question.title FROM vote, question WHERE vote.question_id = question.id GROUP BY question.id ORDER BY votecount DESC" And I have came up with: top_votes = db(db.vote.question_id==db.question.id).select("COU

[web2py] Re: web2py beautification

2010-03-07 Thread Mengu
if anyone is going to do the design work, i recommend oocss at www.oocss.org On 7 Mart, 12:29, villas wrote: > An example layout page I looked at had: > > > > > > > > > > > Clearly it leaves much to be desired,  but maybe it would help if we > agreed: > 1. A clear goal of moving from tabl

[web2py] Re: Introducing myself: Giovanni Giorgi

2010-03-07 Thread Mengu
welcome to web2py family giovanni :) wish you good luck with your journey. On 7 Mart, 12:36, Giovanni Giorgi wrote: > Hi all, >  I am new to web2py, so I will introduce shortly myself. > My name is Giovanni Giorgi, I am a 35-years old Senior Consultant. > I live in Milan, in Italy. > I got a mast

[web2py] dal.py "password is invalid keyword for this function" error

2010-03-05 Thread Mengu
Hi, I wanted to use DAL for a project of mine, not web2py but python and i got "password is invalid keyword for this function". but this doesn't happen when i use sql.py instead of dal.py This is for MySQL by the way. -- You received this message because you are subscribed to the Google Groups

[web2py] Re: * web2py's Brand *

2010-03-05 Thread Mengu
well actually, for example their irc rooms on freenode are around 80+ people from ours. but turbogears is always around 50 people. On 6 Mart, 02:24, mdipierro wrote: > LOL. No I am not a good salesman and proud of that. ;-) > > Anyway... > > Do you see any technical reason why Django or Pylons wo

[web2py] Re: * web2py's Brand *

2010-03-04 Thread Mengu
The question here is how do we get more people know and use web2py. is it releasing some widely used and mostly needed applications developed with web2py? or a big web site that is developed with web2py? as far as i know django doesn't power, for example a social network that is widely used. but wh

[web2py] Re: New Code-Editor

2010-03-04 Thread Mengu
"* in the views it would be great if there is a "{{ * put the curser here * }}"-button (this will save time)" i think a keyboard shortcut would be better rather than a button. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this grou

[web2py] A suggestion on table migration

2010-03-03 Thread Mengu
Hi, I think it would be better and faster for setting a global option for db for migrations so instead of checking per table, if that global option is set to True then it migrates and if it's set to False then it doesn't migrate. What do you think? -- You received this message because you are su

[web2py] Re: * web2py's Brand *

2010-03-03 Thread Mengu
John, There are things that I agree with you and there are things that I disagree with you. For example if PyCon participants are interested in Django and not in web2py, isn't this for Django's popularity? If so, how come the concern over popularity is uncomfortable? When selecting a framework, I

[web2py] Re: wordpress

2010-03-03 Thread Mengu
the designer can just use jquery.corner plugin for rounded corners. it is working with firefox, ie, opera and chrome very good. On Mar 4, 3:02 am, mdipierro wrote: > The nice thing about wordpress is that it is color neutral and it doed > almost everything with CSS not images. They have a few ima

[web2py] Re: Javascript Comment Bug

2010-03-03 Thread Mengu
which file should i edit to fix this? On Mar 3, 8:58 pm, Mengu wrote: > Hi, > > This is not a big deal. I have some inline javascript in my layout and > I have a commented line like "// url: /review/vote?reviewid={{= > review.id}}" (it was for rememering the url) but t

[web2py] Re: data type for .sum()?

2010-03-03 Thread Mengu
way more cool! :) thanks. On Mar 3, 10:59 pm, mdipierro wrote: > this is simpler and works with 2.4 > > review.votes = review.votes or 0 > > On Mar 3, 2:49 pm, Mengu wrote: > > > > > for such operations i use, for example, review.votes = review.votes if > >

[web2py] Re: Online Users

2010-03-03 Thread Mengu
and i will also delete the records those have done nothing in the last 10 minutes. so these all are done per request, i need to write a cron job which will make some cleaning. i hope i'm on the right way. On Mar 3, 9:01 pm, Mengu wrote: > no actually, for two reasons: > > 1) it says: &q

[web2py] Re: data type for .sum()?

2010-03-03 Thread Mengu
for such operations i use, for example, review.votes = review.votes if review.votes is not None else 0 so i can do operations on it. On Mar 3, 10:26 pm, mdipierro wrote: > I can see there is a bug in web2py in that respect since it assumes > integer while it should be of the same type as the fiel

[web2py] Re: Online Users

2010-03-03 Thread Mengu
) On Mar 3, 8:39 pm, "mr.freeze" wrote: > This?:http://web2py.com/book/default/section/3/3?search=sessions > > On Mar 3, 11:23 am, Mengu wrote: > > > > > Hi, > > > After logging in, how should I collect the online users? -- You received this message because yo

[web2py] Javascript Comment Bug

2010-03-03 Thread Mengu
Hi, This is not a big deal. I have some inline javascript in my layout and I have a commented line like "// url: /review/vote?reviewid={{= review.id}}" (it was for rememering the url) but the template system want to find review and print the id. -- You received this message because you are subsc

[web2py] Online Users

2010-03-03 Thread Mengu
Hi, After logging in, how should I collect the online users? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googleg

[web2py] Re: storing a Python list

2010-03-01 Thread Mengu
massimo, there is also a problem, i cannot store a datetime object in session, it says unmarshallable object. why is that? On 1 Mart, 19:55, Carl wrote: > Sorry, not quite there. > > I can't see why for myself but when I pass a python list into this > SQLCustom definition in db.py data is stored

[web2py] Re: zen html

2010-03-01 Thread Mengu
this is just awesome. i really would use this with web2py. and it also has a gedit bundling so i'm going to learn and use :) thanks for letting us know selecta. On 25 Şubat, 17:49, selecta wrote: > Sometimes you still have to write html in web2py which is annoying. It > might not be new to all o

[web2py] Re: Routes.py - Remove Application prefix

2010-03-01 Thread Mengu
massimo, this breaks admin. :) On 1 Mart, 14:53, mdipierro wrote: > or the new simpler way > > routes_in = (('/$anything', '/init/$anything'),) > routes_out = (('/init/$anything', '/$anything'),) > > On Mar 1, 5:51 am, Álvaro Justen [Turicas] > wrote: > > > > > On Mon, Mar 1, 2010 at 03:47, Elam

  1   2   3   >