[web2py] MongoDB

2018-11-09 Thread lbjc1978
I keep getting this information on my terminal. WARNING:pyDAL:Attributes 'required', 'cache' and 'cacheable' are unsupported by MongoDB Enter code here... How can I solve it? Regards -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (S

[web2py] Mongodb Error

2018-10-30 Thread lbjc1978
I'm trying to use MongoDB for the first time. I looked at this link as one of the guidance. but ended up with an error. My code below: from gluon import current from pymongo import MongoClien

[web2py] Problem with codification in web2py+mongodb

2017-02-17 Thread Yasmany Yantalla
I am using web2py version 2.14.6-stable + timestamp.2016.05.10.00.21.47 with mongodb version 2.6, when using the fields list: string these are inserted correctly in the database but when they are modified they change coding eg [u ' Zxcvzxc '], [u'zxc'], [u'vzxcv '], [u'zx'], [] Sorry for my E

[web2py] mongoDB dal adapter and dbref

2016-04-21 Thread luis . valladares
Hello! I've been looking in web2py book and in pydal documentation searching information about the implementation of mongo database reference (https://docs.mongodb.org/manual/reference/database-references/) but didnt find anything. This is implemented in some way by pyDAL? Thanks for your help

[web2py] Mongodb api reference

2015-05-09 Thread Alan Etkin
I'm bringing to the list some new user's questions It will b nice to document all the DAL syntax n equivalent pymongo api. Not sure what he meant, but documenting the pymongo api makes little sense (it is already documented by the authors). IMO we should instead document the way of accessing

[web2py] Re: web2py-mongodb-engine

2015-05-07 Thread Ron Chatterjee
Thank you Alan and Massimo and others. I didn't realize mongodb adaptor support reference field. My bad. Thanks for all the help guys. On Thursday, May 7, 2015 at 9:59:58 AM UTC-4, Alan Etkin wrote: > > I did not check the django app code but if you want to handle embedded > json objects you s

[web2py] Re: web2py-mongodb-engine

2015-05-07 Thread Alan Etkin
I did not check the django app code but if you want to handle embedded json objects you should use table definitions with a json field. Something like db.define_table("mytable", Field("embeddedobject", "json") # db is a mongodb connection (DAL instance) -- Resources: - http://web2py.com - htt

[web2py] Re: web2py-mongodb-engine

2015-05-07 Thread Ron Chatterjee
Below is what I have the model in django. I can do the ListField() in web2py using "list:string" I believe but I am having problem with how to do EmbeddedModelField! in web2py. I don't understand what you mean by "do it independently of backend"! Do you mean to insert the table in mongodb indep

[web2py] Re: web2py-mongodb-engine

2015-05-07 Thread Paolo Valleri
I don't see any problem at all in implementing a common post-comment page in web2py. You can code it independently from the backend. On Wednesday, May 6, 2015 at 8:28:08 PM UTC+2, Ron Chatterjee wrote: > > Here is another tutorial from django: > > > *http://docs.mongodb.org/manual/tutorial/write

[web2py] Re: web2py-mongodb-engine

2015-05-06 Thread Ron Chatterjee
Here is another tutorial from django: *http://docs.mongodb.org/manual/tutorial/write-a-tumblelog-application-with-django-mongodb-engine/* Pretty cool. Wondering if we can have a web2py version implementing the same with mongodb. Any thoughts any one? On Tuesday, May 5, 2015 at 4:49:08 PM U

[web2py] MongoDB

2015-05-06 Thread José Ricardo Borba
I'm very busy in these days, but I tried to start a new "installation" from the ground (to test the TIME issue with Mongodb in pydal #170), but even without this correction (i.e, with plain web2py clone from github) I receive the below error message. I'm simply copy the application folder to the n

[web2py] Re: web2py-mongodb-engine

2015-05-05 Thread Ron Chatterjee
I was wondering about creating an object inside an object. As shown in the link above: { 'created_on': ISODate('...'), 'author' : { 'name': 'Bob', 'email': 'b...@example.org' }, 'text' : 'The cake is a lie'} instead of that dict someone can also write it as: { 'created_on

[web2py] Re: web2py-mongodb-engine

2015-05-05 Thread Cássio Botaro
Actually DAL have experimental mongodb support. You can see http://www.web2pyslices.com/slice/show/1580/save-the-earth-from-a-total-data-mess-with-mongodbadapter -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://

[web2py] web2py-mongodb-engine

2015-05-05 Thread Ron Chatterjee
Is there a tutorial similar to this exist anywhere that anyone know off? In otherwords, do we have have web2py-mongodb engine that we can use the embedded model? http://django-mongodb-engine.readthedocs.org/en/latest/tutorial.html#embedded-models I believe the "view" in django is

[web2py] MongoDB adapter

2015-05-01 Thread José Ricardo Borba
Hi 4 All, I'm new to mongoDB and still having some problems with a TIME field. When I set a TIME field in the table, fill the input field of a sqlform (only time is allowed) and send the data to table, all the record is inserted without any warning. But when I try to show in the sqlform, I receive

[web2py] Re: Web2py MongoDB in Windows

2014-11-28 Thread Niphlod
are you using the binary or the source distribution ? On Friday, November 28, 2014 5:05:22 PM UTC+1, Oliver wrote: > > Hi All, > > I'm having issue with Web2Py and MonogoDB in Windows 7. When I ran the > cmd web2py, I don't see MongoDB driver database as available. Howerver, I > installed the

[web2py] Web2py MongoDB in Windows

2014-11-28 Thread Oliver
Hi All, I'm having issue with Web2Py and MonogoDB in Windows 7. When I ran the cmd web2py, I don't see MongoDB driver database as available. Howerver, I installed the Pymongo driver and installed MongoDB successfully in my pc. Here is what I see when I do web2py command: Created by Massimo

[web2py] MongoDB and Web2py in Windows

2014-11-28 Thread Oliver
Hi All, anyone have success using MongoDb in DAL? When I ran web2py, I don't see MongoDB listed. here is what I got when I ran web2py command web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2014 Version 2.9.11-stable+timestamp.2014.09.15.23.35.11 Database drivers available: S

[web2py] mongoDB connect via db._adapter.connection

2014-06-01 Thread Andrey K
Dear users, I have a dilemma of how to access mongoDB and pymongo in the best way using DAL and pymongo. Could you please explain how to use the approach of using pymongodb connection via " mycon = db._adapter.connection" and what would be the difference between it and normal DAL connection t

[web2py] mongodb you must specify a Field(...,uploadfolder

2014-02-23 Thread Mr. J.S Jones
When using upload fields with mongodb and SQLFORM (not factory forms) I get the runtime error " you must specify a Field(...,uploadfolder=...)" the same code but switching to sqlite works correctly. Adding db.table.field.uploadfolder = os.path.join(request.folder,'uploads') to the controller b

[web2py] MongoDb

2013-12-30 Thread Tushar Tuteja
I have an app running on MySQL , I want to use mongoDB instead. I want to help on migration from mysql to mongoDB. Thanks, regards, Tushar Tuteja -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com

[web2py] mongodb upload field raising exception "data must be an instance of str"

2013-11-14 Thread Francisco Betancourt
Hello everyone. We are using a mongodb for our application an ran into a little problem. We declare the following table: db.define_table("pricing_plan", Field("title", "string", notnull=True), Field("image", "upload"), Field("description", "text"), Field("price", "integer", notn

[web2py] mongodb support

2013-10-23 Thread Thomas Tang
Hi Alan, thanks. I played with it few months back and got something basic feature working but went into problem when I tried to use it for large object. just checking if there is any enhancement made n the adapter. I am using it for small project and do some more evalution on the adapter. Thomas

[web2py] mongodb support

2013-10-23 Thread Thomas Tang
Hi, can anyone advise the current status of web2py support of mongodb? thanks thomas -- 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 mes

[web2py] MongoDB and list:reference?

2013-06-04 Thread Alex Schlegel
I am having a problem using a list:reference field with a MongoDB database, like so: db.define_table('page', ... Field('id_moderator','list:reference auth_user',default=auth.user_id), ... ) When I insert a record into this table with a list for the id_moderator field, like so: d

[web2py] Re: Image in web2py/MongoDB based blog

2013-03-27 Thread Alan Etkin
> Isn't there a way to put images using links from other storage websites in > the form? Because I'm not going to be the only administrating the site and > they won't know how to work with the thing in that first link > I think that you could use the new builtin wiki for allowing content mana

[web2py] Re: Image in web2py/MongoDB based blog

2013-03-27 Thread Hugo Costa
Thanks for the answer. Isn't there a way to put images using links from other storage websites in the form? Because I'm not going to be the only administrating the site and they won't know how to work with the thing in that first link. Terça-feira, 26 de Março de 2013 21:51:21 UTC, Alan Etkin e

[web2py] Re: Image in web2py/MongoDB based blog

2013-03-26 Thread Alan Etkin
> but I want to know how can I put an image/video in the text making them appear in the view of the user. > I tried using with HTML code but it didn't work. Where will the images come from? Will you store image files in you app folder? Here is a guide to handle images from the book: http://www

[web2py] Image in web2py/MongoDB based blog

2013-03-26 Thread Hugo Costa
Hi! So, I'm setting up a website where there will be a blog system where I can create my news using a simple form and store that in a mongo database, but I want to know how can I put an image/video in the text making them appear in the view of the user. I tried using with HTML code but it didn

Re: [web2py] Mongodb error in appadmin

2013-03-21 Thread Mike Veltman
On 03/21/2013 08:06 PM, Alan Etkin wrote: > > I would love to have some pointers about how though define mongo in > db.py in a proper nosql way. > > > Could you open an issue at the project page? > Done :-) Issue 1401 : Mongodb error

Re: [web2py] Mongodb error in appadmin

2013-03-21 Thread Alan Etkin
> > I would love to have some pointers about how though define mongo in > db.py in a proper nosql way. > Could you open an issue at the project page? If you can, please provide: - The relevant part of the model - A possible set of data which would reproduce the error - Your mongodb driver, da

Re: [web2py] Mongodb error in appadmin

2013-03-21 Thread Mike Veltman
Op 21-03-13 17:50, Niphlod schreef: > seems to me that a lot of people are interested in using mongodb but > really few are contributing back with tests and patches. > > BTW: you DO know that Mongo generally doesn't play well with joins, > right ? Using references in mongodb is not a smart des

Re: [web2py] Mongodb error in appadmin

2013-03-21 Thread Niphlod
seems to me that a lot of people are interested in using mongodb but really few are contributing back with tests and patches. BTW: you DO know that Mongo generally doesn't play well with joins, right ? Using references in mongodb is not a smart design. -- --- You received this message be

[web2py] Mongodb error in appadmin

2013-03-21 Thread Mike Veltman
Created the following table mdb.define_table('syscommands', Field('commandname', type='string', unique=True, label=T('Commandname')), Field('commandline', type='string', label=T('Command')), Field('host_id', mdb.hoststable, comment="Like nim or

[web2py] Mongodb error in appadmin

2013-03-21 Thread Mike Veltman
The action I have a table/collection with 3 objects In the table this is reverenced as Field('host_id', mdb.hoststable, comment="Like nim or hmc server.", label=T('Destination Host ID')), But when in appadmin I select a other object to change then it throws a error. The err

[web2py] Mongodb and db.py

2012-12-17 Thread Mike Veltman
Hello People, I am looking into converting my mysql database setup into a mongodb and I was wondering about how at the moment db.py does translate the tables. Because I would like to have some control/understanding about it. --

[web2py] mongodb 2 errors: BSON can only handle up to 8-byte ints, second argument must be of type ObjectI

2012-10-23 Thread Adi
Installed mongodb, pymongo driver from source on mac osx 10.7.5, and created a fresh application. Tried to create a new user from admin panel, and got first error bellow. Record got inserted though. After I used option "Lost password" from the menu, got second error underneath. BSON can only

[web2py] mongodb error

2012-09-30 Thread Jose Galvez
I am trying to run through the image blog example from the docs using mongodb. when I try to upload an image I get the follwoing error strings in documents must be valid UTF-8 and when I look at crated document: (self=Collection(Database(Connection('localhost', 27017), u'db1'), u'image'), doc

[web2py] MongoDB Virtual Fields

2012-06-14 Thread stu
I just started using web2py and am using it with mongodb. There have been a few hiccups along the way that seem related to the relative immaturity of the DAL for mongo. I am scratching my head over trying to use virtual fields and am now wondering if this could be related to the same thing. d

[web2py] Mongodb - ImportError: cannot import name son

2012-06-11 Thread Michael Freitas
I tried to setup a new application using the latest source code form trunk and mongodb. I get the error pasted at the end when I try to register a new user in my app. I tried changing the "from pymongo import son" to "from bson import son" in the dal.py with no luck. I can import son from bs

Re: [web2py] MongoDB table definitions

2012-05-21 Thread Francisco Costa
requested here: https://groups.google.com/d/topic/web2py/pqdYpUbMXKQ/discussion On Wednesday, March 7, 2012 7:10:28 PM UTC, rdodev wrote: > > Bruno, > > Yes, it would seem that the only two options right now would be to > implement a document type (which I'm not sure how time consuming that woul

[web2py] MongoDB 'document' or 'dict' filetype

2012-05-21 Thread Francisco Costa
At the moment MongodbAdapter only has these filetypes class MongoDBAdapter(NoSQLAdapter): uploads_in_blob = True types = { 'boolean': bool, 'string': str, 'text': str, 'password': str, 'blob': str,

[web2py] MongoDb Adapter issues

2012-05-17 Thread Krzysztof Mulica
Hello, I'm having issues with the mongo adapter doing selects (using latest code from git.) The initial issue i ran into was not being able to import SON in dal.py (i changed from pymongo to from bson and that fixed that) After that I ran into issues with pymongo.objectid, after a little resear

[web2py] MongoDB Adapter error in select

2012-05-07 Thread Francisco Costa
So I have this: import sys import time from gluon.dal import DAL, Field mongo = DAL('mongodb://localhost:27017/tymr') mongo.define_table('user', Field('name', 'text'), Field('age', 'integer'), Field('city', 'string') ) def insert_users(): m

Re: [web2py] MongoDB table definitions

2012-03-07 Thread rdodev
Bruno, Yes, it would seem that the only two options right now would be to implement a document type (which I'm not sure how time consuming that would be), or normalize that table and extract that dictionary/document into its own table -- which could be annoying since I have several tables like

Re: [web2py] MongoDB table definitions

2012-03-07 Thread Bruno Rocha
This is the Mongo Adapter types definition, I see no type 'dict' maybe it needs a new type "document'. class MongoDBAdapter(NoSQLAdapter): uploads_in_blob = True types = { 'boolean': bool, 'string': str, 'text': str, 'passwor

[web2py] MongoDB table definitions

2012-03-07 Thread rdodev
Folks, I'm trying to define a mongo table in db.py that looks something like this: { field1 : "super", field2 : "super", things = { this : "stuff", that = "stuff" }, field3 : "Give me a call" } defining fields1-3 is easy, but what's the syntax to build 'things' which itself is a diction

[web2py] mongodb adapter not working

2012-03-07 Thread rdodev
I'm running the nightly build of web2py, python 2.7, have pymongo installed and mongodb is running. in db,py I tried DAL('mongodb://127.0.0.1:[port number]/[dbname]') and keeps bombing with error: "Uriparser for mongodb is not available" is there another dependency other than pymongo? Please ad

Re: [web2py] mongodb and web2py

2011-12-03 Thread Vasile Ermicioi
my advice is to pay attention to another document and graph database: orientdb http://code.google.com/p/orient/ like mongodb it is a document database, which means it can store json like objects and because it supports some sort of sql it should be much easier to write an adapter

RE: [web2py] mongodb and web2py

2011-12-03 Thread Mark Breedveld
12:03 Aan: web2py-users Onderwerp: [web2py] mongodb and web2py Hi All, Since I'm interested in python, web2py and recently mongodb and after seeing breedvel...@gmail.com post http://code.google.com/p/web2py/issues/detail?id=497 to get inserts on the MongoDBAdapter working I've been h

[web2py] mongodb and web2py

2011-12-03 Thread Paul
Hi All, Since I'm interested in python, web2py and recently mongodb and after seeing breedvel...@gmail.com post http://code.google.com/p/web2py/issues/detail?id=497 to get inserts on the MongoDBAdapter working I've been hacking the MongoDBAdapter code further to get select (and,or,eq,gt,lt,le,ge,

[web2py] Mongodb - inserts working-but some comments on the code are welcome

2011-11-09 Thread Mark Breedveld
Hi, MongoDB users I currently working on the mongoDB adapter, but I need some feed back. http://code.google.com/p/web2py/issues/list Issue 497,499 and 500 will make the inserts in mongodb possible. But I'm from origin a C# programmer and not used to programming in python. So maybe that some

[web2py] MongoDB testing and development

2011-10-21 Thread Mark Breedveld
Dear Massimo, I downloaded the trunk and I am currently testing the MongoDB Adapter and I can tell that inserting currently isn't working. Also the creation of tables doesn't work. First question, shall I put the bugs and improvements that I find in the Issue list or just in this discussion? Sec

Re: [web2py] MongoDB and Web2py

2011-10-03 Thread ~redShadow~
On Sun, 2011-10-02 at 14:52 -0700, Francisco Costa wrote: > I don't want to spam the group about this, but I would like to have > some official incites about when will the DAL have a MongoDB Adapter. > > > Since this is the most requested feature by the web2py community > http://web2py.uservoice

[web2py] MongoDB and Web2py

2011-10-02 Thread Francisco Costa
I don't want to spam the group about this, but I would like to have some official incites about when will the DAL have a MongoDB Adapter. Since this is the most requested feature by the web2py community http://web2py.uservoice.com/forums/42577-general are there any plans or schedule for this supp

[web2py] MongoDB supported by DAL

2011-07-25 Thread Francisco Costa
When will MongoDBAdapter finalize so we can use it with DAL?

[web2py] MongoDB and Web2Py

2011-03-31 Thread luckysmack
I have read a few older messages about mongoDB being made to work with the DAL. But they all seem to be pretty dated and have not specified what was working and what wasnt. massimo menitoned that it may be ready by january of this year. But under the supported list it wasnt listed. So im just curio

[web2py] MongoDB and Web2Py: global variables / session problem

2011-02-05 Thread marcovic
Hi guys, I'm trying to build a simple web app where you can upload a file into MongoDB (using GridFS) and then get the file with one-click. This is my model: Model: mongo.py --- from pymongo import Connection from gridfs import GridFS class MongoInterface: """Initialize MongoDB

Re: [web2py] mongoDb

2010-11-25 Thread Bruno Rocha
I am using PyMongo for one project http://api.mongodb.org/python/1.9%2B/index.html I put the libs in modules and created some methods in my /models to abstract commom tasks, PyMongo is very simple, so it is easy to access the data directly form controllers or views using its API. 2010/11/25 Aurig

[web2py] mongoDb

2010-11-25 Thread Aurigadl
In my projects I'm using MongoDB I need to work with this tool you need this to work with web2py? Make controller for this RDBMS or or this tool work wiht this

[web2py] MongoDb and web2py

2010-07-31 Thread Amit Ambardekar
I want to use web2py with pymongo. I don't need ORM or or anything. I just want to connect use pymongo from Web2Py. How can I use it inside web2py. I need it for high performance use. Amit