[web2py] Re: Problem with starting project

2018-11-14 Thread Константин Комков
Stifan, after >>> import fdb debugger showed that error:
'bdb'.run(), line 400: exec cmd in globals, locals
> '__main__'.(), line 1:import fdb 
I installed python and driver on another computer and have that error too.

-- 
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: admin IDE for general use

2018-11-14 Thread lucas
well, I know that web2py is reading a py/txt file and uploading that into 
CodeMirror when the page is loaded to be edited under admin.  then when 
saved it writes it back to the file to update it.

I'd like to get the py/txt from a text field in PostgreSQL table.  and then 
when its saved, it will update that text field in the PG table.  can that 
be done with a web2py object or method that emulates the admin/CodeMirror 
without having to recreate all of the divs and textareas etc that I see 
when I inspect the admin code editor under safari or Firefox?

-- 
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: admin IDE for general use

2018-11-14 Thread Val K


>  I'd like to be able to store and manage their code (text) as a text field 
> under PostgreSQL ...

 ... bring them to a default listing of their previous or current code 
> projects, click on a project or start a new project ..

 
What do you mean under the code project - web2py app or just a python file 
with 'hello world'? And how does these files will be run  - unpacked from 
PG to somewhere on the disk and just run?  
What does it mean 'output as standard HTML'?

I can help you with client-side, but I don't figure out what your back-end 
will look like



On Wednesday, November 14, 2018 at 7:04:43 PM UTC+3, lucas wrote:
>
> ok, I see that CodeMirror is the base editor.  is there a web2py api of 
> some sort that would allow us to inject whatever code, from whatever 
> source, and then save and send that updated code to whatever source?  so 
> that the entire functionality of our web2py editor is still the same and 
> working even with different set, get, and save methods?  Lucas
>

-- 
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: Problem with starting project

2018-11-14 Thread 黄祥
not sure why fdb not listed when you start web2py, think psycopgy2 is 
loaded while fdb is not
perhaps you can test it first in the python environment, if it no error 
occured, then you can use it in web2py app 
*e.g.*
python
>>> import fdb

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/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: admin IDE for general use

2018-11-14 Thread lucas
ok, I see that CodeMirror is the base editor.  is there a web2py api of 
some sort that would allow us to inject whatever code, from whatever 
source, and then save and send that updated code to whatever source?  so 
that the entire functionality of our web2py editor is still the same and 
working even with different set, get, and save methods?  Lucas

-- 
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: Is it possible to share cache between two differente web2py applications?

2018-11-14 Thread Lisandro
I've created a pull request to achieve this:
https://github.com/web2py/web2py/pull/2055

If it's not accepted (which is totally ok with me), I would like to know if 
I have some other alternative.
Thanks!

El lunes, 23 de enero de 2017, 17:29:22 (UTC-3), Lisandro escribió:
>
> I'm using RedisCache, and I've seen that web2py adds a prefix to all the 
> keys I store in the cache.
> For example, if I have an application called "master" and I do this:
>
> config = cache.redis('config', lambda: initialize_config(), time_expire=
> 999)
>
> ... then the actual key used to store the data is "w2p:master:config"
>
> But, what about if I have two applications that need to share the config?
> How can I tell web2py to use the same cache prefix for two specific 
> applications?
>
>

-- 
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: Problem with starting project

2018-11-14 Thread Константин Комков


[image: cmdFDB.png]
As I undarstand I already installed fdb driver.

[image: cmdWEB2PY.png]
But when I start web2py in cmd I don't see that driver. How can I start it?

-- 
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: Column order in SQLFORM

2018-11-14 Thread Yann Dulondel
Works fine now, i'm not a pyhton dev and in dev language(powerbuilder) the 
{} define an array
>From myfields={db.articles.bulk_id,db.articles.dossier,db.articles.
date_sortie,db.articles.conteneur,db.articles.cod_ref}
to myfields[db.articles.bulk_id,db.articles.dossier,db.articles.date_sortie,
db.articles.conteneur,db.articles.cod_ref]
thank a lot
Yann

Le vendredi 9 novembre 2018 16:51:44 UTC+1, Yann Dulondel a écrit :
>
> Hi all
> I have a strange behaviors from view model.
> The columns are not in the same order when reloading page.See the bulk_id 
> column
> I believe that i understood how columns order was setup: inverse order of 
> creation in contoller
>
> myfields={db.articles.bulk_id,db.articles.dossier,db.articles.date_sortie,db.articles.conteneur,db.articles.cod_ref
>  Corresponding colmns title= Bulk_id,Braid reference,Fitting date,numéro 
> de conteneur,numéro de flexi
> First load
> Reloading page
>
>

-- 
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: plugin_jqmobile

2018-11-14 Thread Anthony
On Wednesday, November 14, 2018 at 3:47:33 AM UTC-5, lbjc1...@gmail.com 
wrote:
>
> Following this 
>  
> topic. 
> Are we still not using the plugin?
>

Right. That approach was dead 2.5 years ago and has not been revived since. 
;-)

