Re: Django app and a submodule name conflict

2014-06-04 Thread Joseph Catrambone
It may be worth trying a relative import, depending on which version of 
Python you're using.  I believe you can do "from .B.models import BModel". 
 Note the '.' full-stop/period before the module.  I can't promise that 
will fix your problem, as the layout isn't entirely clear to me, but it 
might get you on the right track.

On Wednesday, June 4, 2014 3:51:28 AM UTC-4, Vahe Evoyan wrote:
>
> I have modules in the project with the same names, all placed in different 
> applications.
>
> Particularly there are two apps that conflict and result an ImportError. 
> The project structure approximately is as follows.
>
> project
>  |_ project   
>|_ settings.py
>|_ ...
>  |_ apps
>|_ A
>  |_ handlers
>|_ B.py
>|_ C.py
>|_ B
>  |_ models.py
>
> The settings file adds apps directory to the system path.
>
> BASE_DIR = os.path.dirname(os.path.dirname(__file__))
> sys.path.insert(0, os.path.join(BASE_DIR, "apps"))
>
> This configuration assumes that when I import the B.models it will use 
> apps/B/models.py. Although the following line in the C.py file raise an 
> import error as it imports the A/handlers/B.pywhich does not have models
>  module.
>
> A/handlers/C.py:
> from B.models import BModel
>
> The sys.path variable has a correct items, i.e. the first one in the list 
> is /path/to/project/appsand sys.modules['B.models'] is referenced to the 
> correct file.
>
> BTW, when I use Django's import_by_path function, everything works fine.
>
> Any ideas how I can solve the problem without renaming the modules?
>
> Posted sample sources 
>  on GitHub.
>
> Thanks in advance!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0e09ff68-d4a7-4353-afd3-0932205a7823%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Application configuration file

2014-01-07 Thread Giuliano Catrambone

Hi all,
can someone suggest me how to manage an application configuration file
in a struts application?

I'm thinking a configuration file like
myapp.properties

Is there a place in a struts app where I can read the properties 
cfg file just once

and share it in every java file (actions, )?

Thanks
giu


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



struts-jquery-tree-tags issues

2013-12-12 Thread Giuliano Catrambone

Hi,
I'm trying to manage a tree using struts-jquery-tree.

In my jsp I have:

s:url var=menuTreeDataUrl action=menuTreeData/
sjt:tree
id=jsonTree
href=%{menuTreeDataUrl}
onClickTopics=treeClicked
onClick=managenode()
/

I implemented using java the menuTreeDataUrl action and the tree is 
filled

correctly.

My problem is that I do not know in the javascript managenode function
how to get information regarding the current selected node, i.e. 
like his id,

his text, ...

Could someone tell me how to retrieve those information?
Thanks
Giuliano


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



[Bug 969546] Re: windows moving between workspaces

2012-06-23 Thread Joseph Catrambone
*** This bug is a duplicate of bug 755842 ***
https://bugs.launchpad.net/bugs/755842

I do not believe this is a duplicate bug.  There is no flickering.
Entire Windows jump between virtual desktops.  I have captured a
sequence of images to demonstrate this behavior.

The first three images in the attachment are me switching to the right
through my three virtual desktops by means of the keyboard shortcut.  In
the forth image, I switch to the left.  You may note that the fullscreen
window on 2 is now missing.  In the fifth image, I switch again to the
left and see that some of the windows which were on desktop two are now
on desktop one.


** Attachment added: Demonstrating the Desktop Jump
   
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/969546/+attachment/3201662/+files/ubuntu_bug_movie_low_quality.zip

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/969546

Title:
  windows moving between workspaces

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity/+bug/969546/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[us...@httpd] memory leak (?) when a copy of the ErrorLog is done

2010-04-20 Thread Giuliano Catrambone (CatraSoftware)
Hi,
I'm using the httpd apache server and inside the httpd.conf I have
the ErrorLog set as:

ErrorLog /logs/SystemLogs.trace

I'm using also a custom module writing a lot of trace in the
ErrorLog using the API like:
ap_log_error (__FILE__, __LINE__, APLOG_ERR, 0, prrRequestRec -
server, %s, ...);
or
ap_log_error (__FILE__, __LINE__, APLOG_WARNING, 0,
prrRequestRec - server, %s, ...);

I have also a crontab job that periodically copy
the /logs/SystemLogs.trace in a repository
cp /logs/SystemLogs.trace /Repository/SystemLogs.trace
and reset the current log using the command:
echo   /logs/SystemLogs.trace

So, the issue is that:
- every time the copy is done we saw the memory usage is decreased a
lot and
- if we remove the copied log file (rm /Repository/SystemLogs.trace)
the memory usage is again increased

Why the memory usage is impacted when the copy of the log file is
done or the copied log file is removed?

Thanks in advance for your help
giu



Son off Billionaire Charged With Burglary

2009-05-23 Thread Catrambone
triphthong.jpg___
pkg-java-maintainers mailing list
pkg-java-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers

[Bug 61235] Re: USB mass storage stops working after a while

2007-08-03 Thread Giuliano Catrambone
Alberto,
  the problem I have is that when I copy inside the external USB2 HD a large 
file or
  I do many access to it, through for example rsync, the HD goes in hang and
  I have to restart it to make it works again.

  The /var/log/messages shows me traces like:
Aug  2 12:22:23 Lucia kernel: usb 5-7: reset high speed USB device using 
ehci_hcd and address 8
Aug  2 12:23:23 Lucia last message repeated 2 times

  I'll be happy to provide you any kind information/logs to help to
understand the problem.

  The problem is absolutely reproducible.
  Thanks
giu

-- 
USB mass storage stops working after a while
https://bugs.launchpad.net/bugs/61235
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 61235] Re: USB mass storage stops working after a while

2007-08-02 Thread Giuliano Catrambone
Hi all
I have a Freecom USB2 external HD and I have the same problem.
Basically if I copy on it a large file or I do many access to it,
through for example rsync, the HD goes in hang and I have to restart it
to make it work again.

The problem is so reproducible that I can't use the HD.

I verified the proposed solutions above in this emails thread like
echo 1024  /sys/block/sdX/device/max_sectors
echo 1  /sys/class/scsi_disk/X\:0\:0\:0/allow_restart
but the problem is still there.

I'm using the kernel version 2.6.22.1-41.
Thanks in advance for the help
  giu

-- 
USB mass storage stops working after a while
https://bugs.launchpad.net/bugs/61235
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [newbie] monitor and LILO woes

2000-05-05 Thread vicky catrambone

I have been reading these posts with interest. I installed mandrake 7.0
yesterday. I have 2 hdd's , linux is on the first one and I installed
windows on the 2nd one. The dual boot is working fine, But !!! when it
boots into linux I cant log in. I can type in root or my username and
tab or use the mouse to get to the password box but it absolutely wont
accept any keyboard input. Its booting into k desktop environment. Is
there a way to boot into console and how would I go about fixing this
without having to re install again ?Somehow I feel I have the monitor
settings wrong and this is why its freezing.  thx  in advance Vicky