HI Massimo,
Can you tag R-2.18.5?
Thanks!
Il giorno ven 5 lug 2019 alle ore 07:18 黄祥
ha scritto:
>
> already tried define the length on field constructor and change web server
> because error above refer to rocket.py
> ref:
> https://groups.google.com/d/msg/web2py/2B9B9o151II/UyfREFmlBgAJ
>
>
Hi Massimo,
Il giorno lun 6 ago 2018 alle ore 03:12 Massimo Di Pierro
ha scritto:
>
> Hello everybody,
>
> I released pyDAL 18.08 and web2py 2.17.1
Could you release pyDAL also on Pypi?! We use it in buildroot and the
recipe for downloading it and building it refers to pypi.
Thanks!
> They most
I Jason,
2015-10-11 9:24 GMT+02:00 Jason (spot) Brower :
> I have been thinking, the admin interface could use some fixin' up.
> If I bought the extended licence to some theme, say...
> https://wrapbootstrap.com/theme/wrapkit-responsive-admin-template-WB09280SN?l=e
> or any other there...
> we wou
Dear Developers,
I really would like to use multiprocessing python queue in web2py but
I'm asking for an advice. I googled the forum but cannot find an
answer.
I have a worker process (a can bus message processing daemon) that
actually it's a web2py application that shares a database table with
t
Hi Massimo,
I will look into this. So in the end is definitively possibile to
install web2py core with python distutils and keep the application
outside.
I'll try with having applications in /var/www and serve that with
apache using web2py.
I'll post my results as soon as possible.
Sincerely, A
Hi Massimo,
I'm trying to look at it. I have only a question about permission.
Applications should run in a writable folder such as the whole web2py.
I don't think there is an easy way to give writable permissions to
slices of python sitepackage.
I don't think also web2py could be disjointed to h
Hello List,
I'm trying to understand how setup.py works. It seems to me that it
doesn't work.
There is no web2py binary in system path or somewhere else.
It's a bug or feature?
Thank you!
Sincerely, Angelo
--
Profile: http://it.linkedin.com/in/compagnucciangelo
--
Resources:
- http://web2p
Hi Massimo!
2015-04-11 6:09 GMT+02:00 Massimo Di Pierro :
> All the db operations are on db._timings along with their timings.
> You can do {{=response.toolbar()}} to embed a toolbar to see them all. You
> can log them to a file yourself
>
> open('file','w').write(repr(db._timings))
Poking at the
Hello List,
I'm debugging an application not written by me running in production.
I'm looking for a way to log all db operations to file for a certain controller.
I'm not looking for a global logging of all operations, but only on
controllers of interest.
Is there such a nice feature in web2py?
Dear Massimo, Developers,
I'm in the process of proposing a package for inclusion in buildroot.
Buildroot unfortunately doesn't embrace the concept of rolling release
so and I'm wondering for a solution.
The basic idea is that if I download the buildroot release 2015.02 in
a year or two, it shoul
Hi Massimo,
The realease is not tagget in git. Could you tag it?
Thank you!
2015-04-01 0:27 GMT+02:00 Massimo Di Pierro :
> Also. Thanks to Kathy and Luca for all your GAE tests!
>
>
> On Tuesday, 31 March 2015 17:26:18 UTC-5, Massimo Di Pierro wrote:
>>
>> - welcome app defaults to Bootstrap 3
Hi Massimo,
I just downloaded the src zip and this is the error output:
Traceback (most recent call last):
File "web2py.py", line 18, in
import gluon.widget
File "/home/angelo/Scaricati/web2py/gluon/__init__.py", line 29, in
"You can also download a complete copy from http://www.web
Hi Yannick,
Probably it's a regression with hardcron, if you search the list you
can find several thread about that problem.
I had it several times in the past and simply I gave up using hard
cron in web2py. I ususally use the plain and simple unix cron to
schedule activities!
Sincerely, Angelo
Hi Marcio,
I'm planning to grow the supported mobile devices list in web2py, but the
support right now is fairly extensive.
I got the user agent strings here
http://www.useragentstring.com/pages/Mobile%20Browserlist/ and added at
least one of the devices for each family to the unit test of
gluon/c
The new web2py site is extremely beatiful, clean and professional.
Why make it darker and greener?!
2013/3/15 Massimo Di Pierro
> Somebody suggested web2py.com should look more like http://nodejs.org/
> It would not be difficult to do. Should it be done?
>
> Massimo
>
> --
>
> ---
> You receiv
Hi Rocco!
I think you can open Web2py in Ecplise and lauch it in debug mode.
When you hit the performance penalty, press the pause button and you can
start to debug the design/welcome function!
Angelo
2013/3/15 Massimo Di Pierro
> Strange. Anybody else seeing this?
>
>
> On Friday, 15 March
Please see in Debian the software Douglas Crockford has polluted with that
clause!
http://codesearch.debian.net/search?q=The+Software+shall+be+used+for+Good%2C+not+Evil
Very sad ...
2013/1/30 Bruno Rocha
> “The Software shall be used for Good, not Evil.”
>
> I like it! we should adopt it in w
Thanks Antony,
I think the previous solution is the most simple and clean way to make
multiple updates on Web2py and worked wonderfully. Anyway, thank you for
your intrest!
2013/1/29 Anthony
> On Tuesday, January 29, 2013 4:40:04 AM UTC-5, AngeloC wrote:
>
>> Hi Steve,
>>
>> Great suggestion,
To Massimo,
I think this should be in the book after this
http://web2py.com/books/default/chapter/29/07#One-form-for-multiple-tables
Thanks!
2013/1/29 Angelo Compagnucci
> Hi Annet!
>
> This is freaking awesome and it worked like a charm!
>
> I found a way to add automatical
Hi Annet!
This is freaking awesome and it worked like a charm!
I found a way to add automatically variables to form.vars, hope this helps!
record = db(...).select().first()
for table in [db.table1, db.table2]:
for field in table.fields:
form.vars[field] = record[tabl
Hi guys,
I'm looking for a clean way to make an update on mutiple tables with only
one form and cannot find anything clean/simple searching the mailing list.
Tables could be related (in parent-child relation) or not related at all.
I'm missing something or there is no easy way to do that?
Thank
Hi Massimo,
I think this is a real problem.
In a web2py shell you can do:
rows = db.executesql("select * from charts")
but you cannot do:
rows = db.executesql("select * from charts; select * from charts;")
it raises the error above.
I think the problem is related to multiple resultsets. That
Thanks Anthoni,
Great idea! That works for sure!
Thanks!
Il giorno 17/gen/2013 19:43, "Anthony" ha scritto:
> The "create" action of the grid results in a URL that ends with args
> /new/tablename, so you can do:
>
> if request.args and request.args[-2] == 'new':
> tablename = request.args[-
Hi guys,
I'm trying to insert something into related tables with SQLFORM.grid.
I want the user can see only one form with mixed fields for the various
tables. Tables are related, so I have to insert a record contemporary on
multiple tables. However I want to stick to SQLFORM.grid for the maximum
Any news on this?
2013/1/13 Álvaro José Iradier
> Hi, I get back to this thread again as I recently got a notification from
> the feature request on Sourceforge.I had it nearly forgotten, but I think
> it is still interesting and it looks like the author of Pydev is thinking
> about including t
Hi Massimo,
I think I removed the file from the patches I sent you, but probably I
missed something. That file is absolutely useless right now and all it's
reference could be removed.
Angelo
2012/8/24 Massimo Di Pierro
> I have upgraded to Bootstrap 2.1.0 thanks to a patch by Alec Taylor.
>
>
Wow!
I'll try ASAP, thank you!
2012/8/21 Anthony
> Maybe something like:
>
> class MYIMG(IMG):
> def __init__(self, *components, **attributes):
> if '_src' in attributes:
> attributes['_src'] = mangle(attributes['_src'])
> return super(MYIMG, self).__init__(*comp
Hi guys,
Any advice on howto extend IMG to preprocess url? I simply want to mangle
url before it passed to IMG and this should be done every time an IMG tag
is used.
Thanks!
--
Profile: http://it.linkedin.com/in/compagnucciangelo
--
and
>> for the sake of compatibility with IE.
>>
>> Patch is attached to issue http://code.google.com/**
>> p/web2py/issues/detail?id=896<http://code.google.com/p/web2py/issues/detail?id=896>which
>> I cannot reopen.
>>
>> Hope this helps!
>>
&
cannot reopen.
Hope this helps!
Angelo
2012/8/10 Angelo Compagnucci
> Hi Massimo,
>
> I'm writing it right now to fix ie issues! Please be patient until fixed!
>
>
> 2012/8/9 Massimo Di Pierro
>
>> This may be ok but where do I get bootswatch_ie.css from?
>>
Hi Massimo,
I'm writing it right now to fix ie issues! Please be patient until fixed!
2012/8/9 Massimo Di Pierro
> This may be ok but where do I get bootswatch_ie.css from?
>
>
> On Thursday, 9 August 2012 11:43:28 UTC-5, AngeloC wrote:
>
>> Hi Massimo,
>>
>> I think I cannot complete the boots
Hi Massimo,
I think I cannot complete the bootstrap/web2py css merging in time for 2.0,
it's really a lot of work and I'm a bit busy these days.
Btw, i'm fixing the bug I introduced with issue 896 and I want to share a
thought with you.
Actually, there is no way to maintain a mobile first approa
Kindle and other ebook readers that doesn't support pdf are useless for
viewing technical documents because text is reflowable, always. So blanks
are removed and text is full aligned.
Please don't screw with packtpub, amazon or others, is a common problem
with all reflowable mobile formats.
I hav
with a simple function call or a Settings
> attribute.
>
> On 15 ene, 14:32, Angelo Compagnucci
> wrote:
> > Hi Alan!
> >
> > If you want to test it with a pc simply resize the browser window, when
> the
> > windows is of a certain size, it triggers the responsiv
/1/15 Alan Etkin
> Would it be possible to test it with a desktop pc? I visited the demo
> and found difficult to appreciate the features. Is image and table
> resizing being performed by the plugin?
>
> On 13 ene, 10:51, Angelo Compagnucci
> wrote:
> > Hello list,
> &
There is really such an intrest?
I'm using eclipse+pydev everyday and overcomed the trickery to get code
completion working, it's really good ide. I think there is major need to
provide support for pydev than a closed source ide.
They are a company that sells a software, and if they don't want ou
I'll try as soon as possible, nice work!
Thanks!
2012/1/13 Mariano Reingart
> FYI
>
> I'm working on a enhancement to Pdb, wich could be used from a remote
> terminal to any server (and in the near future, with a nice visual
> IDE):
>
> http://code.google.com/p/rad2py/wiki/QdbRemotePythonDebugg
.
This is a patch:
web2py.css
25c25
< img { border: 0; }
---
> img { border: 0; max-width: 100%; }
2012/1/13 Angelo Compagnucci
> Hello list,
>
> I want to share with you my new plugin (aiming to web2py inclusion!),
> responsivekit, you can find it on github
> ht
Hello list,
I want to share with you my new plugin (aiming to web2py inclusion!),
responsivekit, you can find it on github
https://github.com/angeloc/web2py-responsivekit.
Responsivekit implements responsive tables and responsive images using the
best known techniques at the moment (I'm basing on
HI guys,
I'm trying to use PluginManager in a module, but I get very strange errors
runtime. Settings I define on PluginManager are empty and I cannot find a
location in the code where it works!
Can you send me a simple example on howto use PluginManager in a module, a
simple dummy module? The mo
I made something with:
http://www.jqplot.com/
Great library, You can feed datas in json, so it's very easy to interface
with a json service in web2py. Unfortunately it has a convoluted
documentation, you'll get some time to be acquainted to.
http://raphaeljs.com/
Exterminated graphic library, no
Yes, you are right, the approach is messy.
So the best way could be something like a module. The image URL is passed
as an argument, the module crunch the image and returns the correct URL.
So in code you have to write something like:
IMG(_src=responsive(URL('static','image.img')),_alt='test')
Thanks Anthony,
Ok, this way I have to play anyway with urls. I'll try another approach.
There is a way to rewrite the page after rendering, just before the page
will be sent to the browser?
This way we can analyze img urls, resize images accordingly, and rewrite
the new ones.
What do you tink?
Thanks Bruno,
These not solve my problem! To use thumbor, I have to prepare links using a
special syntax, that is what I want to avoid. If I wanted to change links I
would have done using responsive design tecniques and my own webserver!
@Antony:
I know sencha and it adopts an approch like the on
Hi guys,
For a web application, I have to implement a sort of responsive design for
images. There are tons of solution online, but they requires to use some
sort of javascript and custom html to work (insert special tags or classes
in code). I don't like the approch because it make the code unmain
Hi guys,
I made a plugin to render as responsive all web2py tables. It uses a
combination of css media queries and javascript to accomplish the goal. You
can find it on my github:
https://github.com/angeloc/web2py-responsive-tables
It's far from perfect, I'm open to suggestions!
Sincerly,
Ange
I made some test and successfully packaged web2py!
There is only a caveat, that unfortunately makes useless python-for-android
right now:
"If you want to use it without kivy module (an opengl es 2.0 ui toolkit),
then you might want a lighter java bootstrap, that we don't have right now.
Help is w
>From my understanding, it could be possible to make an apk complete with
python, libraries and web2py.
I'm setting up a dev env!
2012/1/9 Massimo Di Pierro
> would python-for-android make it possible to create and apk?
>
> On Jan 9, 2:23 am, Angelo Compagnucci
> wrote:
I'll try as soon as possible!
I've previously used sl4a + python and web2py works flawlessy, but it a bit
difficult to setup, it cannot be done by a newbie like installing an apk!
2012/1/9 Marco Mansilla
> El Mon, 9 Jan 2012 00:08:09 -0200
> Bruno Rocha escribió:
>
> > Look this project
> >
>
I can suggest you http://code.google.com/p/pts-mini-gpl/wiki/StaticPython
It's a statically compiled version (and runtime) of python, you can drop it
in web2py folder and write a script that starts
./python web2py.py
In this way you have not to fight with rpm packing (I made several packege
r to allow secured logins. But I wouldn't use to for web
>> services (as I cannot trust it to work with command line clients), and
>> avoid it for web payments (it's not insured at all).
>> I have no idea if the none free edition of startssl.
>>
>> On De
This on is free and it works well
http://www.startssl.com/?app=1
They make simple validation, the certificate is ready in minutes and the
certificate is a fully featured one!
I use it!
2011/12/22 Massimo Di Pierro
> Any advice on where to buy a chap ssl certificate?
>
> Please advice ONLY abo
I bought it!
Wonderful!
2011/12/17 Alan Etkin
> > I did not understand that point. What did you mean?
>
> Ok, now i get it:
>
> Do not download if other customer has not reported back yet
>
> And the watermark has to be the text in the footer.
>
--
Profile: http://www.gild.com/compagnuccian
> > > wrote:
> >
> > > > Would be really nice if you could hack the jeditable in inject.js so
> > > > that when clicking on an image one could edit the src and when
> > > > clicking on a link one could edit the href as well as the content.
> > &
Massimo, I'll hack on this, but first I prefer to give a finishing
touch to mobile admin, there are still som rough edges!
2011/12/10 Massimo Di Pierro :
> I thought I posted this trying again...
>
> http://web2py.com/examples/static/web2py_manual_4th.cut.pdf
>
> The first 130 pages of the boo
Totally insane! I'm astonished!
This could be really useful for a project I'm working on, it's really
what I'm looking for!
Thank you!
2011/12/10 Massimo Di Pierro :
> I wrote this code which could be used to create a CMS.
>
> The app basically asks for the URL of any existing pubic page. It all
I think there is no way, it's statically compiled by the way!
2011/12/7 Ross Peoples :
> Great find Angelo! Would things like Cython and other CPython extensions
> (.so) work with StaticPython (obviously they would need to be built for the
> platform)?
--
Profile: http://www.gild.com/compagnuc
If you want to make your web2py application completely portable on
Linux, Mac OS X and FreeBSD you can use StaticPython:
http://code.google.com/p/pts-mini-gpl/wiki/StaticPython
>From the homepage:
"StaticPython is a statically linked version of the Python 2.x
(currently 2.7.1) and 3.x (currently
These slides are really intresting, an english version sould be a must!
2011/12/5 Alan Etkin :
> I think that large python files turn difficult to read (specially if
> you are contributing to the code)
>
> Here are some recommendations for big sites/apps (in spanish) by
> Martín Mulone:
>
> http:/
Yes it's fixed and the new skin is really slick!
Great Massimo!
2011/12/4 Massimo Di Pierro :
> I believe this is now fixed. Please check it.
>
>
> On Dec 3, 5:04 pm, Angelo Compagnucci
> wrote:
>> Yes, I can confirm there is a bug.
>>
>> With this model
Yes, I can confirm there is a bug.
With this model:
db.define_table('testdb',Field('test','datetime', requires=IS_DATETIME()))
I have this html using SQLFORM:
[...] [..]
class should be datetime, not string!
2011/12/3 Carlos :
> Hi,
>
> Is DATE widget broken in trunk?.
>
> Previously when I
There is an error on line 214 of gluon/contrib/user_agent_parser.py,
should be:
dist=['WindowsMobile'], flavor=None
2011/11/30 Bruno Rocha :
> I just removed the {{is_mobile=request.user_agent().is_mobile}} from the
> */layout views and admin controller
>
> it worked..
>
>
> On Wed, Nov 30, 2011
/30 Javier Quarite :
>
>
> On Tue, Nov 29, 2011 at 6:40 PM, Angelo Compagnucci
> wrote:
>>
>> I almost done the admin mobilization!
>>
>> I have to get rid of an error on design.html, when done, I'll send you
>> patches!
>>
>> Thanks!
>>
I almost done the admin mobilization!
I have to get rid of an error on design.html, when done, I'll send you patches!
Thanks!
2011/11/29 Angelo Compagnucci :
> I'm astonished,
>
> I'm trying to use admin from my rly old htc g1 with android
> and it's tota
lf and if I find the response by myself, i'll send you my patches!
Thank you!
2011/11/28 Massimo Di Pierro :
> No
>
> On Nov 28, 1:48 am, Angelo Compagnucci
> wrote:
>> Great!
>>
>> I'll work on it a soon as possible!
>>
>> Are you using the Auto-ini
Great!
I'll work on it a soon as possible!
Are you using the Auto-initialization of form elements ?
Thanks!
2011/11/28 Massimo Di Pierro :
> I could use some help. In trunk there is code for mobile admin.
>
> That means that if you visit admin from a mobile device it will use
> jquery.mobile. T
It give this error:
Traceback (most recent call last):
File "/home/angelo/DEV/web2py-dev/gluon/main.py", line 493, in wsgibase
serve_controller(request, response, session)
File "/home/angelo/DEV/web2py-dev/gluon/main.py", line 187, in
serve_controller
environment = build_environment(re
obile.
>
> Or are you thinking about something else?
>
> I would like to have a version of admin (or perhaps a better wizard)
> based on jquery mobile.
>
> On Nov 18, 4:26 am, Angelo Compagnucci
> wrote:
>> This should be absolutely in web2py!
>>
>> 2011/1
This should be absolutely in web2py!
2011/11/18 Massimo Di Pierro :
> http://jquerymobile.com/blog/2011/11/16/announcing-jquery-mobile-1-0/
--
Profile: http://www.gild.com/compagnucciangelo
Register on Gild: http://www.gild.com/referral/compagnucciangelo
It totally rocks!
2011/11/9 David Watson :
> Sorry, I found it:
>
> http://groups.google.com/group/web2py-developers/browse_thread/thread/d9c3698044c4902f/8eb26098b55388d3?lnk=gst&q=bootstrap#8eb26098b55388d3
>
> On Nov 9, 12:47 pm, David Watson wrote:
>> On Sep 26, 5:43 pm, Bruno Rocha wrote:
>
Yes, it is the method used by the @mobilize decorator!
2011/9/13 Rufus :
> In fact, view reselect might be nicely handled in a decorator
> function!
>
> Just decorate those functions that require multiple views (like mobile
> versus normal)
> It could modify the view name for the correct view file
Hi Martin,
The first time you download the source you can use:
hg clone https://code.google.com/p/web2py/ web2py-dev
Getting the latest version is really a matter of typing:
hg pull -u
into the web2py-dev folder!
2011/9/13 Martin Weissenboeck :
> Ok, I have to wait for the nightly built :-)
Hi Martin,
You are right, but the previous trunk version it worked.
Massimo, could you enlighten us?
Thanks!
2011/9/13 Martin Weissenboeck :
> Hi,
>
> I have tried to test the user_agent_parser. At the top of default.py there
> is
>
> from gluon.contrib import user_agent_parser
>
> @mobilize
>
I think that the extension should match the content, it's more clear.
For a json object I'm expecting a .json, an xml should have an xml
extension and so on. So for the mobile view I think the best is to
have a .mobi extension, but this is IMHO.
Also using the .mobile.html could be viable, becaus
a lot of proposals how to change every view from .html to
> .m.html if is_mobile is true.
> Now I am a little bit confused: what would be the best code following if
> ua.is_mobile...?
>
> 2011/8/29 Angelo Compagnucci
>>
>> Hi Martin,
>>
>> In trunk the cor
Now I am a little bit confused: what would be the best code following if
> ua.dist.is_mobile...?
> Regards, Martin
> 2011/8/28 Massimo Di Pierro
>>
>> I have no objection.What do others think?
>>
>> On Aug 28, 10:53 am, Angelo Compagnucci
>> wrote
HI Ross, Massimo,
I wrote a small decorator to use the newly added is_mobile flag:
class mobilize(object):
def __init__(self, func):
self.func = func
def __call__(self):
from gluon import current
if current.session._user_agent:
if current.session._user_
I think that some of this should be included in web2py!
Great work!
2011/8/26 Massimo Di Pierro :
> WOW. fantastic!
>
> massimo
>
> On Aug 26, 11:35 am, kenji4569 wrote:
>> Hi, I've just published a collection of plugins which I'd created for
>> some web2py products (mainly cms sites) in my job:
Hi Ross,
I have explained myself too convoluted!
You are right on is_mobile and polymorphism, I read too
approximatively the code.
You are right also on attch always the is_mobile True/False to the
result object, is more simple to test for true false than that if
exists or not.
I hope it will b
if self.is_mobile:
result.is_mobile = \
result[self.info_type].is_mobile = self.is_mobile
return True
return False
2011/8/24 Angelo Compagnucci :
> Hi Ross,
>
> I thought deeply on the implication on using the dist object. There
&
Hi Ross,
I thought deeply on the implication on using the dist object. There
are many points in favour:
1) Only dist object could be mobile ones from the code, Android -
Iphone - Ipad are all dist objects.
2) If you want to detect Windows Mobile in a near future, you'll
create a new dist object r
gt; > thing?
>> > Usage:
>> > import contrib.user_agent_parser
>> > user_agent_parser.simple_detect(request.env.http_user_agent)
>> > By the way, didn't you add something to the Google Issues page for the
>> > proposal saying you were getting an error
Hi Ross,
Thank you for the info, it's really a good suggestion.
I'll try to add a variable like is_mobile, becase all informations
about browser and versions are already present in your code.
I think however that the Bruno's approach is really awesome. It's
really simple using the decorator, and
Thank you!
It works like a charm!
I'll keep you informed if I find anything!
Thank you!
2011/8/23 Ross Peoples :
> I just submitted a patch for inclusion into the trunk. It includes the
> change you mention, and includes a few other fixes, including a fix to the
> simple_detect() method that wo
Hi Ross,
I'm looking into your user_agent_parser.py but I cannot find something
like the mobile detector.
I'll explain better. With user_agent_parser.py you can look for
browser version and os version, but there isn't an easy way to dectect
if a browser is mobile or not, or I'm missing something?
thing like this:
def checkWords(self, agent):
for w in self.skip_if_found:
if w in agent:
return False
if self.look_for in agent: <
return True
return False
Whith this fix it works for me!
Bye!
2011/8/23 Angelo Com
Hi list,
I'm using user_agent_parser.py from the latest stable version.
I have this user agent:
"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0"
I cannot understand why the code looks for the Opera user agent (I
have not read carefully the code) but it fails with this er
/18 Massimo Di Pierro :
> in trunk we upgraded to the latest rocket is the problem with the
> previous or the current version?
>
> On Aug 18, 7:39 am, Angelo Compagnucci
> wrote:
>> Hi Michele,
>>
>> I think tihis is a rocket problem. The size of the packet (only
>> What size in bytes the packet has?
>>
>> Is MTU/MRU of your server correctly configured for that packet size?
>>
>> Consider that HTTP headers may well be big enough to break things in a
>> small packet.
>>
>> ciao,
>> mic
>>
>> 20
Hi list,
I'm using web2py for a microcontroller project and I'm facing a really
strange problem.
This microcontroller (a modified arduino with an enc28j60) can accept
only one tcp packet a time, because the packet fills the ram and so it
freezes the micro.
The pages it can process are to be small
You are absolutely right!
I'm aware of the generic view issue, but I've completely forgotten!
Thank you very much for your help!
2011/8/16 Ross Peoples :
> I should probably clarify "why" this is happening. The line I mentioned
> checks to see if the client is running on the localhost (i.e. the
Hello,
To enforce full CRUD permissions on a table, I have to manually add
"read", "select", "create", "update", "delete" permissions to
auth_permission table or there is a way to assign all permission with
a single shot?
In the same way, if I want a user with super admin rights on all the
tables
/7/21 Massimo Di Pierro :
> You can just call row.data.date() instead of row.data when you need
> the value.
>
>
> On Jul 21, 10:49 am, Angelo Compagnucci
> wrote:
>> Thanks Massimo!
>>
>> So I must traverse the list at least one time. I dont know how much
>> time
but this does
> def getcommentsbydate():
> rows = db(db.test).select(db.test.data.comment, db.test.data)
> for row in rows: row.data = row.data.date()
> return dict(rows=rows)
>
> On Jul 21, 8:06 am, Angelo Compagnucci
> wrote:
>> Sorry for being retarted!
>&
Sorry for being retarted!
I have this:
db.define_table('test', Field('comment','string'), Field('data','datetime'))
but the function:
def getcommentsbydate():
rows = db(db.test).select(db.test.data.comment, db.test.data.date())
return dict(rows=rows)
throws an exception complaining that
Thanks Massimo!
2011/7/21 Massimo Di Pierro :
> it would be much easier to just provide a function row.field.asdate()
> or row.field.astime()
How this could be done? Give me an hint and I'll procede by myself!
Thank you!
Hello list members,
sometimes is useful to exctract the date or the time from a Filed
object without traversing the rows returned by a select statement.
I provide an examlpe:
db.define_table('test',Field('data','datetime'))
def getdates():
rows = db(db.test).select(db.test.data.date())
re
> that "dirty hack" fails for the MSSQL adapter in 1.97.1:
Well yes, I called it a dirty hack!
I'm looking for a function to extract date and time from a datetime db
side and I think I found one for every database supported by the DAL,
I'm in the process of review my research.
I'm intrugued in t
versions.
> Hmmm... that means I have never came across the need for those
> functions.
>
> If you are only working with SQLite then adding date() or time() would
> not be hard and they seem like sensible options. Maybe even add them
> to other adapters as well.
>
> Is the
Sorry for being pedantic!
I made an empty application with only a table in the model defined as:
db.define_table('test',Field('data','datetime'))
and inserted some datetimes.
then I made a method in the controller:
def getdata():
rows = db(db.test).select()
return dict(rows=rows)
and
1 - 100 of 113 matches
Mail list logo