Thread: [Hypercontent-users] Publishing projects via sftp
Brought to you by:
alexvigdor
From: <ke...@la...> - 2005-12-06 14:40:10
|
Hello! What should I write in the project-definition.xml file to publish my proj= ect to the remote server?=20 When I'm trying to use the same definition as was used in the project-definition.xml from HyperContent 1.4( <publish base-url=3D"http://www.lu.lv/"> <filesystem-def name=3D"lu_publish" type=3D"sftp"> <argument index=3D"0" value=3D"www.lu.lv"/> <argument index=3D"1" prompt=3D"username" type=3D"text"/> <argument index=3D"2" prompt=3D"password" type=3D"password"/> <argument index=3D"3" value=3D"/var/www/html/"/> <argument index=3D"4" value=3D"0775"/> </filesystem-def> </publish> ), I'm getting the error in the log file:=20 ERROR 2005-12-06 16:10:48,671 =20 org.hypercontent.project.exceptions.UserInputException: You must enter va= lid responses to the user prompts at org.hypercontent.filesystem.FileSystemFactory.mountFileSystemManager(File= SystemFactory.java:180) at org.hypercontent.filesystem.FSMount.getManager(FSMount.java:86) at org.hypercontent.workflow.exec.impl.AbstractBatchExecutable.cleanup(Abstr= actBatchExecutable.java:562) at org.hypercontent.workflow.thread.BatchMonitor.run(BatchMonitor.java:2= 01) at java.lang.Thread.run(Unknown Source) and only after that HyperContent2 asks me to input username and password.= But when I press button "Submit Query" after putting in all necessary data computer's processor becomes busy by tomcat process for 100% for 5-10 min= utes. After that time nothing is published, but H2 asks me to input data again = or sometimes I'm getting other errors with workflow-data. When username and password is shown in the project-definition.xml directly(<argument index=3D"1" value=3D"..."/> <argument index=3D"2" value=3D"..."/>) everything works perfect. Thank you! =20 |
From: Carl B. <C.P...@hu...> - 2005-12-06 14:51:52
|
Hi What version of HyperContent 2 are you running? There was a ftp bug in RC1 that has now been fixed in the final version. Carl ke...@la... wrote: >Hello! > >What should I write in the project-definition.xml file to publish my project to >the remote server? > >When I'm trying to use the same definition as was used in the >project-definition.xml from HyperContent 1.4( ><publish base-url="http://www.lu.lv/"> > <filesystem-def name="lu_publish" type="sftp"> > <argument index="0" value="www.lu.lv"/> > <argument index="1" prompt="username" type="text"/> > <argument index="2" prompt="password" type="password"/> > <argument index="3" value="/var/www/html/"/> > <argument index="4" value="0775"/> > </filesystem-def> > </publish> >), I'm getting the error in the log file: > >ERROR 2005-12-06 16:10:48,671 >org.hypercontent.project.exceptions.UserInputException: You must enter valid >responses to the user prompts > at >org.hypercontent.filesystem.FileSystemFactory.mountFileSystemManager(FileSystemFactory.java:180) > at org.hypercontent.filesystem.FSMount.getManager(FSMount.java:86) > at >org.hypercontent.workflow.exec.impl.AbstractBatchExecutable.cleanup(AbstractBatchExecutable.java:562) > at org.hypercontent.workflow.thread.BatchMonitor.run(BatchMonitor.java:201) > at java.lang.Thread.run(Unknown Source) > >and only after that HyperContent2 asks me to input username and password. But >when I press button "Submit Query" after putting in all necessary data >computer's processor becomes busy by tomcat process for 100% for 5-10 minutes. >After that time nothing is published, but H2 asks me to input data again or >sometimes I'm getting other errors with workflow-data. >When username and password is shown in the project-definition.xml >directly(<argument index="1" value="..."/> ><argument index="2" value="..."/>) everything works perfect. > >Thank you! > > > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://ads.osdn.com/?ad_idv37&alloc_id865&op=click >_______________________________________________ >Hypercontent-users mailing list >Hyp...@li... >https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: <ke...@la...> - 2005-12-06 15:20:27
|
HyperContent 2 Final Tomcat 5.5.9 Java 1.4.2_08 Just tried HyperContent 2 RC1 - it has the same problem. Cit=E7ju Carl Barrow <C.P...@hu...>: > Hi >=20 > What version of HyperContent 2 are you running? There was a ftp bug in= =20 > RC1 that has now been fixed in the final version. >=20 > Carl >=20 > ke...@la... wrote: >=20 > >Hello! > > > >What should I write in the project-definition.xml file to publish my p= roject > to > >the remote server?=20 > > > >When I'm trying to use the same definition as was used in the > >project-definition.xml from HyperContent 1.4( > ><publish base-url=3D"http://www.lu.lv/"> > > <filesystem-def name=3D"lu_publish" type=3D"sftp"> > > <argument index=3D"0" value=3D"www.lu.lv"/> > > <argument index=3D"1" prompt=3D"username" type=3D"text"/> > > <argument index=3D"2" prompt=3D"password" type=3D"password"/> > > <argument index=3D"3" value=3D"/var/www/html/"/> > > <argument index=3D"4" value=3D"0775"/> > > </filesystem-def> > > </publish> > >), I'm getting the error in the log file:=20 > > > >ERROR 2005-12-06 16:10:48,671 =20 > >org.hypercontent.project.exceptions.UserInputException: You must enter > valid > >responses to the user prompts > > at > >org.hypercontent.filesystem.FileSystemFactory.mountFileSystemManager(Fil= eSystemFactory.java:180) > > at org.hypercontent.filesystem.FSMount.getManager(FSMount.java:86) > > at > >org.hypercontent.workflow.exec.impl.AbstractBatchExecutable.cleanup(Abst= ractBatchExecutable.java:562) > > at > org.hypercontent.workflow.thread.BatchMonitor.run(BatchMonitor.java:201= ) > > at java.lang.Thread.run(Unknown Source) > > > >and only after that HyperContent2 asks me to input username and passwo= rd. > But > >when I press button "Submit Query" after putting in all necessary data > >computer's processor becomes busy by tomcat process for 100% for 5-10 > minutes. > >After that time nothing is published, but H2 asks me to input data aga= in or > >sometimes I'm getting other errors with workflow-data. > >When username and password is shown in the project-definition.xml > >directly(<argument index=3D"1" value=3D"..."/> > ><argument index=3D"2" value=3D"..."/>) everything works perfect. > > > >Thank you! > >=20 > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > >for problems? Stop! Download the new AJAX search engine that makes > >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK= ! > >http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dclick > >_______________________________________________ > >Hypercontent-users mailing list > >Hyp...@li... > >https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > =20 > > >=20 > --=20 > ************************************ >=20 > Carl Barrow > Systems Integrator > e-Services > The University of Hull > Cottingham Road > Hull > HU6 7RX > Ext. 6838 > =20 > ************************************ >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log = files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users >=20 >=20 |
From: Carl B. <C.P...@hu...> - 2005-12-06 15:41:06
|
I can't seems to replicate the problem with my installation here at Hull. The only difference is that I'm using Java 1.4.2_09 but I wouldn't think that should make any difference. Perhaps Alex can help out? Thanks Carl ke...@la... wrote: >HyperContent 2 Final >Tomcat 5.5.9 >Java 1.4.2_08 > >Just tried HyperContent 2 RC1 - it has the same problem. > >Citēju Carl Barrow <C.P...@hu...>: > > > >>Hi >> >>What version of HyperContent 2 are you running? There was a ftp bug in >>RC1 that has now been fixed in the final version. >> >>Carl >> >>ke...@la... wrote: >> >> >> >>>Hello! >>> >>>What should I write in the project-definition.xml file to publish my project >>> >>> >>to >> >> >>>the remote server? >>> >>>When I'm trying to use the same definition as was used in the >>>project-definition.xml from HyperContent 1.4( >>><publish base-url="http://www.lu.lv/"> >>> <filesystem-def name="lu_publish" type="sftp"> >>> <argument index="0" value="www.lu.lv"/> >>> <argument index="1" prompt="username" type="text"/> >>> <argument index="2" prompt="password" type="password"/> >>> <argument index="3" value="/var/www/html/"/> >>> <argument index="4" value="0775"/> >>> </filesystem-def> >>> </publish> >>>), I'm getting the error in the log file: >>> >>>ERROR 2005-12-06 16:10:48,671 >>>org.hypercontent.project.exceptions.UserInputException: You must enter >>> >>> >>valid >> >> >>>responses to the user prompts >>> at >>> >>> >>org.hypercontent.filesystem.FileSystemFactory.mountFileSystemManager(FileSystemFactory.java:180) >> >> >>> at org.hypercontent.filesystem.FSMount.getManager(FSMount.java:86) >>> at >>> >>> >>org.hypercontent.workflow.exec.impl.AbstractBatchExecutable.cleanup(AbstractBatchExecutable.java:562) >> >> >>> at >>> >>> >>org.hypercontent.workflow.thread.BatchMonitor.run(BatchMonitor.java:201) >> >> >>> at java.lang.Thread.run(Unknown Source) >>> >>>and only after that HyperContent2 asks me to input username and password. >>> >>> >>But >> >> >>>when I press button "Submit Query" after putting in all necessary data >>>computer's processor becomes busy by tomcat process for 100% for 5-10 >>> >>> >>minutes. >> >> >>>After that time nothing is published, but H2 asks me to input data again or >>>sometimes I'm getting other errors with workflow-data. >>>When username and password is shown in the project-definition.xml >>>directly(<argument index="1" value="..."/> >>><argument index="2" value="..."/>) everything works perfect. >>> >>>Thank you! >>> >>> >>> >>> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: Splunk Inc. Do you grep through log >>> >>> >>files >> >> >>>for problems? Stop! Download the new AJAX search engine that makes >>>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>>http://ads.osdn.com/?ad_idv37&alloc_id865&op=click >>>_______________________________________________ >>>Hypercontent-users mailing list >>>Hyp...@li... >>>https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>> >>> >>> >>> >>-- >>************************************ >> >>Carl Barrow >>Systems Integrator >>e-Services >>The University of Hull >>Cottingham Road >>Hull >>HU6 7RX >>Ext. 6838 >> >>************************************ >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >>for problems? Stop! Download the new AJAX search engine that makes >>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click >>_______________________________________________ >>Hypercontent-users mailing list >>Hyp...@li... >>https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> >> >> > > > > > >------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. Do you grep through log files >for problems? Stop! Download the new AJAX search engine that makes >searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >http://ads.osdn.com/?ad_idv37&alloc_id865&op=click >_______________________________________________ >Hypercontent-users mailing list >Hyp...@li... >https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > -- ************************************ Carl Barrow Systems Integrator e-Services The University of Hull Cottingham Road Hull HU6 7RX Ext. 6838 ************************************ |
From: Alex V. <av...@co...> - 2005-12-06 17:26:15
|
Hi, I probably should reclassify that error as a debug message: the = =20 UserInputException is how the filesystem communicates to the 2.0 =20 framework that a login is required to access it. So it is a useful =20 exception; it triggers the username and password prompts to appear on =20= the Publish workflow screen. This may take a few seconds, so you may =20= not see the login box initially, but it will show up once the =20 asynchronous batch processor kicks off the publishing process. You =20 don't need to make any changes to the project definition. I've posted a screenshot of how the login box will appear on the 2.0 =20 help site http://hypercontent.sourceforge.net/help/project/filesystems/login.html Cheers, Alex On Dec 6, 2005, at 8:15 AM, ke...@la... wrote: > Hello! > > What should I write in the project-definition.xml file to publish my =20= > project to > the remote server? > > When I'm trying to use the same definition as was used in the > project-definition.xml from HyperContent 1.4( > <publish base-url=3D"http://www.lu.lv/"> > <filesystem-def name=3D"lu_publish" type=3D"sftp"> > <argument index=3D"0" value=3D"www.lu.lv"/> > <argument index=3D"1" prompt=3D"username" = type=3D"text"/> > <argument index=3D"2" prompt=3D"password" = type=3D"password"/> > <argument index=3D"3" value=3D"/var/www/html/"/> > <argument index=3D"4" value=3D"0775"/> > </filesystem-def> > </publish> > ), I'm getting the error in the log file: > > ERROR 2005-12-06 16:10:48,671 > org.hypercontent.project.exceptions.UserInputException: You must enter = =20 > valid > responses to the user prompts > at > = org.hypercontent.filesystem.FileSystemFactory.mountFileSystemManager(Fi=20= > leSystemFactory.java:180) > at = org.hypercontent.filesystem.FSMount.getManager(FSMount.java:86) > at > = org.hypercontent.workflow.exec.impl.AbstractBatchExecutable.cleanup(Abs=20= > tractBatchExecutable.java:562) > at =20 > org.hypercontent.workflow.thread.BatchMonitor.run(BatchMonitor.java:=20= > 201) > at java.lang.Thread.run(Unknown Source) > > and only after that HyperContent2 asks me to input username and =20 > password. But > when I press button "Submit Query" after putting in all necessary data > computer's processor becomes busy by tomcat process for 100% for 5-10 =20= > minutes. > After that time nothing is published, but H2 asks me to input data =20 > again or > sometimes I'm getting other errors with workflow-data. > When username and password is shown in the project-definition.xml > directly(<argument index=3D"1" value=3D"..."/> > <argument index=3D"2" value=3D"..."/>) everything works perfect. > > Thank you! > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log = =20 > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD = SPLUNK! > http://ads.osdn.com/?ad_idv37&alloc_id=16865&op=3Dclick > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > |
From: <ke...@la...> - 2005-12-06 18:48:38
|
I can see the form to put in the username and password, but when I submit= this form computer goes down for few minutes. Wich class is processing this fo= rm after submit? Cit=E7ju Alex Vigdor <av...@co...>: > Hi, > I probably should reclassify that error as a debug message: the =3D > =3D20 > UserInputException is how the filesystem communicates to the 2.0 =3D20 > framework that a login is required to access it. So it is a useful =3D= 20 > exception; it triggers the username and password prompts to appear on =3D= 20=3D >=20 > the Publish workflow screen. This may take a few seconds, so you may =3D= 20=3D >=20 > not see the login box initially, but it will show up once the =3D20 > asynchronous batch processor kicks off the publishing process. You =3D= 20 > don't need to make any changes to the project definition. >=20 > I've posted a screenshot of how the login box will appear on the 2.0 =3D= 20 > help site >=20 > http://hypercontent.sourceforge.net/help/project/filesystems/login.html >=20 > Cheers, > Alex >=20 > On Dec 6, 2005, at 8:15 AM, ke...@la... wrote: >=20 > > Hello! > > > > What should I write in the project-definition.xml file to publish my = =3D20=3D >=20 > > project to > > the remote server? > > > > When I'm trying to use the same definition as was used in the > > project-definition.xml from HyperContent 1.4( > > <publish base-url=3D3D"http://www.lu.lv/"> > > <filesystem-def name=3D3D"lu_publish" type=3D3D"sftp"> > > <argument index=3D3D"0" value=3D3D"www.lu.lv"/> > > <argument index=3D3D"1" prompt=3D3D"username" =3D > type=3D3D"text"/> > > <argument index=3D3D"2" prompt=3D3D"password" =3D > type=3D3D"password"/> > > <argument index=3D3D"3" value=3D3D"/var/www/html/"/> > > <argument index=3D3D"4" value=3D3D"0775"/> > > </filesystem-def> > > </publish> > > ), I'm getting the error in the log file: > > > > ERROR 2005-12-06 16:10:48,671 > > org.hypercontent.project.exceptions.UserInputException: You must ente= r =3D > =3D20 > > valid > > responses to the user prompts > > at > > =3D > org.hypercontent.filesystem.FileSystemFactory.mountFileSystemManager(Fi= =3D20=3D >=20 > > leSystemFactory.java:180) > > at =3D > org.hypercontent.filesystem.FSMount.getManager(FSMount.java:86) > > at > > =3D > org.hypercontent.workflow.exec.impl.AbstractBatchExecutable.cleanup(Abs= =3D20=3D >=20 > > tractBatchExecutable.java:562) > > at =3D20 > > org.hypercontent.workflow.thread.BatchMonitor.run(BatchMonitor.java:=3D= 20=3D >=20 > > 201) > > at java.lang.Thread.run(Unknown Source) > > > > and only after that HyperContent2 asks me to input username and =3D20 > > password. But > > when I press button "Submit Query" after putting in all necessary dat= a > > computer's processor becomes busy by tomcat process for 100% for 5-10= =3D20=3D >=20 > > minutes. > > After that time nothing is published, but H2 asks me to input data =3D= 20 > > again or > > sometimes I'm getting other errors with workflow-data. > > When username and password is shown in the project-definition.xml > > directly(<argument index=3D3D"1" value=3D3D"..."/> > > <argument index=3D3D"2" value=3D3D"..."/>) everything works perfect. > > > > Thank you! > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through lo= g =3D > =3D20 > > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD =3D > SPLUNK! > > http://ads.osdn.com/?ad_idv37&alloc_id=3D16865&op=3D3Dclick > > _______________________________________________ > > Hypercontent-users mailing list > > Hyp...@li... > > https://lists.sourceforge.net/lists/listinfo/hypercontent-users > > >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log = files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick > _______________________________________________ > Hypercontent-users mailing list > Hyp...@li... > https://lists.sourceforge.net/lists/listinfo/hypercontent-users >=20 >=20 |
From: Alex V. <av...@co...> - 2005-12-07 06:33:09
|
The IFormProcessor implementation that receives the username and =20 password is org.hypercontent.form.common.ExecutableInputProcessor It loads the Executable associated with the publish request by ID, sets =20= the username and password on the stored UserInputException object, =20 stores the updated Executable and requeues it for asynchronous =20 execution. The Executable implementation is org.hypercontent.workflow.exec.impl.CopyingBatchExecutable but the code that mounts the SFTP filesystem is in the base class it =20 shares with RenderingBatchExecutable org.hypercontent.workflow.exec.impl.AbstractBatchExecutable in the execute() method at line 188. -Alex On Dec 6, 2005, at 12:23 PM, ke...@la... wrote: > I can see the form to put in the username and password, but when I =20 > submit this > form computer goes down for few minutes. Wich class is processing this = =20 > form > after submit? > > Cit=C4=93ju Alex Vigdor <av...@co...>: > >> Hi, >> I probably should reclassify that error as a debug message: the = =3D >> =3D20 >> UserInputException is how the filesystem communicates to the 2.0 =3D20 >> framework that a login is required to access it. So it is a useful =20= >> =3D20 >> exception; it triggers the username and password prompts to appear on = =20 >> =3D20=3D >> >> the Publish workflow screen. This may take a few seconds, so you may = =20 >> =3D20=3D >> >> not see the login box initially, but it will show up once the =3D20 >> asynchronous batch processor kicks off the publishing process. You =20= >> =3D20 >> don't need to make any changes to the project definition. >> >> I've posted a screenshot of how the login box will appear on the 2.0 =20= >> =3D20 >> help site >> >> http://hypercontent.sourceforge.net/help/project/filesystems/=20 >> login.html >> >> Cheers, >> Alex >> >> On Dec 6, 2005, at 8:15 AM, ke...@la... wrote: >> >>> Hello! >>> >>> What should I write in the project-definition.xml file to publish my = =20 >>> =3D20=3D >> >>> project to >>> the remote server? >>> >>> When I'm trying to use the same definition as was used in the >>> project-definition.xml from HyperContent 1.4( >>> <publish base-url=3D3D"http://www.lu.lv/"> >>> <filesystem-def name=3D3D"lu_publish" type=3D3D"sftp"> >>> <argument index=3D3D"0" value=3D3D"www.lu.lv"/> >>> <argument index=3D3D"1" prompt=3D3D"username" =3D >> type=3D3D"text"/> >>> <argument index=3D3D"2" prompt=3D3D"password" =3D >> type=3D3D"password"/> >>> <argument index=3D3D"3" = value=3D3D"/var/www/html/"/> >>> <argument index=3D3D"4" value=3D3D"0775"/> >>> </filesystem-def> >>> </publish> >>> ), I'm getting the error in the log file: >>> >>> ERROR 2005-12-06 16:10:48,671 >>> org.hypercontent.project.exceptions.UserInputException: You must =20 >>> enter =3D >> =3D20 >>> valid >>> responses to the user prompts >>> at >>> =3D >> = org.hypercontent.filesystem.FileSystemFactory.mountFileSystemManager(F=20= >> i=3D20=3D >> >>> leSystemFactory.java:180) >>> at =3D >> org.hypercontent.filesystem.FSMount.getManager(FSMount.java:86) >>> at >>> =3D >> = org.hypercontent.workflow.exec.impl.AbstractBatchExecutable.cleanup(Ab=20= >> s=3D20=3D >> >>> tractBatchExecutable.java:562) >>> at =3D20 >>> org.hypercontent.workflow.thread.BatchMonitor.run(BatchMonitor.java:=20= >>> =3D20=3D >> >>> 201) >>> at java.lang.Thread.run(Unknown Source) >>> >>> and only after that HyperContent2 asks me to input username and =3D20 >>> password. But >>> when I press button "Submit Query" after putting in all necessary =20= >>> data >>> computer's processor becomes busy by tomcat process for 100% for =20 >>> 5-10 =3D20=3D >> >>> minutes. >>> After that time nothing is published, but H2 asks me to input data =20= >>> =3D20 >>> again or >>> sometimes I'm getting other errors with workflow-data. >>> When username and password is shown in the project-definition.xml >>> directly(<argument index=3D3D"1" value=3D3D"..."/> >>> <argument index=3D3D"2" value=3D3D"..."/>) everything works perfect. >>> >>> Thank you! >>> >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.net email is sponsored by: Splunk Inc. Do you grep through =20= >>> log =3D >> =3D20 >>> files >>> for problems? Stop! Download the new AJAX search engine that makes >>> searching your log files as easy as surfing the web. DOWNLOAD =3D >> SPLUNK! >>> http://ads.osdn.com/?ad_idv37&alloc_id=3D16865&op=3D3Dclick >>> _______________________________________________ >>> Hypercontent-users mailing list >>> Hyp...@li... >>> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >>> >> >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through =20= >> log files >> for problems? Stop! Download the new AJAX search engine that makes >> searching your log files as easy as surfing the web. DOWNLOAD =20 >> SPLUNK! >> http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick >> _______________________________________________ >> Hypercontent-users mailing list >> Hyp...@li... >> https://lists.sourceforge.net/lists/listinfo/hypercontent-users >> >> > > > > |
From: John F. <ja...@co...> - 2005-12-12 16:21:36
|
How difficult would it be to add a custom editor to hypercontent? Here's what I have in mind. One of the cool things about HC is the navigation editor and I was wondering what it would take to extend that functionality to allow edition of a more complex xml file. I have a site that contains two or three pages that include some common content, in this case information about releases that are available for the project. Rather than edit each page which contains information about releases I thought it would be useful to have an editor which just edited the release information and then use an appropriate stylesheet to render the necessary content on each page. For example, let's say my xml looks something like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE release-template SYSTEM "/config/dtd/releases.dtd"> <releases> <release version="2.5.1" stable="true"> <label>QuickStart</label> <type>GA</type> <date>2005-10-19</date> <download> http://www.yale.edu/its/tp/portal-dist/251/quickstart/uPortal_rel-2-5-1-quick-start.zip </download> <md5 /> <description> General Audience release of uPortal 2.5.1 </description> <notes> http://tp.its.yale.edu/~awp9/published/jasig/up2/rel-2-5-1/releaseNotes.txt </notes> </release> <release version="3.0.0" stable="false"> <label>uPortal-only</label> <type>M2</type> <date>2005-10-12</date> <download> http://mis105.mis.udel.edu/ja-sig/uportaldist/uPortal_rel-3-0-0-M2.zip </download> <md5> http://mis105.mis.udel.edu/ja-sig/uportaldist/uPortal_rel-3-0-0-M2.zip.md5 </md5> <description> Developers Release of uPortal 3 Milestone 2 </description> <notes>https://clearinghouse.ja-sig.org/wiki/x/eCw</notes> </release> </releases> If a custom "releases" editor could be created it might present a page somewhat like the navigation editor that would allow me to "add" a release. Then I would get a form which would let me fill out the attributes and nodes I described above. Has anyone done anything like this? |
From: Alex V. <av...@co...> - 2005-12-12 19:43:19
|
Hi John, The most straightforward way of dealing with custom XML files in = =20 HyperContent is to define the format as a DTD, which will then be used =20= to automatically generate the web forms. You can then reference that =20= data from any other page as an XML include, or by using the XSL =20 document() function during the transform. I would recommend starting =20= there; you can add a custom GUI for editing release XML files later, if =20= you feel it would be of some benefit. I will work on some =20 documentation on how to go about creating custom GUIs. Your dtd might look something like <!ELEMENT releases (release*)> <!ELEMENT release (label,date,download,description,type?,md5?,notes?)> <!ATTLIST release version CDATA #REQUIRED stable (true|false) 'false' > <!ELEMENT label (#PCDATA)> <!ELEMENT description (html)> etc . . . and your doc(type) <xml-doc definition=3D"/config/dtd/releases.dtd" root=3D"releases" =20 path=3D"/releases.xml"/> Alex On Dec 12, 2005, at 11:21 AM, John Fereira wrote: > > How difficult would it be to add a custom editor to hypercontent?=A0 =20= > Here's what I have in mind.=A0 One of the cool things about HC is the =20= > navigation editor and I was wondering what it would take to extend =20 > that functionality to allow edition of a more complex xml file.=A0 > > I have a site that contains two or three pages that include some =20 > common content, in this case information about releases that are =20 > available for the project.=A0 Rather than edit each page which = contains =20 > information about releases I thought it would be useful to have an =20 > editor which just edited the release information and then use an =20 > appropriate stylesheet to render the necessary content on each page. > > For example, let's say my xml looks something like this: > > <? xml version =3D "1.0" encoding =3D "UTF-8" ?> > <!DOCTYPE release-template SYSTEM "/config/dtd/releases.dtd"> > <releases> > =A0=A0 <release ve r s ion=3D"2.5.1" s table=3D"tru e"> > =A0=A0=A0=A0 <label>Quic kStart< / l a bel> > =A0=A0=A0=A0=A0 <t ype>GA</ type> > =A0=A0=A0=A0 <date>200 5-10 -19</date > > =A0=A0=A0=A0=A0 <d ownload> > =A0 =A0=A0=A0=A0=A0 ht t p ://www.yale.e du/its/ t p/portal-dist = /251/quic k =20 > star t/uPortal _ rel-2-5-1 -quick-star t .zip > =A0=A0=A0=A0=A0 </do w n load> > =A0=A0=A0=A0=A0 <md5 /> > =A0 =A0=A0=A0=A0 <description> > =A0=A0=A0=A0=A0=A0=A0=A0 General Audience release o f uPortal 2.5. 1 > =A0=A0=A0=A0=A0 < /description > > =A0=A0=A0=A0=A0 <notes> > =A0=A0 =A0=A0=A0=A0 http : // tp.its.yale. e d u /~awp9/publis = hed/jas i =20 > g/up2/rel-2-5 -1/releas e Note s.txt > =A0=A0 =A0 </notes > > =A0=A0 </relea se> > > =A0=A0 <release v e rsion=3D"3.0.0" stable=3D "false"> > =A0=A0=A0=A0=A0 <label>uPortal-only</label> > =A0=A0=A0=A0=A0 <type>M2 </type> > =A0 =A0=A0=A0 <date>2005 -10-12</d ate> > =A0=A0=A0=A0=A0 < download> > =A0=A0=A0=A0 =A0 http://mis105 .mis.ud e l.edu/ja-sig /uportald i = st/u =20 > Portal_re l -3-0-0-M2 .zip > =A0=A0=A0=A0=A0 < /download> > =A0=A0=A0=A0 <m d 5> > =A0=A0=A0=A0=A0=A0=A0=A0 h =20 > (http://mis105.mis.udel.edu/ja-sig/uportaldist/uPortal_rel-3-0-0-=20 > M2.zip.md5) ttp://mi s105.mis.udel.ed u/ja-sig/ u port aldist/uP o =20 > rtal_rel- 3-0-0-M2.zi p .md5 > =20 > (http://mis105.mis.udel.edu/ja-sig/uportaldist/uPortal_rel-3-0-0-=20 > M2.zip.md5)=A0=A0=A0=A0=A0 </ m d 5> > =A0=A0=A0=A0=A0 <des cription > > =A0=A0=A0=A0=A0=A0=A0=A0 Developers Re leas e of uPort al 3 Milestone = 2 > =A0=A0 =A0 </description> > =A0 =A0 <notes> https: //cleari nghouse.ja- sig.org/w i ki/x = /eCw</not e =20 > s> > =A0=A0 </r elease> > > </r eleases> > > If a custom "releases" editor could be created it might present a page = =20 > somewhat like the navigation editor that would allow me to "add" a =20 > release.=A0 Then I would get a form which would let me fill out the =20= > attributes and nodes I described above.=A0 > > Has anyone done anything like this? > =A0=20= |