Hi,
> @Annet:
> Sorry, but what do you mean "emil"?
Emil works at WebFaction, where I host my application in a Shared 1
plan. Using web2py's crontab doesn't work at WebFaction, I have to use
my 'real' crontab to clean up sessions in my web2py applications.
Hence Massimo's re-write of the expire_s
+1 to both posts. :)
On May 22, 4:25 am, weheh wrote:
> You will find you are in good company, here. Many of us feel the same
> way you do. It's perhaps not fitting to gush ... web2py isn't perfect.
> But it's the best I've found at what it does, and by a large margin.
On May 21, 7:44 pm, mdipierro wrote:
> Does this mean that the "remember me for 30 days" feature works well
> for you?
> I have been having some problems with it.
>
Good question :)
Actually without this option I've experienced that my session expires
after a while (I think 10 minutes?), while w
I think there is a cleaner way. No need to modify the applications/
admin/cron/expire_sessions.py whenever you add or remove your apps.
You just put this line into each of applications/your_app/cron/crontab
10 2 * * * root
**applications/admin/cron/expire_sessions.py
The problem is figure out what when wrong. Not so much fixing it.
For normal web2py apps (except T3) the fix is always the following:
1) edit the table to match what is in the database
2) delete all databales/*.table files
3) set migrate=False, fake_migrate=True
for T3 things may be more complex
Here is my comparison between the two
PostgreSQL
Tables
DAL
ACID
vertically scales
set-schema
Both
no built-in object model
requires foreign key lookups
requires migrations if schema DOES change
MongoDB
documents
NoSQL
quick reads
horizontally scales
changing-schema
The advantages I see with N
Let me know if you advance in something.
This project interest me.
Alexandre Andrade
2010/5/21 Abhishek Mishra
> Hi Massimo,
>
> I was thinking of porting BugBase (a base bug tracker written in php
> as a college project) to web2py to learn and speed up with it. The
> original PHP code is here
really? that would be a very usefull information! I feel more secure
now thank you alot professor Massimo :DD
is via shell or via web?
On 22 mayo, 03:31, mdipierro wrote:
> Everything can be recovered but the details of how to do it depend on
> an exact diagnosis of what happened.
>
> I wi
Yeah, thanks for the clarification about GIL, that was awesome (I read
many a textbook that was not as well written).
Made me realise that you can do some calls to the Python's C APY from
multiple C threads, but you should do so seldomly as its more
expensive in terms of interruptions in the paral
Everything can be recovered but the details of how to do it depend on
an exact diagnosis of what happened.
I will try draft some guildelines for recovery.
On May 21, 6:43 pm, GoldenTiger wrote:
> I copy-pasted some models that I previosuly defined in another web2py
> app, to configure models for
On May 21, 5:06 am, Graham Dumpleton
wrote:
> On May 21, 7:00 pm, Yarko Tymciurak
> wrote:
...
> > There is much to cover in this - and I suppose reason to be happy that
> > python traditionally hasn't run multi-core.
> > See, for example, the discussions
> > at:http://stackoverflow.com/que
Great, now I am learning web2py I have a few of them noted at my Mac
desktop.
There is a little bug at http://bugs.madetokill.com
Register button redirect to javascript code instead of /index.php?
page=regUser
Juan Martinez
I copy-pasted some models that I previosuly defined in another web2py
app, to configure models for an T3 new page.
By mistake, I copied all content from db.py ,and pasted in configure
models, and i submitted.
This provoked duplicated tables and variables, and an already defined
error in default c
You will find you are in good company, here. Many of us feel the same
way you do. It's perhaps not fitting to gush ... web2py isn't perfect.
But it's the best I've found at what it does, and by a large margin.
> I did not mean that in a negative tone, I do respect designers a great
> deal, they have a gift that seems to allude me =)
>I am sure Thadeus did not mean it is a negative sense. I am personally
>envious of designer given my total lack of artistic skills.
That makes 3 of us.
My experience with
I think it will be very useful. Keep up posted. :-)
On May 21, 4:34 pm, Abhishek Mishra wrote:
> Hi Massimo,
>
> I was thinking of porting BugBase (a base bug tracker written in php
> as a college project) to web2py to learn and speed up with it. The
> original PHP code is here -http://github.com
Hi Massimo,
I was thinking of porting BugBase (a base bug tracker written in php
as a college project) to web2py to learn and speed up with it. The
original PHP code is here - http://github.com/ideamonk/bugbase with
demo available at http://bugs.madetokill.com
Its a bit buggy and insecure (assume
I found this
http://github.com/ideamonk/Bug2Py
seems interesting. Anybody has any info?
Massimo
You have to add some logic to do that.
On May 21, 3:26 pm, annet wrote:
> I enabled authentication and have the following entries in the
> auth_user, auth_group and auth_membership tables:
>
> user.id user.first_name ...
> 1 Ann
> 2 Jan
>
> group.id group.role
I enabled authentication and have the following entries in the
auth_user, auth_group and auth_membership tables:
user.iduser.first_name ...
1 Ann
2 Jan
group.idgroup.role
1 user_1
2 user_2
membership.idmembership.user_idm
Hi,
well, I see we both agree in two points:
a) we don't like use django :)
b) and we respect each other (this is more cool :P )
i'm sorry if I get off-topic of this group, really, but I don't like
the generalizations :) that's all...
if I can help you both, please tell me, I will gladly!
best
Hi all, I just can't resist to not tell to you how I love web2py. I've
used for some time CherryPy and Django, they are good products, but
Web2Py simplicity and productivity is marvelous. I don't talk english
very well, but even in my native language I can't say how I am
enthusiastic, I feel "empow
Thanks for your feedback on this.
On May 21, 12:59 pm, GoldenTiger wrote:
> Yes, I know WaveMaker, It's one of my favourite ajax studio out there,
> runs locally on a small java server with very simple API
>
> If you like Wavemaker then you will like SmartClient
> http://www.smartclient.com
>
>
Yah I hear ya. I love Debian for being rock-solid stable (not to
mention that I cut my Linux teeth on it) but man is it OLD!
I've had good luck with Ubuntu. I try to stick with Linux systems that
use DEBs. I've been burned too many times by RPM-dependency hell!
There's always Gentoo! No s
I have just remembered why I left using smartclient and wavemaker, on
production server they were too slow
I think the first table definition is more actual and cleaner than
second and it's how I am actually doing it
On 21 mayo, 16:49, annet wrote:
> I read chapter 8 of the web2py manual and some post on authentication
> to get started (again) implementing a cms.
>
> I read about MD5 and SHA-512, and
Yes, I know WaveMaker, It's one of my favourite ajax studio out there,
runs locally on a small java server with very simple API
If you like Wavemaker then you will like SmartClient
http://www.smartclient.com
They both are powerfull and nice, but since runs on java servers I
prefer web2py, mayb
Final thought...
I think if NoSQL were indicated for use with a web2Py app, it might be most
appropriate to replace some, but not all SQL-based tables.
--r.
On May 21, 2010, at 9:31 AM, Thadeus Burgess wrote:
> I also see really no reason to use NoSQL unless you really just don't
> like writi
To each new database, need to be adusted ( in a new script):
1 - the database driver (mysqlb is for mysql)
2 - maybe the sql sintax to select table and fields
3 - the treatment of result of select tables and field can need adjustments
4 - the field_type function have to be adjusted.
My first opti
I will need to be adapted.
look my answer to Jonhy email.
2010/5/21 Nicol van der Merwe
> Nice! This is super excellent.
>
> Just a simple question : will this work on SQL Server?
>
>
> On Fri, May 21, 2010 at 1:37 AM, Alexandre Andrade <
> alexandrema...@gmail.com> wrote:
>
>> Some time ago
To each new database, need to be adusted ( in a new script):
1 - the database driver (mysqlb is for mysql)
2 - maybe the sql sintax to select table and fields
3 - the treatment of result of select tables and field can need adjustments
4 - the field_type function have to be adjusted.
My first opti
But Thadeus, NoSQL is much more than moving away from SQL.
It's not that we *want* joins to become an application's task, or that we want
to remove consistency within requests.
The driving forces are in general scalability, availability, & robustness with
enormous amounts of traffic.
For most sit
I also see really no reason to use NoSQL unless you really just don't
like writing SQL... thats why we have ORMs and DALs anyways.
You still have to use FK relationships with document based sets... ie:
with a 4MB document limit, they suggest you split comments for a post
into its own document and
That's correct. Once you apply the widget to the field it will be used
on all corresponding forms.
On May 21, 11:12 am, annet wrote:
> I had a quick look at the slice, am I right to conclude that contrary
> to the pengoworks autocomplete this one is more generic. When I use
> the Pengoworks autoc
I had a quick look at the slice, am I right to conclude that contrary
to the pengoworks autocomplete this one is more generic. When I use
the Pengoworks autocomplete in my model I have to define:
db.address.city.widget=lambda
self,value:INPUT(_type='text',_id='city',_class='ac_input',_name='city',
Here is another option:
http://www.web2pyslices.com/main/slices/take_slice/66
On May 20, 9:16 pm, greenpoise wrote:
> Is there an alternative to drop down? a type ahead type of widget?
Massimo,
> Do you have a table db.city with a field db.city.name?
Yes I do.
> If so, because db.address.city is not a reference, it should just be
> db.address.city.widget=AutocompleteWidget(request,db.city.name)
Yes, now it works. This saves me a lot of work, implementing the
pengoworks autoco
No, I'm still stuck.
Not sure where to go from here, so I'm starting over with a fresh
install of the OS.
Perhaps I'll pick something with python 2.6 ?
Obviously I don't have to implement the ssl through python, I can make
the connection through another web server, but I hate to give up after
inve
Hi,
Could it be port to all database this way :
http://blog.gmane.org/gmane.comp.python.sqlobject/month=20100101
SQLObject
??
Jonhy
2010/5/20 Alexandre Andrade
> Some time ago I talk about to do it.
>
> Finally I have to do it.
>
> It can be improved to a form in appadmin, use the model to
A friend pointed me to this: http://wavemaker.com
It is really nice and very close to what I would like the future of t3
to be.
On May 21, 9:37 am, GoldenTiger wrote:
> Thanks for so fast response :D
>
> Then I will choose T3 for my urgent web, and then i will back to
> web2py
>
> Juan Martinez
>
I read chapter 8 of the web2py manual and some post on authentication
to get started (again) implementing a cms.
I read about MD5 and SHA-512, and understand I have to provide a
secret key for this setting: auth.settings.hmac_key='' Does this key have a specific format, e.g. 448a98e0-00fd-46b2-
ac
Does this mean that the "remember me for 30 days" feature works well
for you?
I have been having some problems with it.
On May 20, 5:45 am, Adi wrote:
> Hi,
>
> I use the "Remember me for 30 days" feature in our app. I used a
> custom auth_table with a column "last_login" to update every time a
>
Thanks for so fast response :D
Then I will choose T3 for my urgent web, and then i will back to
web2py
Juan Martinez
On 21 mayo, 14:49, mdipierro wrote:
> T3 was a proof of concept. It works but it was written very long ago.
> A lot of the T3 functionality is now in web2py. there is very littl
Oops! Stupid me. :) Just read the *entire* subject now "Script to generate
schema (models) from *mysql*". So obviously - not for SQL Server.
*sigh* it's been a long day.
On Fri, May 21, 2010 at 3:59 PM, Nicol van der Merwe
wrote:
> Nice! This is super excellent.
>
> Just a simple question : will
Do you have a table db.city with a field db.city.name? If so, because
db.address.city is not a reference, it should just be
db.address.city.widget=AutocompleteWidget(request,db.city.name)
On May 21, 7:55 am, annet wrote:
> Massimo,
>
> I gave this a try:
>
> from gluon.sqlhtml import Autocompl
Hi,
Really nice!
I haven't try it, but I have to do the importation of postgresql database
into a web2py model. I was just wondering if you can pointed the place that
should be adapt for postgresql, I will change it and return the running
code for postgresql.
Thanks.
Jonhy
2010/5/20 Alexandre
Nice! This is super excellent.
Just a simple question : will this work on SQL Server?
On Fri, May 21, 2010 at 1:37 AM, Alexandre Andrade wrote:
> Some time ago I talk about to do it.
>
> Finally I have to do it.
>
> It can be improved to a form in appadmin, use the model to another db
> (postgr
Haha! I enjoy with this jokes in tech slides, they're amusing!
On Fri, May 21, 2010 at 3:02 PM, Timothy Farrell wrote:
> Developers running with scissors!! LOL!!!
>
>
> On 5/20/2010 2:12 PM, szimszon wrote:
>
>> Nice
>>
>> On máj. 20, 19:52, mdipierro wrote:
>>
>>
>>> http://www.scribd.com/doc/
Developers running with scissors!! LOL!!!
On 5/20/2010 2:12 PM, szimszon wrote:
Nice
On máj. 20, 19:52, mdipierro wrote:
http://www.scribd.com/doc/31669670/PostgreSQL-and-NoSQL
Massimo,
I gave this a try:
from gluon.sqlhtml import AutocompleteWidget
db.define_table('address',
Field('city',length=42,default='',notnull=True)),
...)
db.address.city.widget=AutocompleteWidget(request,db.city.name,db.city.name,orderby=db.city.name)
but that doesn't work, why not?
So did that take care of it??
On 5/20/2010 4:15 PM, OMAR wrote:
Tim, you were very close.
libssl-dev
-
Massimo,
I went the route of installing distutils so I could easy_install, but
once again was met with an error:
sudo easy_install ssl
Processing ssl
error: Couldn't find a setup s
T3 was a proof of concept. It works but it was written very long ago.
A lot of the T3 functionality is now in web2py. there is very little
reason for using T3.
cube9 does not exist. It is just a temp name for a project. I.e. write
an abstraction layer on top of web2py that would allow to program
w
LOL ... holy cr-p! That's great MDP! There is so much new stuff, I
can't keep up.
On May 21, 12:32 am, mdipierro wrote:
> yes.
>
> from gluon.sqlhtml import AutocompleteWidget
>
> db.define_table('mytable',
> Field('person',db.person,requires=IS_IN_DB(db,db.person.id,'%
> (name)s')),
> ...)
Why don't you just keep a last_activity date? Also, the auth event log
keeps track of the last login automatically. Why not check it to see
what it's doing regarding last login when user has the "remember"
checkbox checked? Technically, if it's checked, they're not logging
in, right? Can you better
On May 21, 8:14 pm, Magnitus wrote:
> Now that you mention it, I recall reading in the Python/C API that
> Python wasn't really thread-safe and that Python objects shouldn't be
> accessed from multiple C threads (they recommended using the Python
> threading API which was exposed in the Python/C
Now that you mention it, I recall reading in the Python/C API that
Python wasn't really thread-safe and that Python objects shouldn't be
accessed from multiple C threads (they recommended using the Python
threading API which was exposed in the Python/C API instead, but that
didn't interest me as it
On May 21, 7:00 pm, Yarko Tymciurak
wrote:
> On May 21, 3:33 am, Magnitus wrote:
>
> > But if you create "tasks" without doing it at the OS level, doesn't
> > that means that you won't really be able to take full advantage of
> > multi-processor hardware (since the OS handles the hardware and i
On May 21, 3:33 am, Magnitus wrote:
> But if you create "tasks" without doing it at the OS level, doesn't
> that means that you won't really be able to take full advantage of
> multi-processor hardware (since the OS handles the hardware and if the
> OS doesn't know about it, it won't be able to do
Hi Massimo,
I'm trying T3 and cube9 (http://code.google.com/p/cube9/) your new
attempt to rewrite T3. I love T3 !
Correct me if I am wrong about this:
The only way to check 'is_admin' at T3 in models/db.py, is:
is_admin=(t2.logged_in and (not settings.administrator_emails or
t2.person_email i
But if you create "tasks" without doing it at the OS level, doesn't
that means that you won't really be able to take full advantage of
multi-processor hardware (since the OS handles the hardware and if the
OS doesn't know about it, it won't be able to do the required
optimizations with the hardware
60 matches
Mail list logo