On Monday, April 7, 2014 3:57:12 PM UTC-7, Trent Telfer wrote:
>
> Just in case someone might find this useful I was download Bank of Canada
> FX information and scrubbing the information for injection into a database
> with DAL. See code below:
>
>
Cool! Thanks for sharing!
/dps
> import c
Just in case someone might find this useful I was download Bank of Canada
FX information and scrubbing the information for injection into a database
with DAL. See code below:
import csv
import requests
import datetime as dt
from datetime import timedelta
from datetime import datetime
import os
i
I am attempting to build a small webpage that takes some pricing data from
a few external sources and displays it on one concise page (a dashboard of
sorts). My problem is I have 38 timeseries to input in the database and I
am hoping someone here can suggest a way around writing multiple
define
i think you can achieve it using form validation on your controller
e.g.
if form.errors.name:
response.flash = "Sorry chap, that doesn't exist"
best regards,
stifan
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
had you already try to define the linked_table explicit in your smartgrid?
e.g.
linked_tables = ['detail']
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/lis
>
> 1) when the form is accessed some of the fields should already contain a
> hint which is not necessarily the default value of the field
>
i think you can achieve it using default
e.g.
table.registration_date.default = request.now
> 2) the user should select a value from a drop-down list
Well, I think that style element with the src attribute in order to link an
external stylesheet works only in XHTML2. Definitely it does not work when
html5 doctype is applied and the current welcome app layout is in html5.
I will open an issue, asking to correct the example in the book.
Il gio
Something like:
import os
import pandas as pd
data = pd.read_csv(open(os.path.join(request.folder, 'static',
'path/to/data.csv'), 'r'))
Anthony
On Monday, April 7, 2014 4:49:19 PM UTC-4, ArtDijk wrote:
> I want to do some pandas analysis on a csv. I've manually put the file in
> the '/static'
I want to do some pandas analysis on a csv. I've manually put the file in
the '/static' folder.
Later I want to show a plot based on the analysis.
What should be the correct syntax to load the csv file in the default.py ?
Thanks
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documen
hi,
i would do the follow:
1) in model use compute to create image form base64 string:
db.define_table('user_images',
Field('my_image', 'upload', label=T('My Image'), compute=lambda r:
create_image_from_base64_str(r.my_image_b64)),
Field('my_image_b64', 'text')
)
def create_image_from_b
Please make more conferences in more locations, maybe next year, I would
have liked to attend, but it's to far, plus there's no more room. I look
forward to the videos.
El lunes, 3 de marzo de 2014 09:36:29 UTC-6, Massimo Di Pierro escribió:
>
> We have a date, a location, and a web site:
>
>
Si!
Invece di:
ajax('{{=URL('AllegaNuovoFile')}}',['txtIdCarico','pathCompleto'],'target')
usa:
ajax_page('POST', '{{=URL('AllegaNuovoFile')}}',['txtIdCarico','
pathCompleto'],'target')
and from:
def AllegaNuovoFile():
...
response.flash = "Word done!"
# or response.js = "..
hey, is there any way in which i can flash this message (like
response.flash)?
On Monday, 19 December 2011 06:10:09 UTC+5:30, ニコノコ wrote:
>
> IS_IN_DB(db(db.mytable.id>0), 'mytable.id', db.mytable._format
>
> ,error_message=T("Sorry chap, that doesn't exist"))
>
>
> You may specify your own error
On 3 Apr 2014 at 20:58:41, Massimo Di Pierro (massimo.dipie...@gmail.com) wrote:
Registration is closed. We exceeded room capacity. We have sponsors,
volunteers, talks proposals, and a lot of work ahead of us. It is going to be
great.
We will do our best to record everything.
‘… record everythi
Hi, I'm a web2py newbie and I'm developing my first app.
In my app I have a database containing a table with many fields. I would
like to create three different forms to add rows to the table.
Each one of these forms should help the user to fill the data corresponding
to a special situation.
This
Hello Everyone,
Here at Mangopay we serve and assist all european based company to process
there payments through a simple API.
Please check our transparent pricing and dedicated
website: http://www.mangopay.com/
Also, feel free to contact me for any enquiry: sa...@mangopay.com
All best wishes
Hi,
I'm learning web2py and just messing around...
I have a static file: css/style.css
It contains: h1 {color: red;}
When I make a simple view with an h1 block, my stylesheet gets applied if I
put:
{{=LINK(_rel="stylesheet", _type="text/css", _href=URL('static',
'css/style.css'))}} in
Salve a tutti,
vorrei sapere se è possibile avere un feedback di fine esecuzione
istruzioni della funzione richiamata in default.py.
Mi spiego meglio. Ho creato tutta una serie di pagine html in cui, per
esempio, ho necessità di salvare degli allegati in un database creato in
mysql.
All'in
The problem is that there are no field explicitly defined for that link.
It appears automatically when I enable record_versioning.
On Monday, April 7, 2014 2:49:00 AM UTC-4, Johann Spies wrote:
>
>
>
>
> On 4 April 2014 00:01, Seth J > wrote:
>
> Hi guys,
>>
>>
>> As you can see there's "Work l
El Mon, 7 Apr 2014 05:17:31 -0300
Marco Mansilla escribió:
> El Tue, 25 Mar 2014 16:37:46 -0700 (PDT)
> Tim Richardson escribió:
>
> > try this
> > https://github.com/timrichardson/web2py_ckeditor4/releases/download/R-0.3/web2py.plugin.ckeditor.w2p
> >
>
> Hi, I'm having a really hard struggl
I would have the something similar for birth date with no year for user
privacy on their age...
Richard
On Sun, Apr 6, 2014 at 6:24 AM, Pearu Peterson wrote:
> Hi,
>
> In a form I'd like to have a field that contains month and year
> information, only. The current date picker (via using IS_DATE
+1 definitely
2014-04-07 13:53 GMT+02:00 puercoespin :
> I think Mozilla Persona (http://www.mozilla.org/en-US/persona/) may be an
> interesting sign in technology in web2py.
>
> There are lot of plugins for python frameworks, in
> https://developer.mozilla.org/en-US/Persona/Libraries_and_plugins
I think Mozilla Persona (http://www.mozilla.org/en-US/persona/) may be an
interesting sign in technology in web2py.
There are lot of plugins for python frameworks,
in https://developer.mozilla.org/en-US/Persona/Libraries_and_plugins,
may be an web2py plugin would be interesting. What do you th
After all the pain learning d3 and angular i discovered d3js directives for
angular.
using them inside web2py is easy
check one of them here about the line chart
http://cmaurer.github.io/angularjs-nvd3-directives/line.chart.html
2014-04-05 20:11 GMT+01:00 Martina Gruber :
> Hi Sihui,
>
> Just
In PHP you post SQL queries as strings to the DB backend.
If you want you can do that like:
db.executesql("SELECT * FROM table WHERE field IN (1,2,3,4,7) AND
field2='3'") but you loose much of the benefits of using DAL, for
instance query portability.
mic
2014-04-07 4:20 GMT+02:00 Cliff Kachinsk
El Tue, 25 Mar 2014 16:37:46 -0700 (PDT)
Tim Richardson escribió:
> try this
> https://github.com/timrichardson/web2py_ckeditor4/releases/download/R-0.3/web2py.plugin.ckeditor.w2p
>
Hi, I'm having a really hard struggle with this, and so far I am really
sure that is not a ckeditor plugin error,
Thank you Johann, that worked for me.
On Monday, April 7, 2014 4:52:34 PM UTC+10, Johann Spies wrote:
>
> On 7 April 2014 08:21, chris_g > wrote:
>
>
>> How do I use IS_MATCH for field validation if the field only contains
>> data?
>>
>> This works for me:
>> IS_MATCH('^\d{10}', extract=True, err
27 matches
Mail list logo