| View previous topic :: View next topic |
| Author |
Message |
kingrs
Joined: 15 Jan 2006 Posts: 30 Location: Stafford, UK
|
Posted: Sun Jan 15, 2006 2:56 pm Post subject: TestImage package uploaded |
|
|
I have designed a simple form using glade and added some code, compiled it into a package using "pear package" and uploaded it to your site.
When will it appear in the list of packages?
I am in the process of writting an expenses claim GUI app. for offline use.
Currently the users have a web interface but when they go off travelling they need something they can use on their travels.
When they connect back into the works network my app. can sync all their expense claims back to the main system.
I'm not sure how to protect the password in the gtk2 script for the connection back to the main mysql database.
Any ideas?
Cheers
Rob |
|
| Back to top |
|
 |
puzzler Site Admin
Joined: 14 Nov 2005 Posts: 39 Location: Germany
|
Posted: Thu Jan 19, 2006 11:20 pm Post subject: |
|
|
sorry,
i thought christian will take a look and I was abroad for a little job the last days :-/
i will asap switch it online!
ralf |
|
| Back to top |
|
 |
puzzler Site Admin
Joined: 14 Nov 2005 Posts: 39 Location: Germany
|
Posted: Thu Jan 19, 2006 11:34 pm Post subject: |
|
|
I just tried to upload and release your package to the PEAR channel and it failed with an error message. I have to talk to christian about that, I think we should make that easier, too!
ralf |
|
| Back to top |
|
 |
kingrs
Joined: 15 Jan 2006 Posts: 30 Location: Stafford, UK
|
Posted: Fri Jan 20, 2006 2:02 am Post subject: |
|
|
Pear package installer is not picking up my latest release 0.0.2 it is still showing 0.0.1
You can download 0.0.2 manually.
I dont know how you get pear to install it from the PC?
Because of the odd places where it puts the data files test.php needs to be this:
| Code: | <?
$glade = & new GladeXML("./lib/pear/data/TestImage/test.glade"); // constructor takes up to 3 arguments (filename, root, domain)
// root and domain are optional, filename is not
$glade->signal_connect("on_button_ok_clicked","TestImage_quit");
$window_ok=$glade->get_widget("window_ok");
$image1= $glade->get_widget("image1");
$p = GdkPixbuf::new_from_file('./lib/pear/data/TestImage/test.png');
$image1->set_from_pixbuf($p);
function TestImage_quit() {
gtk::main_quit();
}
gtk::main();
?> |
|
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Fri Jan 20, 2006 7:52 am Post subject: |
|
|
| kingrs wrote: | Pear package installer is not picking up my latest release 0.0.2 it is still showing 0.0.1
You can download 0.0.2 manually.
I dont know how you get pear to install it from the PC?
Because of the odd places where it puts the data files test.php needs to be this: |
This package fails on Linux for several reasons:
- You are using short open tags "<?" instead of "<?php". I explicitely deactivated them on Gnope, and you enabled them by hand? If that's true, you will be the only one where it works.
- You're hard-linking the data directory. Pear has a method which returns it for you:
| Code: | | PEAR_Config::singleton()->get('data_dir') . DIRECTORY_SEPARATOR . 'mydir/myfile' | . Of course you need a | Code: | | require_once 'PEAR/Config.php'; | first :) |
|
| Back to top |
|
 |
kingrs
Joined: 15 Jan 2006 Posts: 30 Location: Stafford, UK
|
Posted: Fri Jan 20, 2006 9:35 am Post subject: |
|
|
Thanks for the info, changes made and it appears in the installer as version 0.0.3, try it again.
We can get there in the end with your guidance  |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Fri Jan 20, 2006 9:53 am Post subject: |
|
|
| kingrs wrote: | | try it again. |
I tried it again, and it doesn't work. You use a single backslash as directory separator - don't do that: Either escape it (two backslashes), use a normal slash or use the DIRECTORY_SEPARATOR constant. |
|
| Back to top |
|
 |
kingrs
Joined: 15 Jan 2006 Posts: 30 Location: Stafford, UK
|
Posted: Fri Jan 20, 2006 12:15 pm Post subject: |
|
|
Corrected that and uploaded as 0.0.4
Can you email me my channel admin details again as I am now at work.
Do you have to authorise this as a valid release before people can see and download it?
I am not sure about the package contents details, if I want to put a file in a directory about the install directory as data, how do I do it?
| Code: | <contents>
<dir baseinstalldir="Gnope/TestImage" name="/">
<file baseinstalldir="Gnope/TestImage" md5sum="965c7586f0ce7ad971a2773a6bdd9db6" name="main.php" role="php" />
<file baseinstalldir="Gnope/TestImage" md5sum="e35d40a872737762c43463ae31d2cde8" name="run.phpw" role="php" />
<file baseinstalldir="data/TestImage" md5sum="e35d40a872737762c43463ae31d2cde8" name="test.png" role="data" />
<file baseinstalldir="data/TestImage" md5sum="e35d40a872737762c43463ae31d2cde8" name="test.glade" role="data" />
</dir>
|
Also is there any program available to maintain the package.xml file? |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Sun Jan 22, 2006 2:01 pm Post subject: |
|
|
| kingrs wrote: | | Do you have to authorise this as a valid release before people can see and download it? |
No.
| Quote: | | I am not sure about the package contents details, if I want to put a file in a directory about the install directory as data, how do I do it? |
That does not work. You have to declare it as "php" to get it there.
| Quote: | | Also is there any program available to maintain the package.xml file? |
It's called "PEAR package file manager" and can be found at pear.php.net |
|
| Back to top |
|
 |
|