[web2py] Application packaging training in hyderabad

2016-12-04 Thread Info Cim
Tech Repack online training is best in providing Application Packaging 
Online Training, software Application packaging training in hyderabad 
 packaging online training. Contact : 
+91 8374805705.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Exception: Server address not specified

2015-08-04 Thread info
In [1] : from gluon.tools import Mail
In [2] : mail = Mail()
In [3] : mail.settings.server = 'smtp.gmail.com:465'
In [4] : mail.settings.sender = 'x...@gmail.com'
In [5] : mail.settings.login = 'x...@gmail.com:yyy'
ALTERNATIVELY: I used [5] : mail.settings.login = 'xxx:yyy'
In [6] : q=mail.send('t...@zz.com', 'Message subject', 'Plain text body of 
the message')
Traceback (most recent call last):
  File /home/mmb21167/web2py/billionlaw/gluon/contrib/shell.py, line 235, 
in run
exec compiled in statement_module.__dict__
  File string, line 1, in module
  File /home/mmb21167/web2py/billionlaw/gluon/tools.py, line 437, in send
raise Exception('Server address not specified')
Exception: Server address not specified

This seems to be right out of the book. Running on Python anywhere.Am I 
missing something

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: smartgrid - display linked_tables link as a dropdown button instead

2015-07-06 Thread info
Hello,

I have 7 actions per row so it would be great to have actions dropdown.
Please find attached patch for bootstrap theme.
for Version 2.11.2-stable+timestamp.2015.05.30.16.33.24



On Thursday, January 17, 2013 at 11:14:59 PM UTC+2, Jim S wrote:

 I have a number of smartgrids built where the number of linked tables is 
 pushing the other edit/delete buttons off the right of the page.  I'm 
 wondering if there is a simple way that I've missed where you can put your 
 linked_table links into a dropdown button of different 'actions' you could 
 perform on the row.  Seems like this should be easy with the fancy twitter 
 bootstrap buttons available.  Also, can I override the default buttons 
 (display/edit/delete) with some twitter bootstrap buttons?

 Should this be an enhancement request?


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--- a/gluon/sqlhtml.py
+++ b/gluon/sqlhtml.py
@@ -1967,7 +1967,8 @@ class SQLFORM(FORM):
  cache_count=None,
  client_side_delete=False,
  ignore_common_filters=None,
- auto_pagination=True):
+ auto_pagination=True,
+ dropdownactions=False):
 
 formstyle = formstyle or current.response.formstyle
 
@@ -2755,6 +2756,21 @@ class SQLFORM(FORM):
 callback=url(args=['delete', tablename, id]),
 noconfirm=noconfirm,
 delete='tr'))
+
+if dropdownactions:
+from gluon import BUTTON
+row_buttons = DIV(
+BUTTON(T('Action'), SPAN(_class=caret),
+   _class=btn dropdown-toggle,
+   _href=#,
+   **{'_data-toggle': 'dropdown',
+  '_aria-expanded': 'true'}
+   ),
+UL([LI(_btn) for _btn in row_buttons],
+   _class=dropdown-menu),
+_class='dropdown'
+)
+
 if buttons_placement in ['right', 'both']:
 trcols.append(row_buttons)
 if buttons_placement in ['left', 'both']:



[web2py] Re: fillable pdf forms

2015-06-26 Thread info
Very true, and Ive loaded it  

I run the standard example and get this in response:

class 'subprocess.CalledProcessError' Command '/usr/bin/pdftk 
https://mmb21167.pythonanywhere.com/IW_Test/static/bk_forms/sch_a.pdf 
fill_form /tmp/tmpwwY6xU output /tmp/tmpDT0sFG' returned non-zero exit 
status 134

Any idea why it would be overwriting free memory?

On Friday, June 26, 2015 at 8:02:38 AM UTC-4, Massimo Di Pierro wrote:

 I looked at the source code of pypdftk and it does not appear to depend on 
 windows. It does require pdftk installed under /usr/bin/pdftk

 On Thursday, 25 June 2015 15:19:57 UTC-5, Mark Billion wrote:

 I would like to fill a form with an FDF dict, i.e, form.pdf % 
 {element:data}.  I have seen a lot on pypdftk, but I think it requires a 
 MS system as a dependency. Any alternatives? 



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] represent for SQLFORM.grid

2015-06-09 Thread info
Hello,

The represent works fine for grid view but 
I need to apply represent function for the add, edit forms.

db.product.price.represent = lambda x, row: current.currency.format_price(x)

Inside html template I use {{=form}}
as well as {{=form.custom.widget.price}}

Thank you for the help.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Static per template

2015-06-01 Thread info
Hello all,

Thanks for the great framework.

I have a question:
How would I achieve the setup,
assume we have different templates:

  /views/template1
  /views/template2
...

so I can switch between templates just passing variable of the template 
name.
(ex: current.config.template_folder)
How could I use static/ per template (not shared as we have by default)?
Example:
   /views/template1/static/css
   /views/template1/static/js
   /views/template1/static/images

Thanks.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] SMARTGIRD is it possible to have a lambda function in LINKED_TABLES?

2014-04-05 Thread info . abicos
Hello,

I'd like to give access to a subtable only if there is something to see in 
it (this is of course depending on the main table).

So, I tried this which does not...

myform = SQLFORM.smartgrid(db.my_main_table, 
linked_tables=dict(my_main_table= *lambda row:* ['my_sub_table'] if 
*my_counting_function*(row.my_main_table.id)  0  else  [''])

*my_counting_function* just returns 1 if I have at least one depending 
record in my_sub_table, else 0.

Thanks in advance for any suggestion to correct my synthax (I'm a newby 
with web2py) or for any turnaround.

Serge

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.