Bootstrap itself is a "responsive, mobile-first" framework, so it should be 
easy enough to create a site that works well on both desktop and mobile.

Anthony

-- 
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: Column order in SQLFORM

2018-11-14 Thread Anthony
I see you have defined your fields as a Python set object:

myfields={db.articles.bulk_id,db.articles.dossier,db.articles.
date_sortie,db.articles.conteneur,db.articles.cod_ref}

Sets do not guarantee any particular order, and for non-integers, I think 
the order can even change from process to process. Try a list or tuple and 
see if the problem goes away.

Anthony

On Tuesday, November 13, 2018 at 4:58:51 AM UTC-5, Yann Dulondel wrote:

> Code of the grid
> def show_flexlist():
> type_article=request.args(0, cast=int)
> Results=db(db.type_article.id==type_article).select(db.type_article.
> articlename)
> row=Results[0]
> ArticleName=row['articlename']
> response.flash =T('Depot:')+str(auth.user.id_depot)
> request.title=T("Braid Logistics Europe")
> myquery=((db.articles.condi_id==type_article)&(db.articles.depot_id==
> auth.user.id_depot))
> 
> #myfields={db.articles.cod_ref,db.articles.conteneur,db.articles.dossier,
> db.articles.id}
> #myheaders={'articles.cod_ref':T('Flexi 
> Number'),'articles.conteneur':T('Conteneur 
> Number'),'articles.dossier':T('Braid reference'),'articles.id':'ID'}
> myfields={db.articles.bulk_id,db.articles.dossier,db.articles.
> date_sortie,db.articles.conteneur,db.articles.cod_ref}
> myheaders={'articles.bulk_id':T('Bulkhead'),'articles.dossier':T('Braid 
> reference'),'articles.date_sortie':T('Fitting Date'),'articles.conteneur':
> T('Conteneur Number'),'articles.cod_ref':T('Flexi Number')}
> default_sort_order=[db.articles.cod_ref]
> db.articles.cod_ref.writable=False
> db.articles.id_stk_article.writable=False
> db.articles.id_stk_article.visible=False
> links = [lambda row: A(T('View Flexi'),_href=URL(show_flexi,args=[row.
> id,type_article],user_signature=True))]
> flexlist=SQLFORM.grid(query=myquery
>,orderby=default_sort_order
>,deletable=False
>,editable=False
>,details=False
>,maxtextlength=64
>,paginate=25
>,create=False
>,fields=myfields
>,headers=myheaders
>,user_signature=True
>,searchable=True
>,args= [type_article]
>,links=links)
>
>
> #,fields=fields,headers=headers
> return dict(message=ArticleName,flexlist=flexlist)
> Thank for the  format='%(name)s %(id)s')I was believing that was the way 
> to link the display name to the id record
> Once again thank, the web2py is great but the document is not detail 
> enough.But i know that it's take time to provide documentation
> yann
>
> Le vendredi 9 novembre 2018 16:51:44 UTC+1, Yann Dulondel a écrit :
>>
>> Hi all
>> I have a strange behaviors from view model.
>> The columns are not in the same order when reloading page.See the bulk_id 
>> column
>> I believe that i understood how columns order was setup: inverse order of 
>> creation in contoller
>>
>> myfields={db.articles.bulk_id,db.articles.dossier,db.articles.date_sortie,db.articles.conteneur,db.articles.cod_ref
>>  Corresponding colmns title= Bulk_id,Braid reference,Fitting date,numéro 
>> de conteneur,numéro de flexi
>> First load
>> Reloading page
>>
>>

-- 
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: How to work with files in multipart/form-data?

2018-11-14 Thread Константин Комков
Val K, thank you! All work.
If somebody want to upload files using one button use it:
controller:
def loadDocs():
documents = request.vars
for key in documents:
doc = documents[key]
db_app.doc_images.insert(person='{0} {1} 
{2}'.format(session.abit_f,session.abit_i,session.abit_o),file=db_app.doc_images.file.store(doc,doc.filename))
return doc.filename
view:
Прикрепить


$(function() {
var files;
function showLoadDocsInfo(data) {
console.log('In showLoadDocsInfo');
console.log(data);
}
$('#openDialog').on('change', function () {
files = this.files;
console.log('files = '+files);
if (typeof files == 'undefined' ) return;
var data = new FormData();
$.each( files, function(key, value ) {
data.append(key, value);
});
console.log('data = '+data);
jQuery.ajax({
type: "POST",
url: "loadDocs",
data: data,
//enctype: 'multipart/form-data',
cache: false,
processData: false,
contentType: false,
success: showLoadDocsInfo,
error: function(data){
console.log("error");
console.log(data);
}
});
});
$('#btnOne').on('click', function() {
$('#openDialog').click();
});
});




-- 
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] admin IDE for general use

2018-11-14 Thread Val K
See to CodeMirror on which web2py IDE is based

-- 
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] admin IDE for general use

