Hi Michael,
You need only appsrc/ODS-Framework copied as wa under web root. As for other applications they provide filesystem based VAD packages, except ODS-Blog which is WebDAV only oriented because of templates. I will check if ODS-Blog can be run for development from file system and let you know. Best Regards, Mitko Michael K. Bergman wrote: > Hi Mitko, > > OK, I think this is the last important question for now: > > In my CVS or \appsrc directories where ODS-Framework is located, there > are also many other sibling ODS-OtherApp directories. > > 1. Do these need to get copied over to the new 'wa' directory under > the vsp root? > > 2. If so, do they need to be renamed? > > 3. If not, how can I edit non-ODS Framework files? > > This is the piece that continues to stump me (plus I guess the fact I > need to rename the local stuff to 'wa'!). > > Please expand, and have a great weekend! > > Thanks, Mike > > Mitko Iliev wrote: >> Hi Michael, >> >> I forgot to clarify that points mentioned in previous mail are on >> basis of having a local source distribution or CVS checkout at very >> least 'appsrc' and 'binsrc/oat' . >> Please find the rest of responses bellow: >> >> Michael K. Bergman wrote: >>> Hi Mitko, >>> >>> Could you expand on the initial set up for this? I'm still confused >>> about how to set up the beginning file/directory structure. >>> >>> Also, please see the other questions below. >>> >>> I know I'm a newbie about this stuff, but I'm trying to get over the >>> hump and actually do some productive development! :) >>> >> NP. We appreciate the efforts to develop atop of ODS :-) >>> Thanks, Mike >>> >>> Mitko Iliev wrote: >>>> Hi Michael, >>>> >>>> The directory structure for file system development to be used with >>>> init.sql is : >>>> <cvs root>/appsrc/ODS-Framework -> <http root>/wa/ >>>> <cvs root>/binsrc/oat/toolkit/ -> <http root>/wa/oat/ >>>> <cvs root>/binsrc/oat/images/ -> <http root>/wa/images/oat/ >>>> >>>> As for a script to do that, you are right, we should have such a >>>> script placed in cvs. I'll try to do that for for next release. >>>> >>>> Best Regards, >>>> Mitko >>>> >>>> >>>> >>>> Michael K. Bergman wrote: >>>>> Hi Mitko, >>>>> >>>>> I can get the script to run without error so long as I run it in >>>>> the same directory where the files wa_search_procs.sql and >>>>> wa_template.sql reside. >>>>> >>>>> But I'm still not sure what the starting file structure should >>>>> be. I continue to get this error when I http://localhost:8890/ods/: >>>>> >>>>> Error HTTP/1.1 404 File not found >>>>> The requested URL was not found URI = '/ods/not_found.vspx' >>>>> >>>>> Also, I noticed a possible discrepancy below: >>>>> >>>>> Michael K. Bergman wrote: >>>>>> Hi Mitko, >>>>>> >>>>>> Unfortunately, I have more questions: >>>>>> >>>>>> Mitko Iliev wrote: >>>>>>> Hi Michael, >>>>>>> >>>>>>> The ODS framework has no file system VAD package as it's user home >>>>>>> temples mechanism is WebDAV oriented. >>>>>>> However it's possible to setup the ODS to run in file system. >>>>>>> To do that i.e. to make appropriate virtual directories etc. you >>>>>>> may do >>>>>>> the following: >>>>>>> * suppose ODS Framework directory structure is under : >>>>>>> [root]\virtuoso\var\lib\virtuoso\vsp >>>>>> >>>>>> Are you saying I should *copy* all of the source files under >>>>>> appsrc under \vsp? OR just *copy* the appsrc\ODS-Framework files >>>>>> OR something different? >>>>>> >>>>>> If it is just ODS-Framework, how do I get to and edit specific >>>>>> application files (e.g., ODS-Briefcase)? >>>>>> >>>>>> In other words, should I not be creating a process and >>>>>> environment for editing and then re-deploying the entire ODS and >>>>>> its apps? >>>>>> >>>>>>> * a copy of <cvs>/binsrc/oat/toolkit under ODS-Framework >>>>>>> directory as subdirectory 'ods' >>>>> >>>>> *** >>>>> in the virtual 'wa', this subdirectory is listed as 'oat'. >>>>> *** >>>>> >> correct, typo. 'oat' is right name >>>>>> >>>>>> would this now become: >>>>>> [root]\virtuoso\var\lib\virtuoso\vsp\ODS-Framework\ods ? >>>>>> >> It would be rather [root]\virtuoso\var\lib\virtuoso\vsp\wa\oat, if we >> substitute 'ODS-Framework' directory with 'wa' and copy are per >> init.sql script requirments >>>>>>> * have a sql script with following content: >>>>>>> >>>>>>> registry_set('_wa_path_', '/ods/'); >>>>>>> load wa_search_procs.sql; >>>>>>> load wa_template.sql; >>>>>>> vhost_remove (lpath=>'/ods'); >>>>>>> vhost_remove (lpath=>'/ods/images/icons'); >>>>>>> vhost_define (lpath=>'/ods', ppath=>'/wa/', is_dav=>0, >>>>>>> vsp_user=>'dba', >>>>>>> def_page=>'sfront.vspx', >>>>>>> opts=>vector('xml_templates', 'yes', >>>>>>> '404_page','not_found.vspx')); >>>>>>> vhost_define (lpath=>'/ods/images/icons', ppath=>'/wa/icons', >>>>>>> is_dav=>0); >>>>>>> >>>>>>> >>>>>>> The above will define virtual directories & setup procedure for >>>>>>> use from >>>>>>> file system. >>>>>>> Also you can run init.sql (development script) from ODS-Framework >>>>>>> directory . >>>>>> >>>>>> I don't understand. init.sql is not the same content as the sql >>>>>> script listed above. >>>>>> >> yes, init.sql load all ods scripts, so if changes in *.sql is >> expected during development better to use the init.sql >>>>>> I also assume that 'vhost' commands refer to WebDAV as the target. >>>>>> >> no, the 'vhost' functions in tis case defines file system oriented >> virtual directories, i.e. the physical location is on file system . >> see 'is_dav' parameter is zero (false) >>>>>>> >>>>>>> To execute scripts, you can use the command line ISQL tool >>>>>>> (isql.exe) e.g. >>>>>>> CMD> isql.exe [sql_port] dba [dba pass] [script_file_name] >>>>>>> >>>>>>> Please note that in the above scripts the 'ODS-Framework' >>>>>>> directory is >>>>>>> copied under HTTP root directory as 'wa' subdirectory, so if you >>>>>>> want >>>>>>> another name of the copy you should change the places where 'wa' is >>>>>>> mentioned. >>>>>> >>>>>> By HTTP root directory are you referring to the root virtual >>>>>> directory in WebDAV? >> By root directory i mean the directory mentioned for HTTPRoot in the >> INI file. It's always file system based. >>>>>> >>>>>> Is 'wa' mentioned only in the *.sql files, or where else? >>>>>> >> I meant the places in init.sql script only. >> >>>>>>> >>>>>>> As for putting back changes in WebDAV, just push back the >>>>>>> changed & new >>>>>>> files in the ODS original location in CVS checkout and make a vad >>>>>>> package for deployment. >>>>> >>>>> Do I assume correctly that I will still be able to run ODS as >>>>> files get modified without having to deploy back to WebDAV? My >>>>> understanding is: a) deployment is really only a nicety for >>>>> packaged distributions, but not necessary during development; and >>>>> b) modified VSPX get compiled to an intermediate PL "on the fly". >>>>> Correct? >>>>> >> Yes, if you configure correctly the virtual directories and setup >> script for development you will be able to run them from file system >> w/o need to upload in WebDAV. >> about p. a) is correct >> point b), not quite. the VSPX will be compiled once until it's >> changed. it's not interpreted every time. but it's true it's compiled >> to sql containing page UDT definitions (*.vspx-sql files). >>>>> Also, per earlier recommendations, I am *not* using the CVS, but >>>>> simply the source code (mostly appsrc) from the SourceForge >>>>> distribution. Please advise if that is not the right way to go. >>>>> >> except 'appsrc' directory i suggest to take and 'binsrc/oat' as it's >> used in the ODS frameorks & applications. >>>>>> >>>>>> Can you point me to documentation about making a VAD file other >>>>>> than http://docs.openlinksw.com/virtuoso/VAD.html (pretty >>>>>> complicated)? >>>>>> >> ATM this is only documentation in place, further we can prepare a >> short HOWTO about VADs. >> >> Best Regards, >> Mitko >>>>>>> >>>>>>> Please let me know if this helps. >>>>>>> >>>>>>> Best Regards, >>>>>>> Mitko >>>>>> >>>>>> [snip] >>>>>> >>>>>> Thanks, Mike >>>>>> >>>>> >>>>> Thanks, Mike >>>> >>>> >>> >> >> > -- Mitko Iliev Developer Virtuoso Team OpenLink Software http://www.openlinksw.com/virtuoso Cross Platform Web Services Middleware