Changeset 5470
- Timestamp:
- Jul 7, 2017, 2:24:01 PM (4 years ago)
- Location:
- zero-lliurex-jclic-biblio/trunk/fuentes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
zero-lliurex-jclic-biblio/trunk/fuentes/debian/changelog
r5298 r5470 1 zero-lliurex-jclic-biblio (0.6) xenial; urgency=medium 2 3 * Updated elteumestre library to version 17 4 5 -- Juan Ramon Pelegrina <juapesai@hotmail.com> Fri, 07 Jul 2017 08:56:40 +0200 6 1 7 zero-lliurex-jclic-biblio (0.5-lliurex3) xenial; urgency=medium 2 8 -
zero-lliurex-jclic-biblio/trunk/fuentes/zero-lliurex-jclic-biblio.install-files/usr/bin/zero-lliurex-jclic-biblio-downloader
r3640 r5470 9 9 10 10 #####################DEFINICION DE VARIABLES############################################## 11 elteumestre="elteumestre_JClic_Infantil_Primaria_13 (4 GB)" 12 murcia="Murcia_0809 (2 GB)" 13 ratoli="JaumeBalmes_ Ratoli (3 GB)" 11 #elteumestre="elteumestre_JClic_Infantil_Primaria_13 (4 GB)" 12 elteumestre="elteumestre_JClic_Infantil_Primaria_17 (4 GB)" 13 #murcia="Murcia_0809 (2 GB)" 14 #ratoli="JaumeBalmes_ Ratoli (3 GB)" 14 15 15 16 #MARCA=$(gettext "Check") … … 19 20 20 21 IMAGENES_EL_TEU="http://www.lliurex.net/recursos/" 21 PACK_EL_TEU="elteumestre_JClic_Infantil_Primaria_13.zip" 22 IMAGENES_MURCIA="http://www.lliurex.net/recursos/" 23 PACK_MURCIA="Murcia_0809.tar.gz" 24 IMAGENES_RATOLI="http://www.lliurex.net/recursos/" 25 PACK_RATOLI="JaumeBalmes_Ratoli.tar.gz" 22 #PACK_EL_TEU="elteumestre_JClic_Infantil_Primaria_13.zip" 23 PACK_EL_TEU="elteumestre_JClic_Infantil_Primaria_17.zip" 24 #IMAGENES_MURCIA="http://www.lliurex.net/recursos/" 25 #PACK_MURCIA="Murcia_0809.tar.gz" 26 #IMAGENES_RATOLI="http://www.lliurex.net/recursos/" 27 #PACK_RATOLI="JaumeBalmes_Ratoli.tar.gz" 28 26 29 LOG=/tmp/jclic_biblio.log 27 30 TEST="0" … … 244 247 ;; 245 248 246 247 "murcia") 248 249 250 # 251 # "murcia") 252 # 249 253 #inicializo variables 250 PATH_TO_JCLIC_PROJECTS=$3251 PATH_INSTALLED="$(find $3 -maxdepth 1 -mindepth 1 -xtype d -name '*urcia*')"252 #Creo la URL para la descarga253 URL="$IMAGENES_MURCIA$PACK_MURCIA"254 PACK_SELECT="$murcia"255 256 if [ "$1" = "install" ]; then257 if [ ! -d "$PATH_INSTALLED" ]; then258 echo ""259 echo ""260 echo "Select to install $PACK_SELECT in $3$PATH_INSTALLED"261 echo "--------------------------------------------------------------"254 # PATH_TO_JCLIC_PROJECTS=$3 255 # PATH_INSTALLED="$(find $3 -maxdepth 1 -mindepth 1 -xtype d -name '*urcia*')" 256 # #Creo la URL para la descarga 257 # URL="$IMAGENES_MURCIA$PACK_MURCIA" 258 # PACK_SELECT="$murcia" 259 # 260 # if [ "$1" = "install" ]; then 261 # if [ ! -d "$PATH_INSTALLED" ]; then 262 # echo "" 263 # echo "" 264 # echo "Select to install $PACK_SELECT in $3$PATH_INSTALLED" 265 # echo "--------------------------------------------------------------" 262 266 263 267 264 268 #Compruebo si la URL es operativa 265 if wget --spider -o $LOG "$URL"; then266 267 echo "URL $URL exists, download it......."268 rm $LOG > /dev/null 2>&1269 #Obtengo el nombre del fichero a descargar270 NAME=$(echo $URL | rev | cut -d "/" -f1 | rev)271 if [ -f /tmp/$NAME ]; then272 #El fichero fue descargado anteriormente, lo borrro, para descargarlo de nuevo.273 echo "Delete /tmp/$NAME because it was downloaded before"274 rm /tmp/$NAME*275 fi269 # if wget --spider -o $LOG "$URL"; then 270 # 271 # echo "URL $URL exists, download it......." 272 # rm $LOG > /dev/null 2>&1 273 # #Obtengo el nombre del fichero a descargar 274 # NAME=$(echo $URL | rev | cut -d "/" -f1 | rev) 275 # if [ -f /tmp/$NAME ]; then 276 # #El fichero fue descargado anteriormente, lo borrro, para descargarlo de nuevo. 277 # echo "Delete /tmp/$NAME because it was downloaded before" 278 # rm /tmp/$NAME* 279 # fi 276 280 277 281 #Creo la variable aux que tiene la instruccion de descarga y la descargo como usuario de la maquina. 278 aux="zero-lliurex-axel $URL /tmp"279 su $USER -c "$aux"282 # aux="zero-lliurex-axel $URL /tmp" 283 # su $USER -c "$aux" 280 284 281 285 # testeo si lo descargado esta bien 282 test_file "$URL" "$NAME"283 284 #Instalo la libreria descargada si todo fue bien anteriormente.285 if [ "$TEST" = "1" ]; then286 echo "Install NAME: $NAME in PATH_TO_JCLIC_PROJECTS: $PATH_TO_JCLIC_PROJECTS"287 install_jclic $NAME $PATH_TO_JCLIC_PROJECTS288 289 if [ "$SALIR" = "0" ]; then286 # test_file "$URL" "$NAME" 287 288 # #Instalo la libreria descargada si todo fue bien anteriormente. 289 # if [ "$TEST" = "1" ]; then 290 # echo "Install NAME: $NAME in PATH_TO_JCLIC_PROJECTS: $PATH_TO_JCLIC_PROJECTS" 291 # install_jclic $NAME $PATH_TO_JCLIC_PROJECTS 292 # 293 # if [ "$SALIR" = "0" ]; then 290 294 #salgo de la funcion ya que fallo la extension del fichero, no era la esperada 291 echo ""292 else293 #La extension del fichero era la correcta294 if [ "$EXITO" = "0" ]; then295 # echo "" 296 # else 297 # #La extension del fichero era la correcta 298 # if [ "$EXITO" = "0" ]; then 295 299 #Todo fue bien 296 300 #Borro la libreria descargada una vez instalada 297 rm /tmp/$NAME*301 # rm /tmp/$NAME* 298 302 #CAMBIO EL NOMBRE AL DIRECTORIO LOS ESPACIOS NO SE LLEVAN BIEN EN EL JCLIC 299 PATH_INSTALLED="$(/usr/bin/find $3 -maxdepth 1 -mindepth 1 -xtype d -name '*urcia*')"300 echo "_________________________________________________"301 echo ""302 echo "Estaba instalado en $PATH_INSTALLED y se movera a $PATH_TO_JCLIC_PROJECTS/Murcia"303 mv "$PATH_INSTALLED" "$PATH_TO_JCLIC_PROJECTS/Murcia"304 echo "_________________________________________________"305 echo306 echo "Congratulations!!!!"307 echo "$PACK_SELECT has been installed in your system the library in $PATH_TO_JCLIC_PROJECTS"308 echo "Now you can enjoy it."309 echo ""310 su -c "notify-send -t 3000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACK_SELECT has been installed in your system the library in $PATH_TO_JCLIC_PROJECTS'" $USER311 zenity --info --title="Zero-jClic-Biblio" --text="$PACK_SELECT has been installed in your system the library in $PATH_TO_JCLIC_PROJECTS" > /dev/null 2>&1 &312 else313 #fallo al descomprimir la biblioteca314 su -c "notify-send -t 3000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACK_SELECT cannot be installed in your system, because the uncompressing fail. Please download it again and if the error persist contact with Lliurex Team'" $USER315 zenity --info --title="Zero-jClic-Biblio" --text="$PACK_SELECT cannot be installed in your system, because the uncompressing fail. Please download it again and if the error persist contact with Lliurex Team" > /dev/null 2>&1 &316 fi317 fi318 fi319 320 else303 # PATH_INSTALLED="$(/usr/bin/find $3 -maxdepth 1 -mindepth 1 -xtype d -name '*urcia*')" 304 # echo "_________________________________________________" 305 # echo "" 306 # echo "Estaba instalado en $PATH_INSTALLED y se movera a $PATH_TO_JCLIC_PROJECTS/Murcia" 307 # mv "$PATH_INSTALLED" "$PATH_TO_JCLIC_PROJECTS/Murcia" 308 # echo "_________________________________________________" 309 # echo 310 # echo "Congratulations!!!!" 311 # echo "$PACK_SELECT has been installed in your system the library in $PATH_TO_JCLIC_PROJECTS" 312 # echo "Now you can enjoy it." 313 # echo "" 314 # su -c "notify-send -t 3000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACK_SELECT has been installed in your system the library in $PATH_TO_JCLIC_PROJECTS'" $USER 315 # zenity --info --title="Zero-jClic-Biblio" --text="$PACK_SELECT has been installed in your system the library in $PATH_TO_JCLIC_PROJECTS" > /dev/null 2>&1 & 316 # else 317 # #fallo al descomprimir la biblioteca 318 # su -c "notify-send -t 3000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACK_SELECT cannot be installed in your system, because the uncompressing fail. Please download it again and if the error persist contact with Lliurex Team'" $USER 319 # zenity --info --title="Zero-jClic-Biblio" --text="$PACK_SELECT cannot be installed in your system, because the uncompressing fail. Please download it again and if the error persist contact with Lliurex Team" > /dev/null 2>&1 & 320 # fi 321 # fi 322 # fi 323 # 324 # else 321 325 #La URL no es accesible, salida. 322 echo "You select install $PACK_SELECT,"323 echo "it needs this URL $URL and it is not accesible."324 echo "Please contact with Lliurex-Team"325 zenity --info --title="Zero-jClic-Biblio" --text="You select install $PACK_SELECT, sorry but your URL $URL is not accesible, contact with Lliurex-Team and send this file $LOG" > /dev/null 2>&1 &326 fi327 fi328 fi329 if [ "$1" = "remove" ]; then330 331 if [ -d "$PATH_INSTALLED" ]; then332 echo ""333 echo ""334 echo "Select to remove $PACK_SELECT"335 echo "--------------------------------------------------------------"336 echo "$PACK_SELECT has been removed from your system in $PATH_INSTALLED succesfully"337 rm -R "$PATH_INSTALLED" | zenity --progress --auto-close --pulsate --width 500 --title="Zero-jClic-Biblio-Installer" --text="Removing $PACK_SELECT, please wait........." --no-cancel > /dev/null 2>&1338 su -c "notify-send -t 3000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACK_SELECT has been removed from your system succesfully'" $USER339 zenity --info --title="Zero-jClic-Biblio" --text="$PACK_SELECT has been removed from your system succesfully" > /dev/null 2>&1 &340 fi341 fi342 343 ;;344 345 "ratoli")346 326 # echo "You select install $PACK_SELECT," 327 # echo "it needs this URL $URL and it is not accesible." 328 # echo "Please contact with Lliurex-Team" 329 # zenity --info --title="Zero-jClic-Biblio" --text="You select install $PACK_SELECT, sorry but your URL $URL is not accesible, contact with Lliurex-Team and send this file $LOG" > /dev/null 2>&1 & 330 # fi 331 # fi 332 # fi 333 # if [ "$1" = "remove" ]; then 334 335 # if [ -d "$PATH_INSTALLED" ]; then 336 # echo "" 337 # echo "" 338 # echo "Select to remove $PACK_SELECT" 339 # echo "--------------------------------------------------------------" 340 # echo "$PACK_SELECT has been removed from your system in $PATH_INSTALLED succesfully" 341 # rm -R "$PATH_INSTALLED" | zenity --progress --auto-close --pulsate --width 500 --title="Zero-jClic-Biblio-Installer" --text="Removing $PACK_SELECT, please wait........." --no-cancel > /dev/null 2>&1 342 # su -c "notify-send -t 3000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACK_SELECT has been removed from your system succesfully'" $USER 343 # zenity --info --title="Zero-jClic-Biblio" --text="$PACK_SELECT has been removed from your system succesfully" > /dev/null 2>&1 & 344 # fi 345 # fi 346 # 347 # ;; 348 # 349 # "ratoli") 350 # 347 351 #inicializo variables para el caso del borrado 348 PATH_TO_JCLIC_PROJECTS=$3349 PATH_INSTALLED="$(find $3 -maxdepth 1 -mindepth 1 -xtype d -name 'ratoli')"352 # PATH_TO_JCLIC_PROJECTS=$3 353 # PATH_INSTALLED="$(find $3 -maxdepth 1 -mindepth 1 -xtype d -name 'ratoli')" 350 354 #Creo la URL para la descarga 351 URL="$IMAGENES_RATOLI$PACK_RATOLI"352 PACK_SELECT="$ratoli"353 if [ "$1" = "install" ]; then354 if [ ! -d "$PATH_INSTALLED" ]; then355 echo ""356 echo ""357 echo "Select to install $PACK_SELECT in $3$PATH_INSTALLED"358 echo "--------------------------------------------------------------"359 360 355 # URL="$IMAGENES_RATOLI$PACK_RATOLI" 356 # PACK_SELECT="$ratoli" 357 # if [ "$1" = "install" ]; then 358 # if [ ! -d "$PATH_INSTALLED" ]; then 359 # echo "" 360 # echo "" 361 # echo "Select to install $PACK_SELECT in $3$PATH_INSTALLED" 362 # echo "--------------------------------------------------------------" 363 # 364 # 361 365 #Compruebo si la URL es operativa 362 if wget --spider -o $LOG "$URL"; then363 364 echo "URL $URL exists, download it......."365 rm $LOG > /dev/null 2>&1366 # if wget --spider -o $LOG "$URL"; then 367 # 368 # echo "URL $URL exists, download it......." 369 # rm $LOG > /dev/null 2>&1 366 370 #Obtengo el nombre del fichero a descargar 367 NAME=$(echo $URL | rev | cut -d "/" -f1 | rev)368 if [ -f /tmp/$NAME ]; then371 # NAME=$(echo $URL | rev | cut -d "/" -f1 | rev) 372 # if [ -f /tmp/$NAME ]; then 369 373 #El fichero fue descargado anteriormente, lo borrro, para descargarlo de nuevo. 370 echo "Delete /tmp/$NAME because it was downloaded before"371 rm /tmp/$NAME*372 fi373 374 # echo "Delete /tmp/$NAME because it was downloaded before" 375 # rm /tmp/$NAME* 376 # fi 377 # 374 378 #Creo la variable aux que tiene la instruccion de descarga y la descargo como usuario de la maquina. 375 aux="zero-lliurex-axel $URL /tmp"376 su $USER -c "$aux"379 # aux="zero-lliurex-axel $URL /tmp" 380 # su $USER -c "$aux" 377 381 378 # testeo si lo descargado esta bien379 test_file "$URL" "$NAME"382 # # testeo si lo descargado esta bien 383 # test_file "$URL" "$NAME" 380 384 381 385 #Instalo la libreria descargada si todo fue bien anteriormente. 382 if [ "$TEST" = "1" ]; then383 echo "Install NAME: $NAME in PATH_TO_JCLIC_PROJECTS: $PATH_TO_JCLIC_PROJECTS"384 #install_jclic $NAME $PATH_TO_JCLIC_PROJECTS385 mkdir /tmp/ratoli386 install_jclic $NAME /tmp/ratoli386 # if [ "$TEST" = "1" ]; then 387 # echo "Install NAME: $NAME in PATH_TO_JCLIC_PROJECTS: $PATH_TO_JCLIC_PROJECTS" 388 # #install_jclic $NAME $PATH_TO_JCLIC_PROJECTS 389 # mkdir /tmp/ratoli 390 # install_jclic $NAME /tmp/ratoli 387 391 388 if [ "$SALIR" = "0" ]; then392 # if [ "$SALIR" = "0" ]; then 389 393 #salgo de la funcion ya que fallo la extension del fichero, no era la esperada 390 echo ""391 else394 # echo "" 395 # else 392 396 #La extension del fichero era la correcta 393 if [ "$EXITO" = "0" ]; then397 # if [ "$EXITO" = "0" ]; then 394 398 #Todo fue bien muevo la libreria a su sitio 395 ( mv /tmp/ratoli/jclic /tmp/ratoli/ratoli ; mv /tmp/ratoli/ratoli $NAME $PATH_TO_JCLIC_PROJECTS ) | zenity --progress --auto-close --pulsate --width 500 --title="Zero-jClic-Biblio-Installer" --text="Moving files, wait please......." --no-cancel > /dev/null 2>&1399 # ( mv /tmp/ratoli/jclic /tmp/ratoli/ratoli ; mv /tmp/ratoli/ratoli $NAME $PATH_TO_JCLIC_PROJECTS ) | zenity --progress --auto-close --pulsate --width 500 --title="Zero-jClic-Biblio-Installer" --text="Moving files, wait please......." --no-cancel > /dev/null 2>&1 396 400 397 401 #Borro la libreria descargada una vez instalada 398 rm /tmp/$NAME*399 echo "Congratulations!!!!"400 echo "$PACK_SELECT has been installed in your system the library in $PATH_TO_JCLIC_PROJECTS"401 echo "Now you can enjoy it."402 echo ""403 su -c "notify-send -t 3000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACK_SELECT has been installed in your system the library in $PATH_TO_JCLIC_PROJECTS'" $USER404 zenity --info --title="Zero-jClic-Biblio" --text="$PACK_SELECT has been installed in your system the library in $PATH_TO_JCLIC_PROJECTS" > /dev/null 2>&1 &405 else402 # rm /tmp/$NAME* 403 # echo "Congratulations!!!!" 404 # echo "$PACK_SELECT has been installed in your system the library in $PATH_TO_JCLIC_PROJECTS" 405 # echo "Now you can enjoy it." 406 # echo "" 407 # su -c "notify-send -t 3000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACK_SELECT has been installed in your system the library in $PATH_TO_JCLIC_PROJECTS'" $USER 408 # zenity --info --title="Zero-jClic-Biblio" --text="$PACK_SELECT has been installed in your system the library in $PATH_TO_JCLIC_PROJECTS" > /dev/null 2>&1 & 409 # else 406 410 #fallo al descomprimir la biblioteca 407 su -c "notify-send -t 3000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACK_SELECT cannot be installed in your system, because the uncompressing fail. Please download it again and if the error persist contact with Lliurex Team'" $USER408 zenity --info --title="Zero-jClic-Biblio" --text="$PACK_SELECT cannot be installed in your system, because the uncompressing fail. Please download it again and if the error persist contact with Lliurex Team" > /dev/null 2>&1 &409 fi410 fi411 fi412 413 else411 # su -c "notify-send -t 3000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACK_SELECT cannot be installed in your system, because the uncompressing fail. Please download it again and if the error persist contact with Lliurex Team'" $USER 412 # zenity --info --title="Zero-jClic-Biblio" --text="$PACK_SELECT cannot be installed in your system, because the uncompressing fail. Please download it again and if the error persist contact with Lliurex Team" > /dev/null 2>&1 & 413 # fi 414 # fi 415 # fi 416 417 # else 414 418 #La URL no es accesible, salida. 415 echo "You select install $PACK_SELECT," 416 echo "it needs this URL $URL and it is not accesible." 417 echo "Please contact with Lliurex-Team" 418 zenity --info --title="Zero-jClic-Biblio" --text="You select install $PACK_SELECT, sorry but your URL $URL is not accesible, contact with Lliurex-Team and send this file $LOG" > /dev/null 2>&1 & 419 fi 420 fi 421 fi 422 if [ "$1" = "remove" ]; then 423 424 if [ -d "$PATH_INSTALLED" ]; then 425 echo "" 426 echo "" 427 echo "Select to remove $PACK_SELECT" 428 echo "--------------------------------------------------------------" 429 echo "$PACK_SELECT has been removed from your system in $PATH_INSTALLED succesfully" 430 rm -R "$PATH_INSTALLED" | zenity --progress --auto-close --pulsate --width 500 --title="Zero-jClic-Biblio-Installer" --text="Removing $PACK_SELECT, please wait........." --no-cancel > /dev/null 2>&1 431 su -c "notify-send -t 3000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACK_SELECT has been removed from your system succesfully'" $USER 432 zenity --info --title="Zero-jClic-Biblio" --text="$PACK_SELECT has been removed from your system succesfully" > /dev/null 2>&1 & 433 fi 434 fi 435 436 ;; 419 # echo "You select install $PACK_SELECT," 420 # echo "it needs this URL $URL and it is not accesible." 421 # echo "Please contact with Lliurex-Team" 422 # zenity --info --title="Zero-jClic-Biblio" --text="You select install $PACK_SELECT, sorry but your URL $URL is not accesible, contact with Lliurex-Team and send this file $LOG" > /dev/null 2>&1 & 423 # fi 424 # fi 425 # fi 426 # if [ "$1" = "remove" ]; then 427 428 # if [ -d "$PATH_INSTALLED" ]; then 429 # echo "" 430 # echo "" 431 # echo "Select to remove $PACK_SELECT" 432 # echo "--------------------------------------------------------------" 433 # echo "$PACK_SELECT has been removed from your system in $PATH_INSTALLED succesfully" 434 # rm -R "$PATH_INSTALLED" | zenity --progress --auto-close --pulsate --width 500 --title="Zero-jClic-Biblio-Installer" --text="Removing $PACK_SELECT, please wait........." --no-cancel > /dev/null 2>&1 435 # su -c "notify-send -t 3000 -u critical -i /usr/share/icons/lliurex-neu/scalable/apps/zero-center.svg 'Zero-Installer' '$PACK_SELECT has been removed from your system succesfully'" $USER 436 # zenity --info --title="Zero-jClic-Biblio" --text="$PACK_SELECT has been removed from your system succesfully" > /dev/null 2>&1 & 437 # fi 438 # fi 439 440 # ;; 441 437 442 438 443 esac -
zero-lliurex-jclic-biblio/trunk/fuentes/zero-lliurex-jclic-biblio.install-files/usr/bin/zero-lliurex-jclic-biblio-setup
r3640 r5470 28 28 CLIENT_BASE_DIR=os.path.expanduser("~/JClic/projects/") 29 29 SERVER_BASE_DIR="/net/server-sync/share/jclic-aula/" 30 TEUMESTRE="elteumestre_JClic_Infantil_Primaria_13.7" 30 #TEUMESTRE="elteumestre_JClic_Infantil_Primaria_13.7" 31 TEUMESTRE="elteumestre_JClic_Infantil_Primaria_17" 32 33 ''' 31 34 MURCIA="Murcia" 32 35 JAUME="ratoli" 33 36 ''' 34 37 35 38 class JclicRsrc: … … 63 66 64 67 self.teumestre_checkbutton=builder.get_object("teumestre_checkbutton") 68 ''' 65 69 self.murcia_checkbutton=builder.get_object("murcia_checkbutton") 66 70 self.jaume_checkbutton=builder.get_object("jaume_checkbutton") 67 71 ''' 68 72 69 73 self.main_window.connect("destroy",self.quit) … … 134 138 if self.where_am_i==SERVER: 135 139 self.mestre_dir=SERVER_BASE_DIR+TEUMESTRE 140 ''' 136 141 self.murcia_dir=SERVER_BASE_DIR+MURCIA 137 142 self.jaume_dir=SERVER_BASE_DIR+JAUME 143 ''' 138 144 else: 139 145 self.mestre_dir=CLIENT_BASE_DIR+TEUMESTRE 146 ''' 140 147 self.murcia_dir=CLIENT_BASE_DIR+MURCIA 141 148 self.jaume_dir=CLIENT_BASE_DIR+JAUME 142 149 ''' 143 150 144 151 print self.mestre_dir … … 146 153 if os.path.exists(self.mestre_dir): 147 154 self.teumestre_checkbutton.set_active(True) 155 ''' 148 156 if os.path.exists(self.murcia_dir): 149 157 self.murcia_checkbutton.set_active(True) 150 158 if os.path.exists(self.jaume_dir): 151 159 self.jaume_checkbutton.set_active(True) 152 160 ''' 153 161 154 162 self.content_window.show() … … 197 205 print "[!] CALLING",cmd 198 206 subprocess.call(cmd,shell=True,preexec_fn=lambda: signal.signal(signal.SIGPIPE,signal.SIG_DFL)) 199 207 ''' 200 208 cmd="http_proxy='%s' %s %s murcia %s"%(["","proxy:3128"][self.where_am_i==2],command,["remove","install"][self.murcia_checkbutton.get_active()],[CLIENT_BASE_DIR,SERVER_BASE_DIR][self.where_am_i==1]) 201 209 print "[!] CALLING",cmd … … 205 213 print "[!] CALLING",cmd 206 214 subprocess.call(cmd,shell=True,preexec_fn=lambda: signal.signal(signal.SIGPIPE,signal.SIG_DFL)) 207 215 ''' 208 216 print "DONE" 209 217 -
zero-lliurex-jclic-biblio/trunk/fuentes/zero-lliurex-jclic-biblio.install-files/usr/share/zero-lliurex-jclic-biblio/rsrc/zero-jclic-library-setup.glade
r3640 r5470 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- Generated with glade 3.1 6.1-->2 <!-- Generated with glade 3.18.3 --> 3 3 <interface> 4 4 <requires lib="gtk+" version="3.10"/> … … 77 77 <child> 78 78 <object class="GtkCheckButton" id="teumestre_checkbutton"> 79 <property name="label" translatable="yes">elteumestre_JClic_Infantil_Primaria_1 3(4 GB)</property>79 <property name="label" translatable="yes">elteumestre_JClic_Infantil_Primaria_17 (4 GB)</property> 80 80 <property name="visible">True</property> 81 81 <property name="can_focus">True</property> … … 88 88 <property name="fill">True</property> 89 89 <property name="position">0</property> 90 </packing>91 </child>92 <child>93 <object class="GtkCheckButton" id="murcia_checkbutton">94 <property name="label" translatable="yes">Murcia_0809 (2 GB)</property>95 <property name="visible">True</property>96 <property name="can_focus">True</property>97 <property name="receives_default">False</property>98 <property name="xalign">0</property>99 <property name="draw_indicator">True</property>100 </object>101 <packing>102 <property name="expand">False</property>103 <property name="fill">True</property>104 <property name="position">1</property>105 </packing>106 </child>107 <child>108 <object class="GtkCheckButton" id="jaume_checkbutton">109 <property name="label" translatable="yes">JaumeBalmes_Ratoli (3 GB)</property>110 <property name="visible">True</property>111 <property name="can_focus">True</property>112 <property name="receives_default">False</property>113 <property name="xalign">0</property>114 <property name="draw_indicator">True</property>115 </object>116 <packing>117 <property name="expand">False</property>118 <property name="fill">True</property>119 <property name="position">2</property>120 90 </packing> 121 91 </child>
Note: See TracChangeset
for help on using the changeset viewer.