2018-11-14 Thread lucas
hello one and all,

alright, so I have these seniors in college that need to learn some 
programming and I want them to use python and web2py as the development 
platform.  I'd like to be able to store and manage their code (text) as a 
text field under PostgreSQL, but that would be transparent to the students. 
 essentially, I'd like to create a web2py app, allow students to sign up 
and register and have a basic login, bring them to a default listing of 
their previous or current code projects, click on a project or start a new 
project, take them to the IDE, edit and save their code and then run it 
with the output as standard HTML in another tab or window.

to part that I am gray in is how can I insert the code (text) into the 
admin IDE of web2py from the text field, and then save the updated code 
back to the text field when they press Cmd-S to save their code?  I guess I 
don't know how to implement the admin IDE outside of actually being a 
web2py regular admin.

please advise, thank you, Lucas

-- 
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: How to work with files in multipart/form-data?

2018-11-14 Thread Val K
Well, it's strange ... web2py should read filename from passed doc, but it 
seems it does not do it. Try to pass doc.filename as second arg to .store()

-- 
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: How to work with files in multipart/form-data?

2018-11-14 Thread Константин Комков
Controller:
>
> def loadDocs():
> documents = request.vars
> for key in documents:
> doc = documents[key]
> db_app.doc_images.insert(person='{0} {1} 
> {2}'.format(session.abit_f,session.abit_i,session.abit_o),file=db_app.doc_images.file.store(doc))
> return doc.filename
>

-- 
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: How to work with files in multipart/form-data?

2018-11-14 Thread Val K
Show controller code pls

-- 
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: How to work with files in multipart/form-data?

2018-11-14 Thread Константин Комков
doc.filename = flower.jpg
result file in uploads - doc_images.file.94aa36d88e4a9c73.4e6f6e65.txt
I want to get - doc_images.file.94aa36d88e4a9c73.4e6f6e65.jpg

-- 
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.


Re: [web2py] Interacting with Postgres Integer Array Field

2018-11-14 Thread Val K
 See Custom Field types in the book

-- 
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] How to convert my view to pdf

2018-11-14 Thread mostwanted
I have been researching this topic alot because i am trying to achieve 
this, i want to convert my view exactly as it to PDF, i came across some 
information on web2py-appreport but I don't understand exactly how it 
works, maybe its my slow mind, i followed the examples in 
https://github.com/lucasdavila/web2py-appreport/wiki/Docs-and-examples but 
the results are not what i want.

I wanna have a button on my view which when i click converts that view in 
to pdf straight away and have it saved. Is this possible and if so how can 
i achieve it?

(Smiles :) 

Mostwanted.

-- 
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.


Re: [web2py] '<'

2018-11-14 Thread mostwanted
I had to re-create my database from scratch too, i don't know where this 
error came from. Thanks for replying.

Mostwanted

On Wednesday, November 14, 2018 at 11:02:00 AM UTC+2, Lovedie JC wrote:
>
> I used to get such esp. when on of my files was corrupted in the 
> databases. 
> I'd reinstall web2py or delete all files in the databases folder and copy 
> back to the databases folder from a back up folder.
> Hope this helps
>
> On Mon, 12 Nov 2018 at 22:35, mostwanted > 
> wrote:
>
>> I'm pulling my hairs out over this error, it occurred from no where & I 
>> cant make sense of it because i had not made any updates to my code & got 
>> this error
>>
>> Here is the traceback if anyone can figure something out please help me, 
>> thank you in advance.
>>
>> Ticket ID 
>>
>> 127.0.0.1.2018-11-12.20-51-42.a137b4bb-0440-419f-9b79-52ee83d1d6dc
>>  '<'
>> Version
>> web2py™ Version 2.17.2-stable+timestamp.2018.10.06.18.54.02
>> Python Python 2.7.9: C:\warmhandssingleUsers\web2py\web2py\web2py.exe (
>> prefix: )
>>
>> Traceback
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>> 10.
>> 11.
>> 12.
>> 13.
>> 14.
>> 15.
>> 16.
>> 17.
>>
>> Traceback (most recent call last):
>>   File "C:\warmhandssingleUsers\web2py\web2py\gluon\restricted.py", line 
>> 219, in restricted
>> exec(ccode, environment)
>>   File 
>> "C:/warmhandssingleUsers/web2py/web2py/applications/Hotel_Version/models/dbmanagement.py"
>>  
>> ,
>>  line 51, in 
>> format='%(Surname)s, %(Name)s')
>>   File 
>> "C:\warmhandssingleUsers\web2py\web2py\gluon\packages\dal\pydal\base.py", 
>> line 590, in define_table
>> table = self.lazy_define_table(tablename, *fields, **kwargs)
>>   File 
>> "C:\warmhandssingleUsers\web2py\web2py\gluon\packages\dal\pydal\base.py", 
>> line 624, in lazy_define_table
>> polymodel=polymodel)
>>   File 
>> "C:\warmhandssingleUsers\web2py\web2py\gluon\packages\dal\pydal\adapters\base.py",
>>  line 798, in create_table
>> return self.migrator.create_table(*args, **kwargs)
>>   File 
>> "C:\warmhandssingleUsers\web2py\web2py\gluon\packages\dal\pydal\migrator.py",
>>  line 296, in create_table
>> sql_fields_old = pickle.load(tfile)
>>   File "pickle.py", line 1378, in load
>>   File "pickle.py", line 858, in load
>> KeyError: '<'
>>
>> -- 
>> 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+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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: How to work with files in multipart/form-data?

