|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Including other contribs in a contrib: incorrect URLHi, I am trying to include the "Crypto" contrib (I added a 0.8 Manifest file) in the "RpcConsole" contrib. For rpcconsole.demo.Application, I add the contrib in the config.json's library key: "libraries" : { "library" : [ { "manifest" : "../../Manifest.json" }, { "manifest" : "contrib://Crypto/trunk/Manifest.json" } ] }, ... Then I add #require(openpgp.sha1) to the Application's main file. However, when the include script is generated, the URL for the openpgp.sha1 class is http://localhost:8080/var/folders/gV/gVYy8H8NFISMbzjhQsmLW%2B%2B%2B%2BTM/-Tmp-/cache/downloads/Crypto/trunk/source/class/openpgp/sha1.js which obviously cannot work. Of course, I can change the location of the cache folder, but the default is the temp folder - so is this a design problem or am I doing something wrong? Christian -- View this message in context: http://n2.nabble.com/Including-other-contribs-in-a-contrib-incorrect-URL-tp3966150p3966150.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: Including other contribs in a contrib: incorrect URL>
> Hi, > > I am trying to include the "Crypto" contrib (I added a 0.8 Manifest file) > in > the "RpcConsole" contrib. For rpcconsole.demo.Application, I add the > contrib in the config.json's library key: > > "libraries" : > { > "library" : > [ > { > "manifest" : "../../Manifest.json" > }, > { > "manifest" : "contrib://Crypto/trunk/Manifest.json" > } > ] > }, ... > > Then I add #require(openpgp.sha1) to the Application's main file. However, > when the include script is generated, the URL for the openpgp.sha1 class > is > http://localhost:8080/var/folders/gV/gVYy8H8NFISMbzjhQsmLW%2B%2B%2B%2BTM/-Tmp-/cache/downloads/Crypto/trunk/source/class/openpgp/sha1.js 1. This is certainly not the URL as it is generated in your script/rpcconsole.js, right?! So where do you see it? In Firebug? 2. It looks like you're running your source version through a web server. This cannot work unless you take special precautions. See http://qooxdoo.org/documentation/0.8/snippets#running_a_source_version_from_a_web_server. In your case, you have to make your cache/downloads path accessible by the web server. Or you configure the "cache/downloads" config key to a more convenient path for your downloads. T. > > which obviously cannot work. Of course, I can change the location of the > cache folder, but the default is the temp folder - so is this a design > problem or am I doing something wrong? > > Christian > -- > View this message in context: > http://n2.nabble.com/Including-other-contribs-in-a-contrib-incorrect-URL-tp3966150p3966150.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@... > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: Including other contribs in a contrib: incorrect URLthron7-2 wrote: > >> >> Hi, >> >> I am trying to include the "Crypto" contrib (I added a 0.8 Manifest file) >> in >> the "RpcConsole" contrib. For rpcconsole.demo.Application, I add the >> contrib in the config.json's library key: >> >> "libraries" : >> { >> "library" : >> [ >> { >> "manifest" : "../../Manifest.json" >> }, >> { >> "manifest" : "contrib://Crypto/trunk/Manifest.json" >> } >> ] >> }, ... >> >> Then I add #require(openpgp.sha1) to the Application's main file. >> However, >> when the include script is generated, the URL for the openpgp.sha1 class >> is >> http://localhost:8080/var/folders/gV/gVYy8H8NFISMbzjhQsmLW%2B%2B%2B%2BTM/-Tmp-/cache/downloads/Crypto/trunk/source/class/openpgp/sha1.js > > 1. This is certainly not the URL as it is generated in your > script/rpcconsole.js, right?! So where do you see it? In Firebug? > > Yes, it is the load url generated by ./generate.py source and passed to the script loader in scrpt/rpcconsole.js thron7-2 wrote: > > > 2. It looks like you're running your source version through a web server. > This cannot work unless you take special precautions. See > http://qooxdoo.org/documentation/0.8/snippets#running_a_source_version_from_a_web_server. > In your case, you have to make your cache/downloads path accessible by the > web server. Or you configure the "cache/downloads" config key to a more > convenient path for your downloads. > > Oh, I wasn't aware that developing the source version right from the file system was the recommended way. In any way, that's not an option for me, I need the server because I need the json-rpc backend - we discussed that before. Then the solution is to configure the cache/downloads key as you suggest. Thanks, Christian -- View this message in context: http://n2.nabble.com/Including-other-contribs-in-a-contrib-incorrect-URL-tp3966150p3967585.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
|
|
Re: Including other contribs in a contrib: incorrect URLOn Sun, Nov 8, 2009 at 04:35, panyasan <info@...> wrote:
Oh, I wasn't aware that developing the source version right from the file As you know, working with RPC or other qx.io.remote.* requests REQUIRES that the development be via web server (unless you want to develop with cross-domain hassles, which I don't). The end of the wiki section pointed to by Thomas discusses the other of what I'd call recommended development strategy, which is to allow access from the web server to your local file system. This should be done in a secure fashion, however. I think I've posted this before, but here again is the snippet of my Apache2 configuration that allows me to access my home directory via the web server ONLY if the request comes from "localhost" (127.0.0.1): <VirtualHost 127.0.0.1> ServerAdmin webmaster@localhost DocumentRoot /home/derrell/ME/ <Directory /home/derrell/ME/> Options FollowSymLinks AllowOverride None Order Allow,Deny Allow from All </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined ServerSignature On </VirtualHost> That section is added to the beginning of my "/etc/apache2/sites-enabled/000-default" file. I can then access my qooxdoo development environment, e.g. for my qooxit project in qooxdoo-contrib, using a URL like http://localhost/qooxdoo/qooxdoo-contrib/trunk/qooxdoo-contrib/qooxit/trunk/source/index.html Derrell ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@... https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel |
| Free embeddable forum powered by Nabble | Forum Help |