I came across this error when I was trying to make a custom validator in Flask-Admin with wtforms form objects.
This code didn't work: def location_must_not_conflict(form, field): if Event.query.filter(Event.location == form.location).first(): raise wtforms.validators.ValidationError('Location conflicts with another request for the same venue.')
Because I was using form.location and not form.location.data.
This will work: def location_must_not_conflict(form, field): if Event.query.filter(Event.location == form.location.data).first(): raise wtforms.validators.ValidationError('Location conflicts with another request for the same venue.')
Initially when I googled how to do this in Adobe Acrobat, the first few results had fairly complicated solutions. After I made the app, I ended up finding an easier way to do it in Adobe (in the 6th from the top Google result on “reverse pdf order acrobat”…):
It doesn’t allow setting defaults for which categories the user has “Watched”. For example, I would want to default the “General” list to “Watched”, but more obscure lists would only be watched if the user chooses to.
It uses a different e-mail address for each e-mail it sends you (this is to keep track of which thread it belongs to), here’s an example of a “From” address: firstname.lastname@example.org Google Groups always has the same to/from e-mail address and magically figures this out. This might be weird in some peoples’ email clients.
As a forum, this beats the crap out of PhpBB, but as a mailing list it’s not a clear winner over Google Groups yet. It’s open source, has a better web interface, and the “Categories” are a cool feature for keeping all the lists in the same place. But, the “email in” functionality was too recently implemented, and it might take a few months before it’s as polished as Google Groups.
It’s going to be a very tempting replacement if they add default settings for user preferences.
I was getting this error when trying to connect to a sybase database using Microsoft's odbc driver by using the connection string shown in the SqlAlchemy examples: DBAPIError: (Error) ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)') None None
The following code worked to connect: import pyodbc, sqlalchemy def connect(): return pyodbc.connect('DSN=<dsn name>;UID=<username>;PWD=<password>') srcEngine = sqlalchemy.create_engine('sybase+pyodbc://', creator=connect, echo=True)