2018-11-14 Thread Val K
Check what does doc.filename look like

-- 
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.


Re: [web2py] '<'

2018-11-14 Thread Lovedie JC
I used to get such esp. when on of my files was corrupted in the databases.
I'd reinstall web2py or delete all files in the databases folder and copy
back to the databases folder from a back up folder.
Hope this helps

On Mon, 12 Nov 2018 at 22:35, mostwanted  wrote:

> I'm pulling my hairs out over this error, it occurred from no where & I
> cant make sense of it because i had not made any updates to my code & got
> this error
>
> Here is the traceback if anyone can figure something out please help me,
> thank you in advance.
>
> Ticket ID
>
> 127.0.0.1.2018-11-12.20-51-42.a137b4bb-0440-419f-9b79-52ee83d1d6dc
>  '<'
> Version
> web2py™ Version 2.17.2-stable+timestamp.2018.10.06.18.54.02
> Python Python 2.7.9: C:\warmhandssingleUsers\web2py\web2py\web2py.exe (
> prefix: )
>
> Traceback
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 8.
> 9.
> 10.
> 11.
> 12.
> 13.
> 14.
> 15.
> 16.
> 17.
>
> Traceback (most recent call last):
>   File "C:\warmhandssingleUsers\web2py\web2py\gluon\restricted.py", line 219, 
> in restricted
> exec(ccode, environment)
>   File 
> "C:/warmhandssingleUsers/web2py/web2py/applications/Hotel_Version/models/dbmanagement.py"
>  
> ,
>  line 51, in 
> format='%(Surname)s, %(Name)s')
>   File 
> "C:\warmhandssingleUsers\web2py\web2py\gluon\packages\dal\pydal\base.py", 
> line 590, in define_table
> table = self.lazy_define_table(tablename, *fields, **kwargs)
>   File 
> "C:\warmhandssingleUsers\web2py\web2py\gluon\packages\dal\pydal\base.py", 
> line 624, in lazy_define_table
> polymodel=polymodel)
>   File 
> "C:\warmhandssingleUsers\web2py\web2py\gluon\packages\dal\pydal\adapters\base.py",
>  line 798, in create_table
> return self.migrator.create_table(*args, **kwargs)
>   File 
> "C:\warmhandssingleUsers\web2py\web2py\gluon\packages\dal\pydal\migrator.py", 
> line 296, in create_table
> sql_fields_old = pickle.load(tfile)
>   File "pickle.py", line 1378, in load
>   File "pickle.py", line 858, in load
> KeyError: '<'
>
> --
> 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.
>

-- 
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] plugin_jqmobile

2018-11-14 Thread lbjc1978
Following this 
 topic. 
Are we still not using the plugin?
I've tried it but it does not work.
I need to have some pages (see below) to be mobile friendly for an app.


{{extend 'layout.html'}}






http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min
.js">



  
 @import url("http:
//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css")




body
{
font-family: Audiowide;
background-image:url("{{=URL('static','images/18.jpg')}}");
}
html,body
{
height:77%;
}
  .carousel-inner > .item > img, .carousel-inner > .item > a > img
{
  width: 60%;
  margin: auto;
  }
  



  
  


  
  
  







  


  {{=A("ASK!",_href=URL("view_searches"))}}
  Ask your heart out! You can even be anonymous here. So grab 
the opportunity!

  


  


  {{=A("READ!",_href=URL("start"))}}
  Read others' questions and the answers!

  
  


  {{=A("My Questions!",_href=URL("manage"))}}
  Your asked questions!

  





  
  Previous


  
  Next

  




Regards

-- 
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.