Displaying 4 results from an estimated 4 matches for "new_docu".
Did you mean:
new_doc
2006 Aug 03
1
An error while testing Python 2.5 and xapian in Win32
...lp", "copyright", "credits" or "license" for more information.
>>>
>>>import sys
>>>sys.path.append("C:/Python25/Lib/site-packages/Xapian")
>>>from _xapian import *
>>>from _xapian import new_WritableDatabase, new_Document
>>>w=new_WritableDatabase("db",DB_CREATE_OR_OPEN)
>>>d=new_Document()
>>>del d
swig/python detected a memory leak of type 'Xapian::Document *', no
destructor found.
>>>
If a try to print d, windows crashes indicating:
Faulting application p...
2006 Jun 20
2
Problem with "can''t dump anonymous class Class"
...end
end
class GlobalDocument < Document
validates_uniqueness_of :name, :scope => :type
private
def sanitize_filename(file_name)
File.expand_path("#{RAILS_ROOT}/public/documents/global/#{new_filename(file_
name)}")
end
end
** Controller **
def documents
@new_document = GlobalDocument.new
end
def save_global_document
doc = GlobalDocument.new(params[:new_document])
if doc.save
flash[:notice] = "<em>#{doc.name}</em> was saved"
else
flash[:error] = doc.errors.full_messages.join("<br />")
end...
2006 Jun 19
3
can''t dump anonymous class Class
...e_name)}")
end
end
** Controller **
def documents
@associations = Association.find(:all, :order => [ "name" ])
@association_documents = AssociationDocument.find(:all, :include =>
[ "association" ])
@global_documents = GlobalDocument.find_all()
@new_document = GlobalDocument.new
end
def save_global_document
doc = GlobalDocument.new(params[:new_document])
if doc.save
flash[:notice] = "<em>#{doc.name}</em> was saved"
else
flash[:error] = doc.errors.full_messages.join("<br />")
end...
2006 Apr 18
1
gettin erro with xapian binidngs 0.9.5
...Fatal error*: No matching function for overloaded 'Document_add_posting' in
*/home/jana/public_html/final_file_search/file_indexer.php* on line *48
*this is the fragment of my code where i m gettin the error.
--------------------------------------------------------------------------
$doc = new_Document();
Document_set_data($doc,$filep);
$lines=file("op.txt");
//count is used to overcome an error in extract_from_file11..it returns a
file containing one extracted devanagari word per line plus its postion(ie.
on which line it appears..line is defined as something that ends with Hindi...