module

Drupal and View module - Defined fields are displayed only if user is logged in

hello, Working on site development using Drupal. Using View module also. I did defined severar node's fields I need to show on View layout. My problem is that all those are displayed if visitor logged in, but if he's not logged in, is shows only one node field.... Fields are displayed as html table. Can you help me how to solve this?...

How to share code between multiple GWT eclipse projects?

I would like to have multiple GWT projects that share common code. Is this possible? AFAICT my GWT projects need to each have their own directory, with source directly underneath, which seems to preclude code-sharing. I tried using linked folders, but GWT didn't seem to like that (described here). If I want to do this, is my only cho...

Changing a standard text input into a jquery calendar popup using webform module in Drupal?

I have a simple booking form in Drupal created using the webform module. I wanted to change the date / time fields from texboxes to a Calendar popup. Can this be done? ...

Python MySQL module

I'm developing a web application that needs to interface with a MySQL database, and I can't seem to find any really good modules out there for Python. I'm specifically looking for fast module, capable of handling hundreds of thousands of connections (and queries, all within a short period of time of each other), without an significant i...

How can I make a linux module load another module?

I have the task to program one module to store some data and another module to control the first one, been able to load/unload it from the code. I'm and kernel programming ignorant but i've tried hard to find the way to do this. Is there any function to do this? Thank you very much in advance ...

In Python, how can I access the namespace of the main module from an imported module?

Specifically, I need to get at some objects and globals from the main module in an imported module. I know how to find those things when the parent module wants some particular thing from a child module, but I can't figure out how to go in the other direction. ...

Can I change lines of code in a loaded module in Perl?

When I use the FLV::Info module to extract metadata from or merge multiple FLV files, I frequently receive a "Tag size is too small" error and then the module will just refuse to work. Someone issued a bug report here three years ago but there does not seem to be a fix. Well, recently I find if I simply comment out the following lines o...

flex/air how to load a class that is on another module

I´m trying to build my flex modular app, and got the following scenario Portal (which includes, 2 modules:) -Mod1 (.swf) -Mod2 (.swf) Also, i have Mod1-API (.swc) The Mod1-API, defines interfaces which are implemented on the Mod1 (.swf). Both the Mod1 and Mod2 swfs import the Mod1-API swc. I´m trying to call the API method on ...

Perl Module to get all pages of a website?

Is there a module out there that can give me links to all the pages a website has?? Why I need it: I want to crawl some sites and search for tags in them, searching only on mainpage is not enough. Thanks, ...

JSP mechanism for nav bar template/module

I have a navigation bar and, for some pages, a sub-navigation bar as well. I'd like to make this a module so I can easily import the navigation bars on each page. Easy enough to simply put the code in a JSP file and call: <%@include file="/WEB-INF/jsp/includes/sub_nav_bar.jsp"%> the only issue is the links and their labels change de...

How do I create a standard content template for Book pages in Drupal 6?

I am working on a Drupal 6 site and need to create a Book where each book page has the same basic structure. I'd like to use a shared template. Is there a Drupal module that allows me to create book pages from a shared template? ...

Drupal - Overriding a existing module's hook ?

I need to override the 'node' module's 'node_search' hook in my custom module named 'tester'. I am trying to write the hook in tester.module with the name - tester_node_search, but it just would not work. I have searched a lot over the internet but am not able to find any concrete solution. Can somebody please help... ...

Module position problem

Hello, I am using Drupal. Here i want to add modules. But i cannot find any solution how do i call the modules. In joomla we can use the position to call the modules. Is there any such thing in drupal so that i can call the modules to any place of the website. Please help. Thanks. ...

Upload images component for Stackoverflow

Hi. What component is used for uploading images,when ask question in Stackoverflow: Is it third-party or WMD editor part? On official wmd editor site(wmd editor site) in demo it's visible, that uploading is possible from http external: ...

Stopping Perl XS modules from silently falling back to pure-perl

It seems some (many?) modules on CPAN are partly implemented in C using XS, and can fall back to a pure-perl implementation if necessary. While this is smart, it can obviously hurt performance, and I would like to know it happens so I can fix the problem. Is there a general way of stopping or detecting this type of fallback? For an exa...

Struts Module SwitchAction ,switching not happening properly

Hi guys, I was hoping if anyone cud help me with struts SwitchAction. I am using struts 1.1 and scaffold. I have two modules, customer and utilities. I am switching an action from * struts-config-utilities.xml* to struts-config-customer.xml , the jsp in customer module is loaded and the beans are executed. But when I try to invoke ano...

custom validation, included in a module, will not load

I am trying to include a custom validation across many models through a module, and I'm seeing some strange behavior. I wrote a custom validation called validates_as_unique which checks to see if a group of attributes is unique among records in the database. In a module called FactBehaviors I have: module FactBehaviors def self.includ...

What is the :: sign/operator before the class name in ruby?

Hi, in ruby, :: namespaces the module and class. But I often see :: at the beginning of the class name like the following: #snippet of gollum gem def page_class @page_class || if superclass.respond_to?(:page_class) superclass.page_class else ::Gollum::Page end end What does that :: stands for if its in the be...

How to add noConflict to a JS module pattern?

Hey, I use the following pattern in my JS: var lib = { module_one: { init: function () { ... } }, module_two: { init: function () { ... } } }; Question is, whats the best way to add: (function ($) { ... })(jQuery); I tried to put it around the var lib, but that di...

What are the mandatory steps to import a module ?

Hi, I'm new to python and I face an issue: I try to extend my SConstruct file and to import a module located in a sub-directory of my project. Here is my SConstruct file: import os, sys sys.path.append(os.path.abspath(os.path.join('.', 'custom_dir'))) import mymodule mymodule.foo() Here is the mymodule.py file, located into a subd...