Andrew,
a solution for sidebar issue is to add span12 class to the section#main
of layout.html in views folder
About the auth nav bar a first solution is to set a specific color because
IE7 ignore inherit. Please add the below two lines at the bottom of
bootswatch.css file in static/css
Andrew,
I, just now, proposed a patch through issue tracker (
http://code.google.com/p/web2py/issues/detail?id=824) that should resolve
the problems with IE7 noted by you. Moreover the auth_navbar is more
compliant with bootstrap (check the image). I tested the new welcome layout
replacing the
JS. After all, we are replacing superfish.
Il giorno domenica 27 maggio 2012 00:06:55 UTC+2, Massimo Di Pierro ha
scritto:
These no record boostrap and the new menu logic is staying in trunk. The
only issue is whether the weird menu structure should be generated by MENU
helper or by the JS
code layout.html
that attempts to reproduce the same effect. It works something is wrong
with alignment and I cannot figure out what. Can you take a look?
Massimo
On Thursday, 24 May 2012 18:16:37 UTC-5, Paolo Caruccio wrote:
Andrew, I played a bit on this subject. Please replace the below
-block;
height: 0;
opacity: 0.7;
vertical-align: top;
width: 0;
margin-right:-13px;
margin-top: 7px;
float:right;
}
Il giorno domenica 27 maggio 2012 12:23:54 UTC+2, Paolo Caruccio ha scritto:
Small patch - not deeply tested - to make the menu working when javascript
is disabled
Do you mean to add a new MENU attribute (i.e. 'bootstrap_menu') like
'mobile' and to switch by menu types?
I think that's a good option.
Il giorno sabato 26 maggio 2012 03:40:26 UTC+2, Massimo Di Pierro ha
scritto:
We can include this in MENU and eliminate the JS. What do you think?
On
.
Massimo
On Saturday, 26 May 2012 08:53:53 UTC-5, Paolo Caruccio wrote:
Here attached the html.py with modified class MENU.
This is only a draft not deeply tested.
Il giorno sabato 26 maggio 2012 03:40:26 UTC+2, Massimo Di Pierro ha
scritto:
We can include this in MENU and eliminate
please try:
db.Register.repliedOn.represent = lambda v, row: v.strftime('%d/%m/%Y
%H:%M:%S') if v else
Il giorno sabato 19 maggio 2012 09:00:37 UTC+2, Annet ha scritto:
In a model I have the following validator:
db.Register.repliedOn.requires=IS_EMPTY_OR(IS_DATETIME(format='%Y-%m-%d
(r):
g = geocoders.Google()
place, (lat, lng) = g.geocode(r.name)
return lng
What I would like to find is a way to fire the execution of a function
when the form is submitted. More or less something like a compute action
at table level.
Regards,
--
Paolo
Hi Niphlod, thanks for your answer.
Actually, I am looking for something that I can put in my model without
touch the code of the forms, e.g., I don't want to change the code of
the admin application to solve the problem.
Paolo
Il 17.05.2012 13:14 Niphlod ha scritto:
The onsuccess parameter
for the latter calls?
Regards,
Paolo
Il 17.05.2012 15:09 Anthony ha scritto:
To get it down to it down to one function, how about:
def compute_geoCode(r, component):
g = geocoders.Google()
place, (lat, lng) = g.geocode(r.name [4])
return eval(component)
db.cities.full_address.compute = lambda r
This is perfect! Thank you very much Anthony.
Paolo
Il 17.05.2012 16:47 Anthony ha scritto:
def compute_geoCode(r, component):
g = geocoders.Google()
place, (lat, lng) = cache.ram(r.name, lambda: g.geocode(r.name [9]),
None)
return eval(component)
Anthony
On Thursday, May 17, 2012 11:44
am not able to set up correctly response.menu in order to
generate html code with that field inside. What I can do?
Best regards
--
Paolo
[1] http://twitter.github.com/bootstrap/javascript.html#dropdowns
I use pyodbc (http://code.google.com/p/pyodbc/) and my connection string is:
db = DAL('db2://DSN=MYDATABASE;UID=userid;PWD=password')
For other details you could read this thread
https://groups.google.com/d/topic/web2py/HMVE9S2a6sQ/discussion
On windows7 I solved the issue by adding to db2cli.ini these rows (replace
MYDATABASE and MYDATABASEALIAS with your data):
[MYDATABASE]
dbalias=MYDATABASEALIAS
LONGDATACOMPAT=1
LOBMAXCOLUMNSIZE=1048575
if you need more info about db2cli.ini go to this page
There is another HTML5 technology to push stream from server to client :
EventSource aka Sent-Server Events (http://dev.w3.org/html5/eventsource/).
Its behaviour is like ajax long polling.
I'm - just now - experimenting a simple mechanism to send to clients a
message when the database changes.
fixed in trunk
http://code.google.com/p/web2py/source/detail?r=25d5f65ce920ed2c6089097122caa7ded3d63d8a
The plugin has all needed libraries to work and not requires that you
install others.
I used it in a my app and worked like a charm.
Give it a try.
try the solution in this discussion
https://groups.google.com/d/topic/web2py/GyQ8_szQFoI/discussion
Happy Holidays.
Maybe this helps
http://jdoe.asidev.com/2009/02/26/configure-web2py-to-run-behind-apache-with-wsgi-mod_wsgi/
no one else has encountered same problem?
ticket http://code.google.com/p/web2py/issues/detail?id=574 submitted
*Scenario*
1. #model db.py
db.define_table('specializzazioni',
Field('specializzazione',
type='string',notnull=True,label=T('Specialization')),
format='%(specializzazione)s',
)
db.define_table('t_valutazione_risorsa',
My fault.
I omitted to say that the error occurs after some options have been
selected and form is submitted leaving empty the text input.
Thank you for your consideration.
Paolo
I already wrote how i fixed the issue (tested only IE9, chrome 15, firefox
8 and Opera 11.60 on windows7) in a previous thread (
https://groups.google.com/d/msg/web2py/AjoKneQCOEA/rFYgbg7GMLAJ).
to correct the ugly display I modified this file
I solved so:
admin\static\plugin_multiselect\jquery.multiselect.css
line 14 becomes
.ui-multiselect-checkboxes { position:relative /* fixes bug in IE6/7 */;
overflow-y:scroll; margin-left:0; width:100%; }
line 16 becomes
.ui-multiselect-checkboxes label input { position:relative; top:1px;
Anthony,
since IE (any version), in some circumstances, has a behavior different
from other browsers, we need to detect it in css rules. So any solution is
good.
Paolo
in div.columns.
So I adjusted the width of the table to that of its container (
div.columns).
To avoid misunderstandings I used the selector .columns in css rules.
Paolo
to it (eggrid_container) and apply to this the css rules.
In other words, if you remove the .columns references it will still work but
the css rules will also apply to all html table elements.
Paolo
Other css rules are related to the specific case and override the general
css rules applied to web2py_grid.
But I'm agreed with you: the best solution is to give a class or an id to
the container div.
Paolo
:
!--[if IE 9]html class=ie ie9 lte8 no-js
lang={{=T.accepted_language or 'en'}} ![endif]--
!--[if (gt IE 9)|!(IE)]!-- html class=no-js
lang={{=T.accepted_language or 'en'}} !--![endif]--
Paolo
{display:inline;margin:0
5px;width:350px;}
.columns table #w2p_query_panel
{left:0;height:26px;bottom:-4px;min-width:539px;}
.columns table #w2p_query_panel input, .columns table #w2p_query_panel
select{margin:2px 10px 2px 5px;}
.columns table #w2p_query_panel input[type=text]{margin:-2px 5px 0 0;}
Paolo
Omi,
please try the following:
in vhost_web2py.conf replace
VirtualHost *:80
ServerName ochiba-183
with
VirtualHost LIP:80
ServerName ochiba-183
where LIP is the server's IP
See for reference my previous post (STEP D)
Let me know if it works.
Paolo
P.S. Moreover what do you think about
I also have no problem.
Windows 7 64bit
Python 2.7 32 bit (64-bit version gave me problems)
Pywin 32-bit
Paolo
Can you provide a packed .w2p web2py application?
Paolo
Bruno,
thanks.
What do you think about the upload mechanism? Can it be translate in a
web2py widget? or is it better to use a different javascript/jquery library?
Regards.
Paolo
of multiuploads.css (before /* CUSTOMIZATION */
comment).
However, I am preparing a packed .w2p web2py small application as required
by Bruno.
Maybe, there you will see something nicer.
Ciao.
Paolo
#pdf:pagenumber printed on {{=tdy}}
/div
/body
### in view print_report.html
{{=A(SPAN(T('print report'), _class='printer_ico'), _href=URL('myreport'),
_class=button)}}
Let me know if this works.
Ciao,
Paolo
some comments in the code and also many errors.
I look forward to your suggestions and opinions.
Ciao.
Paolo
{{response.files.extend([URL('static','css/multiuploads.css'),URL('static','js/jquery.multiuploads.js')])}}
{{extend 'layout.html'}}
{{=form}}
jquery.multiuploads.js
Description
I used succesfully web2py-appreport.
https://github.com/lucasdavila/web2py-appreport
Ciao.
Paolo
to change default class web2py-menu-active to your
preference. In the above example tab_highlighted.
### in base.css (welcome app static/css subfolder)
append the css rule
.web2py-menu-active a, .tab_highlighted a{color:red}
Ciao.
Paolo
Ciao.
Paolo
Well done!
Paolo
Richard, thank you.
Hi Omi,
I wasn't sure this part, so I just add 127.0.0.1 ochiba-183 to my hosts.
Try to replace with 10.30.6.122 ochiba-183
Let me know if it works.
Ciao.
Paolo
I am very glad I helped
Ciao.
Paolo
The result is splendid with your changes.
I want only suggest to replace the row # 1344 in /gluon/sqlhtml.py with this
jQuery('#w2p_query_fields').val('').change();
so the change event is fired and when you query again the .w2p_query_row is
hidden.
Ciao.
Paolo
.
Paolo
On 7 Ott, 21:31, Omi Chiba ochib...@gmail.com wrote:
Paolo,
You gave me a hope because it looks you tried it recently and it's
very similar to my environment. (Is your OS Windows 7, XP, or Windows
Server ??)
My environment:
OS: Windows 7 SP1 - 32bit
Python: 2.7.2
Apache: httpd
I'm glad you like it, but it is necessary to point out that the css rules
must be adapted to single layout. Especially with regard to positioning. As
you can see from the picture, I used as a reference the layout of your
application
issue tracker.
Ciao.
Paolo
The following istructions have been adapted from
http://jdoe.asidev.com/2009/02/26/configure-web2py-to-run-behind-apache-with-wsgi-mod_wsgi/
for my dev enviroment Windows + Apache + mod_wsgi.
I succesfully tested connection to db2 express from IMB through
pyodbc. Maybe it could help you.
I
Hi Massimo,
the problem is modernizr-1.6.min.js,
upgrade to modernizr 1.7
Latest release: 1.7
February 20: Version 1.7 nerfs the WebGL/Chrome9 issue, Opera color
input fix, faster (no release notes yet).
or dont'use modernizr.
Paolo
On Mar 16, 4:33 pm, Massimo Di Pierro massimo.dipie
Hi Massimo,
the problem is moderinizr 1.6
upgrade to 1.7 or don't use it ;-)
Latest release:1.7
February 20: Version 1.7 nerfs the WebGL/Chrome9 issue, Opera color
input fix, faster (no release notes yet).
Paolo
2011/3/16 Ross Peoples ross.peop...@gmail.com
I have been running Chrome dev
601 - 652 of 652 matches
Mail list logo