I created a new Similarity Object, with the title 'Similar by terms - news' but on the admin page which lists all the similarity objects at /admin/build/similarity, it is truncated to 'Similar by terms - n'. That makes it hard for me to identify all my objects. Also, there is no way to edit the title once it has been created.
Comments
Comment #1
Scott Reynolds commentedTitle is no editable on purpose. it is going to pave the way for exportable objects. so the name has to be unique an non-changing. Perhaps a title size limit is in order though. to make the table view behave.
Comment #2
mrfelton commentedbut when creating the object, I have to give it a machine readable name, and a human readable name... surely it's the machine name that needs to be non-changeable, not the human one.
Comment #3
Scott Reynolds commentedo duh sry. will take a look later
Comment #4
mrfelton commentedalso... on a related note... the machine readable name is trimmed also. And what I have ended up with, is a database table called
similar_news_by_terms_similarity, but calculate() is trying to insert data into a table namedsimilar_news_by_term_similarity, and failing since that table doesn't exist.( I set the machine name to 'similar_news_by_terms', not 'similar_news_by_term' )
Comment #5
Scott Reynolds commentedNeed to enforce the length then at the fapi layer then.
Comment #6
Scott Reynolds commentedfix up the form stuff. now on to reproducing your problem
Comment #7
Scott Reynolds commentedhttp://drupal.org/cvs?commit=201920
Comment #8
Scott Reynolds commentedforgot to mention you need to uninstall and reinstall. not providing update hooks for a -dev release
Comment #9
patchak commentedHello, just installed the module, and I get the following error no matter what name I try to use to add a new similarity :
"Similarity type cannot be longer than 10 characters but is currently 13 characters long."
I uninstalled the module (using drupal uninstall feature) and reinstalled it and still get the same error....weird!
Using latest drupal6 and latest dev of this module.
thanks!
Patchak
Comment #10
Scott Reynolds commentedyep, small mistake, forgot to update the form definition for the new schema. Nothing to do with the db schema
Comment #11
Scott Reynolds commentedI created a similarity object just like mrfelton described and it saved away fine. The table is name properly, the human readable title is the proper size as well.